Foundations to Frontier
Tests
G. Computer Vision and Remote Sensing › G5 Remote Sensing and Earth Observation

Land-cover classification: classifiers, time series, datasets and honest accuracy assessment

Land-cover classification assigns every pixel or object a class such as forest, cropland, water or built-up. It underpins global products such as ESA WorldCover, Dynamic World, CORINE and NLCD. The classic pipeline is surface reflectance (G5-6), features from several dates, a classifier (maximum likelihood, random forest, gradient boosting, temporal CNNs or transformers, U-Nets), post-processing and accuracy assessment. That last step is where most published numbers go wrong. This page covers class schemes and benchmark datasets (EuroSAT, BigEarthNet), classifiers and temporal features, the confusion matrix with producer's and user's accuracy, why kappa is discouraged, and why spatially autocorrelated samples inflate accuracy. In the exercises you build confusion-matrix metrics, spatial folds and a minimum-distance classifier. You then classify a synthetic 96 × 96 landscape of 200 fields with six classes from 47 labelled polygons. With a single summer image, random-pixel cross-validation reported 0.859 for maximum likelihood and 0.894 for 1-NN. Accuracy in unlabelled areas was 0.72 and 0.628, and folds grouped by polygon gave a more honest 0.733 and 0.745. Four dates raised new-area accuracy to 0.948 and 0.932 by separating crops and grassland that look alike in summer.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Naming every pixel on the map

A land-cover map colours every patch of ground by what covers it: forest, fields, grass, water, towns. A computer learns this from examples: someone outlines a few fields and forests on the image, and the computer learns what each class looks like in the satellite’s colours and then labels everything else. Two things make this harder than it sounds. Some classes look the same on any single day, such as a maize field and a meadow in July, but differ over the seasons. And testing the computer on pixels right next to the ones it learned from makes it look far better than it really is. The demo shows three classes that overlap in one summer image and separate when a spring image is added.

Earth-observation lab: correction, change, classes, foundation models
Forest (green), summer crop (yellow) and grassland (red) in the summer red–NIR plane: minimum-distance accuracy 65%. Similar summer spectra separate once phenology from a second date is added.
Why engineers care

Land-cover maps feed carbon accounting, crop statistics, flood-risk models and urban planning. A map whose accuracy was measured with leaky validation can look 15 points better than it is, and that error flows into every downstream estimate.

📝 Quick check (Level 0)
0/3 answered
  1. 1. A land-cover classifier learns from…
  2. 2. Crops and grassland are easier to tell apart with…
  3. 3. Testing on pixels next to the training pixels…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Schemes, classifiers, datasets and products

  • Class schemes: CORINE Land Cover (44 classes at level 3, 25 ha minimum mapping unit), the FAO Land Cover Classification System, IPCC land categories, and the 9–11 classes of global 10 m products. Fix the legend and the minimum mapping unit before collecting labels.
  • Classifiers: minimum distance and Gaussian maximum likelihood (the classic per-pixel methods); random forests (Breiman 2001), the long-time workhorse in Google Earth Engine, and gradient boosting; SVMs; temporal deep models such as TempCNN (Pelletier et al. 2019) and attention models (PSE-TAE, U-TAE on the PASTIS dataset, Garnot et al. 2020–2021); U-Net-style segmenters; and foundation-model probes (G5-9).
  • Features: multi-date surface reflectance, indices, harmonic coefficients or percentiles of the time series, SAR backscatter, texture and terrain. Temporal information usually helps most for crops and vegetation types.
  • Pixels or objects: object-based image analysis segments the image first and classifies segments. Post-processing with majority filters or a minimum mapping unit removes salt-and-pepper noise.
  • Benchmark datasets: EuroSAT (Helber et al. 2019; 27000 Sentinel-2 patches of 64 × 64 pixels, 10 classes, 13 bands); BigEarthNet (Sumbul et al. 2019; about 590000 Sentinel-2 patches with multi-label CORINE labels, later a 19-class nomenclature, Sentinel-1 pairs and a 2024 refresh, reBEN). EuroSAT is close to saturated: high scores there say little about mapping quality.
  • Products: ESA WorldCover (10 m, 2020 and 2021), Google/WRI Dynamic World (10 m, per-image class probabilities, Brown et al. 2022), Esri/Impact Observatory annual 10 m maps, NLCD (USA, 30 m), CORINE (Europe), MODIS MCD12Q1 (500 m).
  • Accuracy assessment: confusion matrix from a probability sample; overall accuracy, producer’s accuracy (1 − omission) and user’s accuracy (1 − commission); area-adjusted estimates (Olofsson et al. 2014). Kappa is discouraged (Pontius and Millones 2011) because it adds nothing beyond the matrix and depends on prevalence.
