A Hands-On Guide for Working with Large-Scale Spatial Data. Learn more.
Live Session: Bring your hardest physical world problem and put Waldo to work.
Authors
Ground truth is information collected by direct observation at a known place and time, used as the reference standard that a sensor, map, or model is checked against. For spatial data it is a GPS position recorded on site, a soil sample, a tree identified to species in a field plot, or a rain gauge total. Remote sensing analysts and data scientists use it for three jobs: calibrating sensors, assessing the accuracy of maps and predictions, and training machine learning models.
Direct observation. Ground truth is gathered by being present at the location, or by an instrument that is: a surveyor’s GPS coordinates, a soil sample, a tree species recorded in a plot, a gauge reading, a trajectory logged by a vehicle’s own sensors. The term comes from remote sensing, where analysts compared what an aerial or satellite image appeared to show with what a visit to the ground found.
Reference standard. Ground truth is the benchmark that remote sensing products and GIS models are scored against. A reference does that job when it has three properties:
Reanalysis is the model product most often used in place of ground truth. ERA5, described by Hans Hersbach and colleagues in The ERA5 global reanalysis (Quarterly Journal of the Royal Meteorological Society, 2020), reconstructs past weather on a grid by combining a forecast model with historical observations, and learned weather models train on it. At a station it can differ from what was measured. Vivek Ramavajjala and Peetak Mitra’s Verification against in-situ observations for Data-Driven Weather Prediction (2023) found that FourCastNet outperforms the IFS model when tested against ERA5 but shows no benefit when tested against real-world observations.
Raw values from a satellite or drone sensor have to be converted to physical quantities such as reflectance before they can be compared across sensors and dates. Vicarious calibration does this with instrumented sites on the ground: the sensor’s reading over the site is compared with what the site measured during the overpass. RadCalNet, described by Marc Bouvet and colleagues in RadCalNet: A Radiometric Calibration Network for Earth Observing Imagers Operating in the Visible to Shortwave Infrared Spectral Range (Remote Sensing, 2019), started with four automated sites in the USA, France, China, and Namibia. It publishes top-of-atmosphere reflectance from 400 to 1000 nm every 30 minutes, with uncertainty traceable to SI units.
Forecast systems calibrate their starting state the same way. Geir Evensen’s Sequential data assimilation with a nonlinear quasi-geostrophic model using Monte Carlo methods to forecast error statistics (Journal of Geophysical Research, 1994) introduced the ensemble Kalman filter, which systems such as the HRRR model use to blend forecasts with radar and surface observations every cycle.
Russell Congalton’s A review of assessing the accuracy of classifications of remotely sensed data (Remote Sensing of Environment, 1991) set out how to sample reference sites and build the error matrix that compares a classified map with them. Michael Story and Congalton’s “Accuracy assessment: a user’s perspective” (Photogrammetric Engineering and Remote Sensing, 1986) named the two ways to read that matrix. Producer’s accuracy is the share of reference sites of a class that the map labels correctly, so it measures omission. User’s accuracy is the share of map pixels in a class that are that class on the ground, estimated from the reference sites, so it measures commission.
Forecasts are scored the same way against stations and gauges. Allan Murphy and Robert Winkler’s A general framework for forecast verification (Monthly Weather Review, 1987) defined verification as the study of the joint distribution of forecasts and observations: each forecast paired with what was recorded at the place and time it predicted.
In supervised machine learning, ground truth is the labeled dataset: each example paired with its correct answer. A model is fit to a training split, tuned on a validation split, and scored once on a test split it has never seen. For imagery, labels are drawn on a map: a building outline traced over an aerial photo, a land cover class assigned to a field plot. The building footprint and land cover classification articles cover how those reference sets are built.
When the training target is reanalysis, errors at stations can survive training. Microsoft researchers built WeatherReal (2024) on station observations because reanalysis diverges from them for near-surface temperature, wind, precipitation, and clouds. Scores at stations show which events and places a model gets wrong, and those are where a modeler adds training examples.
Training inside a world model. In model-based reinforcement learning, an agent learns a policy inside a learned world model. Danijar Hafner and colleagues’ DreamerV3, in Mastering diverse control tasks through world models (Nature, 2025), trains behavior on imagined rollouts, sequences of future states the world model predicts. The policy learns whatever the model predicts, including its mistakes. David Ha and Jürgen Schmidhuber’s World Models (2018) describe a controller that found an adversarial policy inside an imperfect model, moving so that monsters in the simulated game never fired, an exploit absent from the real game. Ground truth measures that gap before training starts. For driving world models, the reference is real logged behavior, as in the Waymo Open Sim Agents Challenge, and for world models of real places it extends to the place itself: road geometry, terrain, and the weather recorded there on the day a scene depicts. The physical AI article covers how these models train robots and vehicles.
A reference describes the moment it was collected. A field visit weeks after an image was captured can find a crop harvested or a flooded field drained. An annual land cover map summarizes a year of imagery, while 94% of the 2018 LUCAS field visits in the check below fell between May and September. Ground recorded as bare soil on the day of a visit can be cropland for the rest of the year, and a later revisit can find a different class altogether.
A soil sample or a surveyor’s record describes a spot. A satellite pixel or a forecast cell averages an area: a WorldCover pixel is 10 m on a side, and a 0.25° weather forecast cell is about 28 km north to south. Part of any point-against-pixel error is the difference between a spot and an area. In the check below, agreement between map and survey falls from 80.0% in parcels over 10 ha to 45.3% in parcels under 0.5 ha.
Reference data are collected and labeled by people and instruments, and both make mistakes. Curtis Northcutt, Anish Athalye, and Jonas Mueller’s Pervasive Label Errors in Test Sets Destabilize Machine Learning Benchmarks (NeurIPS 2021) found an average of at least 3.3% label errors across the test sets of 10 widely used computer vision, language, and audio benchmarks, including at least 6% of the ImageNet validation set. A model that matches a wrong label is counted as correct, and one that gets the true answer is counted as wrong.
The bias can run either way. Giles Foody’s Assessing the accuracy of land cover change with imperfect ground reference data (Remote Sensing of Environment, 2010) simulated a 10% error in the reference data: producer’s accuracy came out 18.5% too low when the reference errors were independent of the map errors, and 12.3% too high when they were correlated.
The same five steps apply to a weather forecast, a land cover map, and a driving simulator.
Wherobots is the Context Engine for Physical World Data. WherobotsDB runs spatial SQL across vector and raster data and reads public archives in place, the Havasu catalog holds open datasets as Apache Iceberg tables, and the Wherobots MCP server lets AI agents run the same queries. RasterFlow (Public Preview) builds mosaics from imagery, runs computer vision inference on them, and writes the results as vectorized outputs on the same platform.
This walkthrough checks a land cover map against direct observation. The reference is the 2018 Land Use/Cover Area frame Survey (LUCAS), in which Eurostat surveyors visited points across the 28 EU member states and recorded the land cover at each one. Raphaël d’Andrimont and colleagues harmonized the surveys from 2006 to 2018 into one table, described in Harmonised LUCAS in-situ land cover and use database for field surveys from 2006 to 2018 in the European Union (Scientific Data, 2020). The prediction is ESA WorldCover, a global land cover map at 10 m made from Sentinel-1 and Sentinel-2 imagery, in its 2020 (v100) and 2021 (v200) editions. ESA reports overall accuracy of 74.4% and 76.7% for the two editions against its own global validation sample (ESA WorldCover 2021).
LUCAS records how each point was observed. The check keeps the 198,550 points where the surveyor reached the point or saw it from within 100 m. Points that were photo-interpreted in the office from aerial images (99,397 in 2018) are a separate kind of reference and are reported apart. Each LUCAS land cover code maps to one WorldCover class. Permanent crops, salines, and intertidal flats have no single WorldCover class and are left out.
WorldCover is published on AWS Open Data as 3° by 3° Cloud Optimized GeoTIFFs, each named after its south-west corner. WherobotsDB opens each file in place as an out-of-database raster, splits it into tiles of 1024 by 1024 pixels, and joins every survey point to the tile it falls in. The one input to stage is the LUCAS table: download lucas_harmo_uf_2018.zip from the JRC data portal and upload the CSV inside it to your Wherobots managed storage.
-- The LUCAS 2018 harmonised table, uploaded to managed storage CREATE OR REPLACE TEMP VIEW lucas_2018 USING csv OPTIONS (path 's3://<your-managed-storage>/lucas_harmo_uf_2018.csv', header 'true'); -- LUCAS 2018 points with the surveyor's land cover mapped to the WorldCover legend CREATE OR REPLACE TEMP VIEW pts AS SELECT point_id, obs_type, lc1, parcel_area_ha, ST_SetSRID(ST_Point(CAST(th_long AS DOUBLE), CAST(th_lat AS DOUBLE)), 4326) AS geom, CASE WHEN lc1 LIKE 'A%' THEN 50 -- artificial land: built-up WHEN lc1 LIKE 'B7%' OR lc1 LIKE 'B8%' THEN NULL -- permanent crops: no single class WHEN lc1 LIKE 'B%' THEN 40 -- cropland WHEN lc1 LIKE 'C%' THEN 10 -- woodland: tree cover WHEN lc1 LIKE 'D%' THEN 20 -- shrubland WHEN lc1 LIKE 'E%' THEN 30 -- grassland WHEN lc1 = 'F30' THEN 100 -- lichens and moss WHEN lc1 LIKE 'F%' THEN 60 -- bare land: bare / sparse vegetation WHEN lc1 = 'G50' THEN 70 -- glaciers and permanent snow WHEN lc1 LIKE 'G%' THEN 80 -- water WHEN lc1 IN ('H22', 'H23') THEN NULL -- salines, intertidal flats WHEN lc1 LIKE 'H%' THEN 90 END AS ref_class -- wetlands FROM lucas_2018; -- The WorldCover files that hold survey points, for both editions CREATE OR REPLACE TEMP VIEW worldcover_files AS SELECT y.map_year, concat('s3://esa-worldcover/', y.prefix, t.tile, '_Map.tif') AS path FROM (SELECT DISTINCT concat(IF(ST_Y(geom) >= 0, 'N', 'S'), lpad(CAST(ABS(FLOOR(ST_Y(geom) / 3) * 3) AS STRING), 2, '0'), IF(ST_X(geom) >= 0, 'E', 'W'), lpad(CAST(ABS(FLOOR(ST_X(geom) / 3) * 3) AS STRING), 3, '0')) AS tile FROM pts) t CROSS JOIN (VALUES ('2020', 'v100/2020/map/ESA_WorldCover_10m_2020_v100_'), ('2021', 'v200/2021/map/ESA_WorldCover_10m_2021_v200_')) AS y(map_year, prefix); -- Each WorldCover COG read in place and split into 1024 x 1024 pixel tiles CREATE OR REPLACE TEMP VIEW wc_tiles AS SELECT map_year, RS_TileExplode(RS_FromPath(path), 1024, 1024) AS (tx, ty, rast) FROM worldcover_files; CACHE TABLE wc_tiles; -- Raster-point spatial join: each point meets its tile, and RS_Value reads its pixel CREATE SCHEMA IF NOT EXISTS org_catalog.ground_truth; CREATE OR REPLACE TABLE org_catalog.ground_truth.lucas2018_worldcover USING iceberg AS SELECT p.point_id, p.obs_type, p.lc1, p.parcel_area_ha, p.ref_class, t.map_year, CAST(RS_Value(t.rast, p.geom) AS INT) AS map_class FROM pts p JOIN wc_tiles t ON RS_Intersects(t.rast, p.geom) WHERE p.ref_class IS NOT NULL;
The job sampled both editions at 331,675 LUCAS points in 18 minutes, and every point found a tile in both editions. The results are stored as Iceberg tables, so the error matrix and every split below are further SQL over them.
Producer’s and user’s accuracy come straight from the matrix of survey class against map class:
WITH m AS ( SELECT ref_class, map_class, COUNT(*) AS n FROM org_catalog.ground_truth.lucas2018_worldcover WHERE obs_type = 'In situ < 100 m' AND map_year = '2020' GROUP BY ref_class, map_class), r AS (SELECT ref_class AS c, SUM(n) AS ref_n, SUM(IF(ref_class = map_class, n, 0)) AS hit FROM m GROUP BY ref_class), u AS (SELECT map_class AS c, SUM(n) AS map_n FROM m GROUP BY map_class) SELECT r.c AS class, ref_n, hit / ref_n AS producers_accuracy, hit / map_n AS users_accuracy FROM r JOIN u ON r.c = u.c ORDER BY ref_n DESC
The two accuracies split the 71.9% into different errors. Cropland and tree cover are found at 85.2% and 86.8%. Built-up land has a user’s accuracy of 78.3% and a producer’s accuracy of 42.6%: at 78.3% of the survey points where the map shows built-up land, surveyors recorded built-up land, and the map misses more than half the artificial land surveyors recorded. Roads, railways, and other linear features (LUCAS code A22) account for 3,240 of those misses, mapped as grassland or tree cover. A 10 m pixel over a country road is mostly the field or forest beside it.
Scale. Each LUCAS record includes the size of the parcel around the point. Agreement rises from 45.3% in parcels under 0.5 ha to 80.0% in parcels over 10 ha. In a small parcel, the 10 m pixel at the point more often covers the parcel next to it.
Timing. The LUCAS 2022 Copernicus module surveyed 52,582 of the in-situ points again with a single land cover recorded. At 8,897 of them (16.9%), the 2022 visit recorded a different WorldCover class than the 2018 visit. At those points WorldCover 2021 matched the 2018 record 33.2% of the time and the 2022 record 46.9% of the time; at the points where both visits agreed, it matched 74.8% of the time. A changed label is either a real change or an error in one of the two visits, and the survey alone cannot tell which. The 2022 records come from the LUCAS 2022 Copernicus attribute table, staged the same way:
CREATE OR REPLACE TEMP VIEW lucas_2022 USING csv OPTIONS (path 's3://<your-managed-storage>/l2022_survey_cop_radpoly_attr.csv', header 'true', multiLine 'true', escape '"'); -- Points with one land cover in 2022, mapped to the same legend, against WorldCover 2021 WITH l22 AS ( SELECT point_id, MIN(survey_lc1) AS lc1_2022 FROM lucas_2022 WHERE survey_lc1 IS NOT NULL GROUP BY point_id HAVING COUNT(DISTINCT survey_lc1) = 1), b AS ( SELECT w.ref_class, w.map_class, CASE WHEN l.lc1_2022 LIKE 'A%' THEN 50 WHEN l.lc1_2022 LIKE 'B7%' OR l.lc1_2022 LIKE 'B8%' THEN NULL WHEN l.lc1_2022 LIKE 'B%' THEN 40 WHEN l.lc1_2022 LIKE 'C%' THEN 10 WHEN l.lc1_2022 LIKE 'D%' THEN 20 WHEN l.lc1_2022 LIKE 'E%' THEN 30 WHEN l.lc1_2022 = 'F30' THEN 100 WHEN l.lc1_2022 LIKE 'F%' THEN 60 WHEN l.lc1_2022 = 'G50' THEN 70 WHEN l.lc1_2022 LIKE 'G%' THEN 80 WHEN l.lc1_2022 IN ('H22', 'H23') THEN NULL WHEN l.lc1_2022 LIKE 'H%' THEN 90 END AS ref_2022 FROM org_catalog.ground_truth.lucas2018_worldcover w JOIN l22 l ON w.point_id = l.point_id WHERE w.obs_type = 'In situ < 100 m' AND w.map_year = '2021' AND w.map_class > 0) SELECT IF(ref_class = ref_2022, 'same', 'changed') AS status, COUNT(*) AS points, AVG(IF(map_class = ref_class, 1, 0)) AS matches_2018, AVG(IF(map_class = ref_2022, 1, 0)) AS matches_2022 FROM b WHERE ref_2022 IS NOT NULL GROUP BY 1
Labels. The largest disagreements sit on class boundaries. Grassland without tree or shrub cover (E20) is mapped as cropland at 5,510 points and as tree cover at 3,778. Bare soil (F40) is mapped as cropland at 3,494 points, which is what a ploughed field on the day of a visit looks like in an annual map.
Learned weather models are scored on shared grids by WeatherBench 2, from Stephan Rasp and colleagues in WeatherBench 2: A benchmark for the next generation of data-driven global weather models (Journal of Advances in Modeling Earth Systems, 2024), and at stations by benchmarks such as WeatherReal.
One survey and two map editions made one 18-minute job. Every LUCAS survey since 2006 scored against every annual map, or every simulated scene matched to the road it depicts, multiplies both sides of the join, and the matching has to run where the observations and predictions are stored. Spatial partitioning and per-partition indexes, introduced for Apache Spark by Jia Yu, Jinxuan Wu, and Mohamed Sarwat in GeoSpark (ACM SIGSPATIAL 2015), keep each comparison to nearby candidates. The partitioning tax article covers what happens to joins like this when the data is split into tiles instead.
Score your own models against ground truth with a Wherobots free trial at cloud.wherobots.com.
Ground truth is information collected by direct observation at a known place and time, such as GPS coordinates recorded on site, a soil sample, or a tree species identified in a field plot. It serves as the reference standard for checking how well remote sensing products, maps, and models match physical reality.
Ground truth calibrates satellite and drone sensors so their readings match conditions on the ground, measures the accuracy of land cover maps and forecasts with metrics such as producer’s and user’s accuracy, and supplies the labeled data that machine learning models train on.
In machine learning, ground truth data is the set of correct answers for a task: the label for each image, the class for each pixel, or the value a model should predict. Models are trained on part of it and evaluated on a held-out part. Curtis Northcutt, Anish Athalye, and Jonas Mueller found an average of at least 3.3% label errors across the test sets of 10 widely used benchmarks in Pervasive Label Errors in Test Sets Destabilize Machine Learning Benchmarks (NeurIPS 2021).
Three problems recur. Field data collected days or weeks after an image can describe changed conditions, a point measurement has to be compared with a pixel or grid cell that averages a much larger area, and the reference itself contains errors that bias an accuracy assessment in either direction.
Define what the model predicts, collect independent observations of the same quantity, match each prediction to the observation at the same place and time, and score the matches with an error matrix or against a simple reference forecast. For spatial data the matching step is a spatial join: a survey point inside a map pixel, or a rain gauge inside a forecast cell.
Wherobots is the Context Engine for Physical World Data. WherobotsDB reads field observations such as LUCAS survey points and rasters such as ESA WorldCover in place, joins each point to the pixel it falls in with spatial SQL, and computes the error matrix in the same job. RasterFlow (Public Preview) builds mosaics from imagery, runs computer vision inference on them, and writes the results as vectorized outputs on the same platform, where they can be checked against reference data.
What is a Kelvin Wave? Speed, El Niño and 2026 Data
A Kelvin wave is a long, low ocean wave that carries warm water east along the equator in an El Niño. In the 30 days to 10 November 2026, the sea at San Diego stood a record 41.2 cm above NOAA's tide prediction.
What Is an ETL Pipeline? Steps, Examples and Spatial ETL
An ETL (extract, transform, load) pipeline moves data from sources into storage. Learn the steps with examples. Then see a spatial mistake that passed the usual checks: rounding coordinates emptied 27% of Denver's building outlines.
What is an MCP Server? Spatial Context for AI Agents
An MCP server gives AI agents tools to call. With no tools, Claude Code gave no count of San Francisco's buildings. Via Wherobots MCP, it counted 162,538.
share this article
Awesome that you’d like to share our articles. Where would you like to share it to: