What video games can teach us about where people walk

We used 272 hours of gameplay to train a model to predict where people might go next, then tested it on real road footage.

Pedestrians cross a city street with blue lines showing their possible paths.

In a video game, characters take shortcuts, double back and weave around each other. Some are controlled by people, others by the game itself. The game can keep a record of every turn, stop and change of pace.

Those records are useful when you want to teach a model where people might move next. On road footage, building a training example means tracking someone from frame to frame and marking where they went. In a game, those positions can be recorded automatically. Could that data give a model a head start when labelled footage from real streets is scarce?

The game already had the answer

We tested the idea with gameplay from Counter-Strike 2. The game records where players go, even when a wall hides them from the camera. To turn those records into useful examples, we rebuilt five maps in 3D and checked what the camera could see. Walls and smoke could block the view. We kept stretches where the player was visible and nobody was shooting.

That gave us 875,279 movement examples from 272 hours of gameplay. Each paired what the camera could see with where the player actually went. The game supplied those answers automatically, so we could build the game dataset without labelling frames by hand.

Three seconds in, six possible paths out

Picture someone walking towards a kerb. They could keep going, stop to wait or turn along the pavement. Ask a model for one answer and it can learn to split the difference, drawing a path nobody would take.

We built a model that follows each person through three seconds of video and proposes six paths for the next few seconds. During training, the path closest to what actually happened gets the correction for that example. Across many examples, different paths can learn to cover turns, stops and other ways the same approach might end.

Same road footage, different starting points

A player sprinting through a stone courtyard moves differently from someone walking to the shops. To test what carried over, we used two public collections of video recorded from cars. JAAD focuses on how drivers and pedestrians interact around crossings. PIE contains longer, continuous recordings of city driving. Both mark where pedestrians appear in the footage, so we can check our predictions against where people actually went.

On each collection, we trained two copies of the same model. One started from scratch. The other had already trained on Counter-Strike. We ran the comparison with a tenth of the available training data and again with all of it. Both models got the same road footage in each comparison.

We compared the boxes the models drew around pedestrians 1.5 seconds into the future with the boxes marked in the footage. With just a tenth of the labelled training data, the model that started in Counter-Strike had about 79% lower error on this measure in both datasets. It still came out ahead with all the labelled data, though the gap was smaller.

Reduction in prediction error with game pretraining compared with training from scratch
Labelled road data used for trainingJAAD errorPIE error
10% · One tenth79% lower79% lower
100% · All available22% lower32% lower

Each value shows how much lower the error was after game pretraining, compared with training from scratch on the same labelled road data. The metric is mean squared error for predicted pedestrian boxes in the image at 1.5 seconds.

What stayed with the model

The game gave us more than footage. It also told us how the camera moved and what the scene looked like in 3D. That extra information matters when a camera turn shifts everything in the frame. In a separate comparison, the version that trained with map and camera information improved more on road footage than the version that trained on game images alone. At prediction time, the model used video from a single camera.

Video demo of the training process and predictions on recorded road footage. The cyclist sequence comes from the PIE dataset.

This started as a 48-hour experiment. A game gave us something valuable for training a model: a record of where every player went, ready to use without labelling frames by hand. On real road footage, that head start mattered most when labelled examples were scarce.

That’s what makes games and simulations worth exploring as research labs. They give us a place to try ideas, and real-world data lets us see which ones travel.

More from the blog