📝 Quick check (Level 1)
0/3 answered
  1. 1. Producer's accuracy is…
  2. 2. EuroSAT contains…
  3. 3. Dynamic World provides…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

Building a land-cover map

Exercise 1.

  • Confusion matrix, overall, producer’s and user’s accuracy, kappa.
  • Spatial block folds.
  • Minimum-distance classifier.

Practice.

  • Define the legend and minimum mapping unit, then collect labelled polygons spread over the whole region, not clustered near roads or one site.
  • Use multi-temporal features (seasonal composites or harmonics) and add SAR where clouds are frequent.
  • Validate with folds grouped by polygon or spatial block; keep a separate probability sample for the final accuracy and area estimates.
  • Report the full confusion matrix with producer’s and user’s accuracy per class, not only overall accuracy or kappa.
  • Check the map where it will be used: new regions, other years and rare classes often fail silently.
import ee
ee.Initialize()
s2 = ee.ImageCollection("COPERNICUS/S2_SR_HARMONIZED").filterBounds(aoi).map(mask_and_scale)
feats = ee.Image.cat([s2.filterDate(a, b).median().select(["B2", "B3", "B4", "B8", "B11", "B12"])
                      for a, b in [("2025-03-01", "2025-05-01"), ("2025-06-01", "2025-08-01"), ("2025-09-01", "2025-11-01")]])
samples = feats.sampleRegions(collection=polygons, properties=["class", "fold"], scale=10)
train = samples.filter(ee.Filter.neq("fold", 0)); test = samples.filter(ee.Filter.eq("fold", 0))   # folds per polygon
rf = ee.Classifier.smileRandomForest(300).train(train, "class", feats.bandNames())
print(test.classify(rf).errorMatrix("class", "classification").accuracy().getInfo())
🐍 Exercise 1: accuracy metrics, spatial folds, a simple classifier
Compute the confusion matrix, overall, producer's and user's accuracy and kappa; assign spatial block folds; classify by minimum distance to class means.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Folds for validation should be grouped by…
  2. 2. Report per class…
  3. 3. Where clouds are frequent, add…

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

Spatial autocorrelation leaks information. Pixels in one field share soil, variety and management, so their spectra share a field-level offset. With a random pixel split, every test pixel has siblings in the training set. A flexible classifier (1-NN, deep random forests) simply recognises the field. The cross-validation estimate then measures interpolation within known fields, not mapping of new ones (Roberts et al. 2017; Ploton et al. 2020). Grouping folds by polygon or spatial block removes most of this leak. In Exercise 2, with 47 polygons, the grouped estimate was itself noisy: it was 0.12 too high for 1-NN on seed 0 and 0.14 too low for maximum likelihood on seed 2.

Why time helps. In summer, a maize field, a meadow and a forest are all dark red and bright NIR. In spring the maize field is bare soil and a winter cereal is green. In autumn the maize is harvested. Adding dates adds dimensions in which the class means are far apart relative to within-class spread, which is exactly what both maximum likelihood and nearest-neighbour rules need.

Maximum likelihood. Assign x to the class maximising log πₖ − ½ log det Σₖ − ½ (x − μₖ)ᵀ Σₖ⁻¹ (x − μₖ). This is quadratic discriminant analysis with class priors. It is optimal if the classes are Gaussian, which mixtures of fields with different offsets are not.

Metrics and prevalence. Overall accuracy weights classes by their share in the sample, so a map can score 90% while missing a rare class entirely. Producer’s and user’s accuracy per class, and area-adjusted estimates from a stratified sample, reveal this. Kappa subtracts a chance agreement that depends on the map’s own marginals. It is not a correction for chance in any useful sense.

📝 Quick check (Level 3)
0/3 answered
  1. 1. Random-pixel validation is optimistic because…
  2. 2. Multi-date features help because…
  3. 3. Overall accuracy can hide…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

How much does random-pixel validation overstate land-cover accuracy, and how much do extra dates help?

History.

  • R. G. Congalton, “A review of assessing the accuracy of classifications of remotely sensed data” (1991).
  • R. G. Pontius and M. Millones, “Death to Kappa” (2011); P. Olofsson et al., “Good practices for estimating area and assessing accuracy of land change” (2014).
  • D. R. Roberts et al., “Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure” (2017); P. Ploton et al., “Spatial validation reveals poor predictive performance of large-scale ecological mapping models” (2020).
  • P. Helber et al., “EuroSAT” (2019); G. Sumbul et al., “BigEarthNet” (2019); C. F. Brown et al., “Dynamic World” (2022).

