Datasets:
scene_id large_stringlengths 12 12 | person_id int64 1 1.11M | intended float64 0 2 | speed float64 0.4 2.31 | group float64 0 10 | spawn_t float64 0 149 | exit_t float64 0.8 180 ⌀ | exited_via int64 0 2 ⌀ |
|---|---|---|---|---|---|---|---|
scene_000000 | 1 | 0 | 1.353043 | 2 | 9.33 | 15.56 | 0 |
scene_000000 | 2 | 0 | 1.305783 | 2 | 9.33 | 15.13 | 0 |
scene_000000 | 4 | 1 | 1.138069 | 2 | 9.42 | 15.73 | 1 |
scene_000000 | 5 | 1 | 1.282411 | 2 | 9.46 | 25.62 | 1 |
scene_000000 | 6 | 1 | 1.154425 | 2 | 9.47 | 15.91 | 1 |
scene_000000 | 7 | 1 | 1.171041 | 2 | 9.55 | 25.08 | 1 |
scene_000000 | 10 | 0 | 1.102491 | 2 | 9.67 | 16.68 | 0 |
scene_000000 | 11 | 1 | 1.41039 | 2 | 9.7 | 13.43 | 1 |
scene_000000 | 13 | 0 | 1.378823 | 2 | 9.76 | null | 1 |
scene_000000 | 14 | 0 | 1.310815 | 2 | 9.78 | 15.86 | 0 |
scene_000000 | 15 | 1 | 1.153565 | 2 | 9.79 | 15.32 | 1 |
scene_000000 | 16 | 1 | 1.285231 | 2 | 9.8 | 16.02 | 1 |
scene_000000 | 17 | 0 | 1.269322 | 2 | 9.84 | 15.51 | 0 |
scene_000000 | 18 | 1 | 1.076684 | 2 | 9.84 | 16.94 | 1 |
scene_000000 | 20 | 1 | 1.386097 | 2 | 9.89 | 21.3 | 1 |
scene_000000 | 29 | 1 | 1.18037 | 2 | 10.11 | 21.39 | 1 |
scene_000000 | 30 | 1 | 1.318162 | 2 | 10.13 | 14.43 | 1 |
scene_000000 | 33 | 0 | 1.155239 | 2 | 10.14 | 18.16 | 0 |
scene_000000 | 39 | 0 | 1.230345 | 2 | 10.21 | 17.54 | 0 |
scene_000000 | 40 | 1 | 1.269354 | 2 | 10.21 | 28.49 | 1 |
scene_000000 | 41 | 1 | 1.241099 | 2 | 10.22 | 15.4 | 1 |
scene_000000 | 45 | 0 | 1.193509 | 2 | 10.29 | 17 | 0 |
scene_000000 | 47 | 1 | 0.870786 | 2 | 10.33 | 24.71 | 1 |
scene_000000 | 48 | 0 | 1.398408 | 2 | 10.33 | 15.39 | 0 |
scene_000000 | 55 | 0 | 1.172229 | 2 | 10.46 | 21.05 | 0 |
scene_000000 | 57 | 0 | 1.253358 | 2 | 10.46 | 16.08 | 0 |
scene_000000 | 61 | 0 | 0.928114 | 2 | 10.52 | 19.4 | 0 |
scene_000000 | 65 | 1 | 1.255747 | 2 | 10.55 | 25.14 | 1 |
scene_000000 | 72 | 1 | 1.35899 | 2 | 10.61 | 19.28 | 1 |
scene_000000 | 73 | 1 | 1.072419 | 2 | 10.65 | 18.17 | 1 |
scene_000000 | 76 | 1 | 1.275058 | 2 | 10.71 | 19.32 | 1 |
scene_000000 | 77 | 1 | 1.395136 | 2 | 10.71 | 16.43 | 1 |
scene_000000 | 78 | 1 | 1.360503 | 2 | 10.73 | 17.06 | 1 |
scene_000000 | 94 | 1 | 1.136031 | 2 | 10.94 | 17.24 | 1 |
scene_000000 | 101 | 0 | 1.273167 | 2 | 11.06 | 19.89 | 0 |
scene_000000 | 102 | 1 | 1.267648 | 2 | 11.1 | 20.31 | 1 |
scene_000000 | 114 | 1 | 1.262937 | 2 | 11.27 | 18.08 | 1 |
scene_000000 | 117 | 1 | 1.423942 | 2 | 11.33 | 19.74 | 1 |
scene_000000 | 130 | 1 | 1.269427 | 2 | 11.53 | 20.83 | 1 |
scene_000000 | 131 | 1 | 1.258906 | 2 | 11.53 | 20.85 | 1 |
scene_000000 | 138 | 0 | 1.573264 | 2 | 11.57 | 20.3 | 0 |
scene_000000 | 142 | 0 | 1.021973 | 2 | 11.63 | 24.66 | 0 |
scene_000000 | 149 | 1 | 1.683032 | 2 | 11.75 | 16.17 | 1 |
scene_000000 | 152 | 0 | 1.198899 | 2 | 11.77 | null | 1 |
scene_000000 | 154 | 1 | 1.17867 | 2 | 11.79 | 21.91 | 1 |
scene_000000 | 158 | 1 | 1.640574 | 2 | 11.86 | 19.95 | 1 |
scene_000000 | 163 | 1 | 1.483461 | 2 | 11.95 | 21.74 | 1 |
scene_000000 | 166 | 1 | 1.233941 | 2 | 11.99 | 19.83 | 1 |
scene_000000 | 170 | 1 | 1.419767 | 2 | 12.06 | 17.66 | 1 |
scene_000000 | 191 | 1 | 1.135719 | 2 | 12.37 | 20.8 | 1 |
scene_000000 | 193 | 1 | 1.204881 | 2 | 12.4 | 20.36 | 1 |
scene_000000 | 194 | 1 | 1.350805 | 2 | 12.41 | 24.21 | 1 |
scene_000000 | 202 | 0 | 1.300738 | 2 | 12.53 | null | 1 |
scene_000000 | 211 | 1 | 1.048521 | 2 | 12.61 | 22.83 | 1 |
scene_000000 | 214 | 1 | 1.444486 | 2 | 12.64 | 22.23 | 1 |
scene_000000 | 216 | 0 | 1.194607 | 2 | 12.65 | 22.14 | 0 |
scene_000000 | 223 | 1 | 1.354872 | 2 | 12.75 | 21.25 | 1 |
scene_000000 | 228 | 0 | 1.511881 | 0 | 12.84 | 16.18 | 0 |
scene_000000 | 232 | 0 | 1.261172 | 2 | 12.87 | null | 1 |
scene_000000 | 239 | 0 | 1.320708 | 2 | 12.95 | 18.51 | 0 |
scene_000000 | 243 | 0 | 1.592351 | 2 | 13 | 19.61 | 0 |
scene_000000 | 245 | 0 | 1.3704 | 2 | 13.04 | 23.29 | 0 |
scene_000000 | 246 | 1 | 1.24423 | 2 | 13.05 | 22.34 | 1 |
scene_000000 | 247 | 1 | 1.295831 | 2 | 13.05 | 18.32 | 1 |
scene_000000 | 251 | 1 | 1.423622 | 2 | 13.13 | 26.37 | 1 |
scene_000000 | 258 | 1 | 1.194959 | 2 | 13.23 | 23.22 | 1 |
scene_000000 | 267 | 1 | 1.080959 | 2 | 13.36 | 25.6 | 1 |
scene_000000 | 272 | 1 | 1.298664 | 2 | 13.47 | 19.04 | 1 |
scene_000000 | 275 | 1 | 1.427197 | 0 | 13.5 | 16.57 | 1 |
scene_000000 | 279 | 0 | 1.338808 | 2 | 13.54 | 22.96 | 0 |
scene_000000 | 284 | 1 | 0.911458 | 2 | 13.59 | 22.92 | 1 |
scene_000000 | 292 | 0 | 1.096269 | 2 | 13.71 | 21.8 | 0 |
scene_000000 | 297 | 1 | 1.349892 | 2 | 13.79 | 25.72 | 1 |
scene_000000 | 302 | 0 | 1.518496 | 2 | 13.85 | 19.25 | 0 |
scene_000000 | 304 | 1 | 1.287711 | 2 | 13.89 | 27.93 | 1 |
scene_000000 | 312 | 0 | 1.166533 | 2 | 14.02 | 19.96 | 0 |
scene_000000 | 315 | 1 | 1.349668 | 0 | 14.06 | 17.53 | 1 |
scene_000000 | 318 | 0 | 1.210349 | 2 | 14.11 | 21.16 | 0 |
scene_000000 | 325 | 1 | 1.2284 | 2 | 14.22 | 26.14 | 1 |
scene_000000 | 330 | 1 | 1.262912 | 0 | 14.32 | 22.7 | 1 |
scene_000000 | 332 | 0 | 1.369619 | 2 | 14.34 | 21.87 | 0 |
scene_000000 | 334 | 0 | 1.322549 | 2 | 14.36 | 20.71 | 0 |
scene_000000 | 335 | 0 | 1.303391 | 2 | 14.4 | 22.81 | 0 |
scene_000000 | 338 | 1 | 1.105076 | 2 | 14.45 | 23.75 | 1 |
scene_000000 | 340 | 1 | 1.298406 | 2 | 14.46 | 23.25 | 1 |
scene_000000 | 343 | 0 | 1.355574 | 2 | 14.53 | 21.37 | 0 |
scene_000000 | 345 | 0 | 1.251567 | 2 | 14.6 | 20.21 | 0 |
scene_000000 | 348 | 1 | 1.528703 | 0 | 14.67 | 27.19 | 1 |
scene_000000 | 351 | 1 | 1.339612 | 2 | 14.7 | 24.85 | 1 |
scene_000000 | 359 | 1 | 1.304788 | 2 | 14.95 | 27.06 | 1 |
scene_000000 | 360 | 1 | 1.212143 | 2 | 15 | 26.35 | 1 |
scene_000000 | 362 | 1 | 1.275504 | 2 | 15.05 | 24.26 | 1 |
scene_000000 | 366 | 1 | 1.228884 | 2 | 15.21 | 21.77 | 1 |
scene_000000 | 367 | 0 | 1.304544 | 2 | 15.27 | 22.34 | 0 |
scene_000000 | 370 | 0 | 1.487585 | 2 | 15.49 | 23.72 | 0 |
scene_000000 | 374 | 1 | 1.210347 | 2 | 15.92 | 23.51 | 1 |
scene_000000 | 375 | 0 | 1.1519 | 2 | 15.93 | 25.85 | 0 |
scene_000000 | 376 | 1 | 1.099351 | 2 | 15.94 | 23.91 | 1 |
scene_000000 | 377 | 0 | 1.470731 | 2 | 16.92 | 22.27 | 0 |
scene_000000 | 378 | 0 | 1.366124 | 2 | 17.9 | 23.67 | 0 |
Crowd What-If
Simulated crowds where you know what everyone wants, and "what if?" pairs: the same crowd moment replayed under different gate plans, with the true outcome of each.
Use it to train and test models that watch a crowd, guess where people are heading, and predict what happens if you close or open a gate.
One test moment. First the 2 s a model gets to watch, then what really happens under each gate plan. Everyone here wants exit B (orange). Closing B sends them to exit A, which breaks up the queue but gets fewer people out in 10 s.
- 15,000 scenes: 6,000 halls, 5,000 train platforms, 4,000 bottlenecks. 1.85M people, 5 frames per second.
- Hidden labels: each person's intended exit, current target and desired speed.
- Actions: gates closing and opening, train arrivals.
- 9,145 what-if moments, each replayed under 2–3 gate plans ("keep", "close B", "open C").
- Realistic simulator: JuPedSim, tuned to real crowd experiments (10.6% flow error).
Real recordings only show what actually happened. Here you also get what would have happened.
How it was made
- Scenes: random rooms with 1–3 exits, waiting crowds, steady streams and train doors. Each crowd has its own hurry level (0.8–1.6 m/s). Rushed crowds also stand closer together.
- Gates close and reopen during scenes. People heading for a closed exit walk to the nearest open one.
- What-if moments: the simulator restarts from everyone's exact position and replays 10 s once per plan: keep the gates as they are, or change one gate 1 s in. Nobody new enters during the replay.
Splits are by scene: 13,500 train, 750 validation, 750 test. What-if moments: 7,072 train, 1,039 validation, 1,034 test.
Files
| Config | One row per | Main columns |
|---|---|---|
scenes |
scene | scene_id, split, family, layout as polygons (walkable_wkt, exits_wkt, gates_wkt), gate_events, hidden hurry |
trajectories |
person per frame | scene_id, person_id, t (s), x, y (m), target (current exit, hidden) |
people |
person | scene_id, person_id, intended exit, desired speed (hidden) |
whatif |
moment | moment_id, scene_id, k0 (last watched frame), plans, exit_counts (people out per exit in 10 s, per plan) |
whatif_truth |
person per frame per plan | moment_id, plan, person_id, n (frames after k0), x, y |
Frame = round(t × 5), counted from the start of the scene. The 2 s a model "watches" are frames k0-9 … k0.
from datasets import load_dataset
import json
moments = load_dataset("reubenrouse/crowd-whatif", "whatif", split="test").to_pandas()
traj = load_dataset("reubenrouse/crowd-whatif", "trajectories", split="test").to_pandas()
m = moments.iloc[0]
watched = traj[(traj.scene_id == m.scene_id) & (traj.t.mul(5).round().between(m.k0 - 9, m.k0))]
for j, plan in enumerate(json.loads(m.plans)):
print(plan["name"], "-> people out per exit:", json.loads(m.exit_counts)[j])
Benchmark (test set)
Every method sees only 2 s of positions, never the hidden labels.
| Method | Exit-count error (people) | Gets the effect's direction right | Finds the right gate change when one helps | Picks the least crowded plan |
|---|---|---|---|---|
| Random | – | – | – | 48% |
| Never touch the gates | – | – | 0% | 72% |
| Simulator, everyone to the nearest exit | 6.0 | 83% | 47% | 77% |
| Simulator, exit guessed from walking direction | 4.7 | 79% | 58% | 74% |
| Crowd World Model | 3.7 | 93% | 80% | 80% |
Crowding = people in the busiest 1 m² after 10 s.
Limitations
- It's simulated: no pushing, simple route choice, rooms up to 16 × 16 m.
- Nobody new enters during a what-if replay.
- The simulator is deterministic, so each plan has one true outcome.
Licence
CC BY 4.0. Made with JuPedSim. Code to rebuild everything: github.com/reubenjrouse/crowd-world-model.
- Downloads last month
- 81

