Generating Human Action Videos by Coupling 3D Game Engines and Probabilistic Graphical Models

César Roberto de Souza, Adrien Gaidon, Yohann Cabon, Naila Murray, Antonio Manuel López

TL;DR

This paper introduces a novel framework that pairs 3D game engines with probabilistic graphical models to procedurally generate a massive, physically plausible dataset of human action videos (PHAV). By co-training deep networks on this synthetic data alongside real-world datasets, the authors demonstrate significant performance boosts in video action recognition, particularly when real-world training data is scarce.

What Problem Does This Paper Address?

Modern deep learning models excel at video action recognition, but their success relies on massive amounts of labeled training data. Manually annotating videos is incredibly time-consuming, expensive, and prone to human error. Furthermore, obtaining pixel-level ground truth for complex modalities like optical flow or semantic segmentation is virtually impossible for humans to do manually on real-world footage.

While synthetic data from virtual worlds has successfully trained models for static image tasks (like object detection and semantic segmentation), generating realistic video data introduces a massive hurdle: capturing complex, physically plausible human motion and dynamic scene interactions over time.

Methods

The authors tackle this challenge by combining a probabilistic graphical model with the Unity® Pro 3D game engine to orchestrate video generation.

Instead of treating videos merely as tensors of pixel values, the system uses structural priors based on physics and scene composition rules:

  • Procedural Animation & Ragdoll Physics: The framework takes a library of "atomic motions" (sourced from CMU MoCap data and digital artists) and programmatically recombines them. By utilizing active ragdoll physics, the engine can simulate complex physical interactions on the fly—such as a character being struck by a car or two characters hugging.
  • The Kite Camera: To capture these actions naturally, the authors designed a physics-based camera system governed by virtual rigid bodies and springs attached to the protagonist. This setup allows the camera to track actors smoothly, simulate handheld jitter, and realistically bounce off obstacles rather than clipping through walls.
Fig. 4: Representation of our Kite camera.
  • Efficient Multi-Modal Rendering: Using the Multiple Render Targets (MRT) feature of modern GPUs, the system renders six data modalities simultaneously (including RGB, depth maps, semantic/instance segmentation, and forward optical flow) at a highly efficient 3.6 frames per second on a single consumer GPU.
  • Cool-TSN Architecture: To effectively leverage this data, the authors introduced "Cool-TSN," a multi-task learning architecture based on Temporal Segment Networks. It mixes synthetic and real-world video snippets at the mini-batch level during training, routing them through separate classification heads to handle differing action categories.

Datasets

The primary contribution is the introduction of the PHAV (Procedural Human Action Videos) dataset:

  • PHAV: Contains 39,982 videos spanning 35 action categories (21 simple actions aligned with real-world datasets, and 14 entirely synthetic, procedurally defined actions like "car hit" and "stagger").
  • Real-World Benchmarks: The framework was evaluated by its ability to improve performance on the standard UCF-101 and HMDB-51 action recognition datasets.
Fig. 1: Procedurally generated human action videos. Depicted actions include: car hit, walking, kick ball, walking hug. Some are based on variations of existent MoCap sequences for these actions, whereas others have been programatically defined, with the final movement sequences being created on-the-fly through ragdoll physics and simulating the effect of physical interactions. For more example frames and an explanation of the legend icons seen here, cf. Appendix A.

Key Insights and Ideas

  • Physics as a Strong Prior: Incorporating a physics engine and ragdoll constraints provides a much stronger and more effective prior for video generation than trying to learn video distributions purely from pixels (as GANs do).
  • Surrogate Categories Work: Synthetic action categories do not need to perfectly match the target real-world categories to be useful. The network can learn robust, transferable representations of human appearance and motion from procedurally defined surrogate actions.
  • Regularization via "Cool Worlds": Mixing synthetic data into mini-batches acts as a powerful regularizer, preventing high-capacity deep networks from overfitting when real-world training sets are small.

Key Results

  • Performance Boosts: Integrating PHAV via the Cool-TSN framework improved the baseline Temporal Segment Network's performance across the board, raising full (RGB + Flow) accuracy from 93.6% to 94.2% on UCF-101 and from 66.6% to 69.5% on HMDB-51.
  • Data Efficiency: In low-data regimes, the synthetic data proved highly impactful. The authors found that they could replace half of the real-world HMDB-51 training dataset with procedural videos and still achieve comparable performance to using the full real dataset.
  • Outperforming Unsupervised Models: The discriminative representations learned via PHAV significantly outperformed video representations generated by state-of-the-art unsupervised generative models like VGAN.

Limitations and Future Work

Despite its success, the unsupervised generation of random scene variations inevitably causes edge cases where the physical models fail. The authors note that roughly 10% of the generated videos contain visible glitches reminiscent of video game bugs (e.g., characters passing through walls or experiencing overconstrained joint vibrations).

Additionally, scaling this approach to complex, multi-step hierarchical activities (like preparing a meal) remains difficult due to the combinatorial explosion of potential event sequences. For future work, the authors suggest exploring ways to automatically learn the scene parameter distributions directly from real-world datasets rather than sampling them uniformly.

Summary updated

Abstract

Deep video action recognition models have been highly successful in recent years but require large quantities of manually annotated data, which are expensive and laborious to obtain. In this work, we investigate the generation of synthetic training data for video action recognition, as synthetic data have been successfully used to supervise models for a variety of other computer vision tasks. We propose an interpretable parametric generative model of human action videos that relies on procedural generation, physics models and other components of modern game engines. With this model we generate a diverse, realistic, and physically plausible dataset of human action videos, called PHAV for "Procedural Human Action Videos". PHAV contains a total of 39,982 videos, with more than 1,000 examples for each of 35 action categories. Our video generation approach is not limited to existing motion capture sequences: 14 of these 35 categories are procedurally defined synthetic actions. In addition, each video is represented with 6 different data modalities, including RGB, optical flow and pixel-level semantic labels. These modalities are generated almost simultaneously using the Multiple Render Targets feature of modern GPUs. In order to leverage PHAV, we introduce a deep multi-task (i.e. that considers action classes from multiple datasets) representation learning architecture that is able to simultaneously learn from synthetic and real video datasets, even when their action categories differ. Our experiments on the UCF-101 and HMDB-51 benchmarks suggest that combining our large set of synthetic videos with small real-world datasets can boost recognition performance. Our approach also significantly outperforms video representations produced by fine-tuning state-of-the-art unsupervised generative models of videos.
BibTeX
@article{souza2020generating,
  author = {César Roberto de Souza and Adrien Gaidon and Yohann Cabon and Naila Murray and Antonio Manuel López},
  title = {{Generating Human Action Videos by Coupling 3D Game Engines and Probabilistic Graphical Models}},
  journal = {IJCV},
  year = {2020},
  doi = {10.1007/s11263-019-01222-z},
}
Figure