Exercise 2. A 96 × 96 landscape of 200 Voronoi fields, each with one of six classes (forest, summer crop, winter crop, grassland, water, built-up).

  • Spectra: red, NIR and SWIR1 on four dates. Each field has its own multiplicative offset (sd 20%), plus pixel noise.
  • Labels: 8 labelled polygons per class (half the available polygons for rare classes): 47 polygons, 899 pixels.
  • Classifiers: Gaussian maximum likelihood and 1-NN, on the summer image only or on all four dates.
  • Estimates: 5-fold cross-validation with random pixel folds and with folds grouped by polygon, compared with the true accuracy on 1800 class-balanced pixels from unlabelled fields (“new areas”).
classifier, features CV random pixels CV grouped by polygon new areas
ML, summer only 0.859 0.733 0.72
1-NN, summer only 0.894 0.745 0.628
ML, four dates 1.0 0.916 0.948
1-NN, four dates 1.0 0.891 0.932
class (ML) forest summer crop winter crop grassland water built-up
producer’s, summer only 0.557 0.573 0.77 0.53 1.0 0.89
producer’s, four dates 1.0 0.86 1.0 0.83 1.0 1.0
  • Random pixels overstate: by 0.14 for maximum likelihood and 0.27 for 1-NN with summer data. On seeds 1 and 2: ML 0.918 and 0.751 against 0.727 and 0.714; 1-NN 0.936 and 0.788 against 0.739 and 0.597. With four dates, random-pixel CV reported a perfect 1.0 on every seed while new-area accuracy was 0.93–0.98.
  • Grouped folds are closer but noisy: with only 47 polygons they ranged from 0.12 too high to 0.14 too low across seeds (ML summer 0.733, 0.712 and 0.576 against 0.72, 0.727 and 0.714). A separate probability sample is still needed for the final number.
  • Time beats classifier choice: four dates raised new-area accuracy by 0.23–0.25 for ML (to 0.948, 0.98 and 0.954) and by 0.23–0.36 for 1-NN. Forest, crops and grassland, confused in summer, separated by phenology.
  • The flexible classifier memorised: 1-NN had the highest random-pixel score and the lowest new-area accuracy with summer data on seeds 0 and 2. On seed 1 it was slightly better (0.739 against 0.727).
  • Caveat: synthetic Gaussian-like spectra, independent pixels within fields, and only two simple classifiers. Random forests and deep models behave like 1-NN in how much they exploit leakage.
🐍 Exercise 2 (research): how much does random-pixel validation overstate land-cover accuracy, and how much do extra dates help?
Classify a synthetic six-class landscape with maximum likelihood and 1-NN from one or four dates, and compare random-pixel, polygon-grouped and true new-area accuracy.

Land-cover classification in AI, robotics and aerospace

  • Global 10 m maps: WorldCover, Dynamic World and Esri’s annual maps are built from Sentinel-1/2 with random forests or CNNs, and they disagree substantially in heterogeneous landscapes. Comparing them is a quick sanity check for any new map.
  • Agriculture: crop-type maps from Sentinel-2 time series (temporal CNNs and transformers) support subsidy checks under the EU Common Agricultural Policy and national crop statistics.
  • Foundation models: EO foundation models (G5-9) are now routinely evaluated on EuroSAT, BigEarthNet and crop or land-cover segmentation tasks. The same spatial-leak caveats apply to their benchmarks.

References

  1. R. G. Congalton (1991). “A review of assessing the accuracy of classifications of remotely sensed data.” Remote Sensing of Environment.
  2. L. Breiman (2001). “Random forests.” Machine Learning.
  3. R. G. Pontius and M. Millones (2011). “Death to Kappa: birth of quantity disagreement and allocation disagreement for accuracy assessment.” International Journal of Remote Sensing.
  4. P. Olofsson et al. (2014). “Good practices for estimating area and assessing accuracy of land change.” Remote Sensing of Environment.
  5. D. R. Roberts et al. (2017). “Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure.” Ecography.
  6. P. Helber, B. Bischke, A. Dengel and D. Borth (2019). “EuroSAT: a novel dataset and deep learning benchmark for land use and land cover classification.” IEEE JSTARS.
  7. G. Sumbul, M. Charfuelan, B. Demir and V. Markl (2019). “BigEarthNet: a large-scale benchmark archive for remote sensing image understanding.” IGARSS.
  8. C. Pelletier, G. I. Webb and F. Petitjean (2019). “Temporal convolutional neural network for the classification of satellite image time series.” Remote Sensing.
  9. P. Ploton et al. (2020). “Spatial validation reveals poor predictive performance of large-scale ecological mapping models.” Nature Communications.
  10. C. F. Brown et al. (2022). “Dynamic World, near real-time global 10 m land use land cover mapping.” Scientific Data.