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
A world model is an AI model that predicts what happens next. You give it the current situation and an action, and it tells you the situation that follows. An agent, such as a self-driving system or a game-playing program, uses it to test moves in its head before it makes one. For a world model of real roads to work, the drive recordings it learns from need the right time on every record, plus the weather, terrain, and speed limits of each place.
A world model takes the state of a place and an action, and returns the state that comes next. The state can be a list of numbers, a camera image, a 3D scene, or a map of temperature and wind for the whole planet.
A model inside an agent. An agent that learns by trial and error can carry its own forecaster of what each move will do. In World Models (2018), David Ha and Jürgen Schmidhuber shrank each frame of the game VizDoom to a short code. They trained a network to predict the next code, then trained a player that practiced only inside those predictions. They called the predictions the model’s “dream.”
A world generator. Since 2024, the term also covers large models that generate a whole world you can explore, as video or in 3D. Google DeepMind’s Genie 3 (August 2025) builds an interactive environment from a text prompt, at 720p and 24 frames per second. World Labs introduced Atlas on 1 September 2026. It generates, rebuilds, and simulates 3D worlds.
A mental model. The idea is older than computers. Kenneth Craik argued in The Nature of Explanation (1943) that a mind carrying a “small-scale model” of the world can try out choices before they happen.
Take a car as the example.
The HRRR model from NOAA is the physics example. It updates every hour at 3 km resolution across the lower 48 states.
A large language model learns from text, documents, databases, and the internet. It predicts the next token, a word or part of a word. A world model predicts the next state of a place, usually after an action. Yann LeCun argues in A Path Towards Autonomous Machine Intelligence (2022) that machines need world models, learned by watching the world, before they can plan.
Reinforcement learning trains an agent by trial and error. The agent tries actions and keeps the ones that earn a reward. Some agents learn only from the real world. Others first learn a world model, then practice inside it. Richard Sutton’s Dyna (1991) did both: real experience improved the model, and practice inside the model improved the agent. Dreamer, in Dream to Control: Learning Behaviors by Latent Imagination (ICLR 2020), learns to act entirely from imagined drives.
Practice inside a model is cheap. On a public road it replaces tests nobody could run safely. The risk is that the model is wrong. Suppose a driving world model learned mostly from dry daytime drives. On a snowy night it may predict a dry-road stopping distance. An agent that practiced inside it learns to brake too late.
So the recordings behind a world model of real places need:
AI is blind to the physical world when everything it knows comes from text, documents, databases, and the internet. A world model of a car needs facts tied to a place and a time: the slope under the wheels, the rain that hour, the speed limit on that road, the angle of the sun. Those facts come from maps, satellite and elevation data, and weather records. Matching them to millions of car positions is a spatial join.
Ground observations attach those conditions to every recorded position. The joined recordings then give a world model a starting point for each imagined drive, and real outcomes to check its predictions against. Post hoc analysis checks the recordings after they are collected. Is the clock right? Which conditions are covered? And how close are the elevation and weather values to the car’s own readings?
Wherobots is the Context Engine for Physical World Data. It helps world model teams in three ways.
Grounding simulated worlds in observed data. WherobotsDB reads, indexes, and joins weather records, imagery, elevation, boundaries, and road networks with spatial SQL. It reads large raster files where they sit in cloud storage and runs raster math on them. The joined data trains the model, sets up each imagined drive, and supplies the real outcomes the model is checked against. The Wherobots documentation describes WherobotsDB as serverless, with more than 300 vector and raster functions and queries up to 20x faster than open-source Apache Sedona.
Turning Earth observation into features. RasterFlow (Public Preview) stitches aerial and satellite images into mosaics. It runs computer vision models over them and turns what they find, such as roads or field boundaries, into map features you can join to drive recordings.
Connecting AI agents to the data. The Wherobots MCP server lets an AI agent browse data catalogs, write spatial SQL, and run queries. An agent that builds or checks a simulation can read the same tables the world model learned from.
The world model is the brain that predicts. Wherobots is the nervous system that feeds it the observed state of the physical world.
Two public sets of drive recordings show both jobs. The Vehicle Energy Dataset (VED, Apache 2.0) holds 22,436,808 GPS positions from 383 personal cars on 32,552 trips around Ann Arbor, Michigan, from November 2017 to November 2018. Each position comes with the car’s speed, engine load, and outside temperature. comma2k19 (MIT) holds over 33 hours of commutes on California Interstate 280. It records GPS position and altitude, and speed from the car’s computer.
Each source arrives in a different format. The job reads every one where it is stored:
Most spatial tools handle either map shapes or raster images. With separate tools, a team has to convert and copy the data before anything can be joined. WherobotsDB joins car positions, elevation rasters, and weather tables in one engine. The whole analysis, both datasets, is one SQL job. It ran in about two minutes and saved its results as Apache Iceberg tables.
VED records time as days since 1 November 2017. Its documentation does not say which time zone. A wrong clock would match every drive with the wrong hour’s weather. So the job checks the clock first, against an independent thermometer: the Ann Arbor airport weather station (KARB, NOAA ISD 72537494889).
The job reads the station’s hourly file into a table called karb, one row per hour with the mean temperature tmp_c. It turns the VED day count into a timestamp in a table called ved (t_doc = 1509494400 + (DayNum - 1) * 86400, outside temperature oat_c). Then it slides the cars’ hourly average temperature against the airport’s, one hour at a time, from 96 hours back to 24 hours forward:
karb
tmp_c
ved
t_doc = 1509494400 + (DayNum - 1) * 86400
oat_c
CREATE OR REPLACE TEMP VIEW fleet AS SELECT floor(t_doc / 3600) AS h, AVG(oat_c) AS oat FROM ved WHERE oat_c IS NOT NULL GROUP BY 1 HAVING COUNT(*) >= 30; -- Anomalies: each hour minus the mean for its hour of day and month CREATE OR REPLACE TEMP VIEW fleet_a AS SELECT h, oat - AVG(oat) OVER (PARTITION BY hour(from_unixtime(h * 3600)), month(from_unixtime(h * 3600))) AS a FROM fleet; CREATE OR REPLACE TEMP VIEW karb_a AS SELECT hour_utc, tmp_c - AVG(tmp_c) OVER (PARTITION BY hour(from_unixtime(hour_utc * 3600)), month(from_unixtime(hour_utc * 3600))) AS a FROM karb WHERE tmp_c IS NOT NULL; WITH lags AS (SELECT explode(sequence(-96, 24)) AS lag_h) SELECT l.lag_h, corr(f.a, k.a) AS r_anomaly FROM lags l CROSS JOIN fleet_a f JOIN karb_a k ON k.hour_utc = f.h + l.lag_h GROUP BY l.lag_h
A simple comparison hides the problem. Every day is warmer in the afternoon, so the raw temperatures line up well under the published clock (correlation 0.871). The query removes that daily cycle and compares only the unusual swings, such as a cold front. Now the published clock scores 0.353. A one-day shift scores 0.531. A two-day shift scores 0.819, across 5,259 matched hours. With the two-day shift applied, the cars’ thermometers track the airport closely (correlation 0.964, typical difference 1.3 °C).
comma2k19 has a different clock problem. Each recording’s file name includes a date and time. The first GPS position in each recording comes about 7.3 hours after that time, read as UTC, across 2,035 recordings. The file names are in Pacific time. A weather match based on them would be 7 or 8 hours off.
With the clock fixed, each recorded position gets four things: the airport’s weather for that hour, the height of the sun, the slope of the road in the direction of travel, and the speed limit of the nearest road. The slope comes from the USGS 3DEP elevation map, read straight from the public USGS bucket in small tiles:
CREATE OR REPLACE TEMP VIEW dem_aa_src AS SELECT RS_FromPath('s3a://prd-tnm/StagedProducts/Elevation/13/TIFF/current/n43w084/USGS_13_n43w084.tif', 'fs.s3a.aws.credentials.provider=org.apache.hadoop.fs.s3a.AnonymousAWSCredentialsProvider') AS rast; CREATE OR REPLACE TEMP VIEW dem_aa AS SELECT t.tile AS rast FROM (SELECT RS_TileExplode(rast, 256, 256) AS (x, y, tile) FROM dem_aa_src) t; CACHE TABLE dem_aa; SELECT q.*, (RS_Value(a.rast, q.q_ahead) - RS_Value(b.rast, q.q_behind)) / 60.0 AS grade_dem FROM ved_q q JOIN dem_aa a ON RS_Intersects(a.rast, q.q_ahead) JOIN dem_aa b ON RS_Intersects(b.rast, q.q_behind)
ved_q holds one position per second for cars moving faster than 5 km/h. For each one it adds two points, 30 m ahead and 30 m behind along the car’s direction (q_ahead and q_behind). The slope is the height difference between those points over 60 m. 11,102,231 moving positions fall inside the elevation tile. 49.4% of them are within about 25 m of a road with a known speed limit.
ved_q
q_ahead
q_behind
Here is how fast the cars drove in each condition. A world model’s predictions have to match these numbers:
Average speed as a share of the speed limit. The snowy, dark cell holds 27,217 positions; the dry daytime cell holds 4,255,968.
Engine load rises with slope. It averages 30.4% on flat road, 31.7% on slopes of 1% to 4%, and 32.0% above 4%. A model that knew only the car’s speed would predict the same load on all three. Steep downhills average 29.1%, slightly more than gentle downhills at 28.7%. That hints at errors in the elevation slope, which the last check measures.
Here is how many hours of driving the recordings hold in each combination of conditions. Where the hours are few, a world model has little to learn from:
Snow or freezing rain covers 60.1 of 3,084 hours. Snow, darkness, and a steep slope together cover 3.4 hours, about 0.1% of the driving. comma2k19 has even less: fog or poor visibility covers 1.9 of its 34 hours, and fog in the dark on a steep slope covers 2.6 minutes.
Outside data has errors of its own. comma2k19 records each car’s GPS altitude, so the job compares two slopes: one from the elevation map and one from the car’s own altitude over six seconds. Across 89,767 positions above 10 km/h, the two agree only partly (correlation 0.645). On a typical road they match: 2.1% from the map, 2.0% from the car. On the steepest 1% of roads they split: 16.7% from the map, 5.8% from the car. The map shows bare ground, so it reads the valley under a bridge and the cut beside a freeway as part of the road. A world model fed that map slope would learn hills the car never climbed. A team should cap or replace map slope on bridges and overpasses first. The cars’ thermometers allow the same check for weather. Over 6,348,887 positions, the cars read 1.2 °C warmer than the airport on average, and 90% were within 4.7 °C.
A driving world model learns from recorded drives. It sees what the car was doing and what the driver did, and it learns to predict the next second: speed, position, engine load. Then its predictions are checked against drives it did not learn from. Each finding below changes what goes into that learning or that check.
Run these checks on your own drive recordings with a Wherobots free trial at cloud.wherobots.com.
A world model is an AI model that predicts what happens next. Given the current situation and an action, it returns the situation that follows. An agent uses those predictions to test moves before it makes one. David Ha and Jürgen Schmidhuber brought the term into machine learning with World Models (2018).
A large language model learns from text, documents, databases, and the internet, and predicts the next token, a word or part of a word. A world model predicts the next state of a place, such as the next video frame, a car’s speed one second later, or tomorrow’s weather, usually after an action. Yann LeCun’s A Path Towards Autonomous Machine Intelligence (2022) argues that machines that plan need predictive world models.
Reinforcement learning trains an agent by trial and error. Some agents first learn a world model, then practice inside it instead of in the real world. Dreamer learns entirely from imagined practice, and MuZero plans its moves with a learned model. If the world model is wrong about some condition, such as snow, the agent learns the wrong behavior for that condition.
Yes. In February 2026 Waymo introduced the Waymo World Model, a generative model for driving simulation built on Google DeepMind’s Genie 3 and adapted to produce camera and lidar output. Engineers steer its scenes with language prompts, driving inputs, and scene layouts to simulate rare events.
Recorded drives with the right time and position on every record, plus the conditions around the car at each moment: the weather that hour, daylight, the slope of the road, and the speed limit. Those values have to be matched on the right clock and checked against the car’s own sensors. In the Vehicle Energy Dataset, the published clock was 48 hours off. Comparing the cars’ thermometers with an airport weather station showed it.
Wherobots is the Context Engine for Physical World Data. WherobotsDB matches weather records, elevation, roads, and imagery to drive recordings with spatial SQL, so a world model has the conditions around every car to learn from and be checked against. It also runs the checks that catch errors in those recordings, such as a wrong clock. RasterFlow (Public Preview) turns aerial and satellite imagery into vector features, and the Wherobots MCP server gives AI agents query access to the results.
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: