DIY Human Action Data Set Generation

Mehran Khodabandeh, Hamid Reza Vaezi Joze, Ilya Zharkov, Vivek Pradeep

TL;DR

This paper introduces a "Do-It-Yourself" (DIY) framework for generating synthetic human action videos to overcome the data-hungry nature of deep learning. By decoupling video into three independent components—action (skeletons), subject (appearance), and context (background)—the authors use a two-stage GAN approach to synthesize realistic training data that significantly improves the performance of action recognition models on small datasets.

What Problem Does This Paper Address?

Deep learning models for action recognition are notoriously "data-hungry," yet high-quality video datasets are difficult and expensive to acquire. While large-scale datasets like Kinetics exist, they may not cover the specific actions, subjects, or camera angles required for niche real-world applications like home health monitoring or specialized sports analysis.

The authors address this bottleneck by proposing a method to generate de novo data. Instead of manually recording thousands of clips, they propose a system that can take a small set of labeled videos and "multiply" them by swapping subjects into new backgrounds or generating entirely new motion trajectories from scratch.

Methods

The authors approach video generation in two distinct stages, as illustrated in the overview below:

Figure 1: Our algorithm takes as input an action label, a set of reference images and an arbitrary background. The output is a generated video of the person in the reference image performing a given action. We approached this problem in two stages. Firstly (left side) a generative model trained on a small labeled dataset of skeleton trajectories of human actions, generates a sequence of human skeletons conditioned on the action label. Secondly (right side), another generative mode trained on an unlabeled set of hu- man action videos, generates a sequence of photo-realistic frames conditioned on the given background, generated skeletons, and the person’s appearance given in the reference frames. This produces an arbitrary number of human action videos.

1. Skeleton Trajectory GAN

The first stage focuses purely on motion. A conditional Generative Adversarial Network (GAN) is trained on a small labeled dataset of human skeletons. Given an action label (e.g., "sitting") and a noise vector, it generates a sequence of 2D skeletons (18 joints over 8 time-steps). This allows the system to create an infinite variety of ways a specific action can be performed.

2. Frame GAN

The second stage turns these abstract skeletons into photo-realistic video frames. The generator takes three inputs:

  • Target Skeletons: The motion sequence from Stage 1.
  • Reference Images: Random photos of a specific person to define their appearance.
  • Background: An arbitrary image to serve as the context.

To ensure the generated person looks sharp against the background, the authors introduced a Regional L1 loss. Standard losses often result in a sharp background but a blurry, "ghostly" person; this new loss applies a higher weight to the pixels within the person's skeletal mask, forcing the network to prioritize the subject's visual details.

Figure 2: Structure of the network. On the left side ”generator network” takes as input background, target skeleton, and the transformed reference images to the target skeleton along with their masks. On the right side ”discriminator” takes as input generated image or ground truth and outputs ”fake” or ”real”.

Datasets

The researchers evaluated their method on three primary datasets:

  • UT Kinects: A dataset of 10 actions (e.g., walk, sit, throw) performed by 10 subjects.
  • SBU Interact: A more complex dataset involving two-person interactions (e.g., hugging, punching), used to test the model's ability to handle multiple subjects and occlusions.
  • KTH: Used primarily for cross-dataset evaluation and to introduce "new" actions (like boxing or jogging) into the UT Kinects environment.

Key Insights and Ideas

  • Factorization is Key: By separating motion, appearance, and background, the researchers can perform combinatorial data expansion. If you have $N$ subjects and $M$ actions, you can theoretically generate $N \times M$ unique videos, far exceeding the original dataset size.
  • Skeletons as a Bridge: Generating pixels directly from an action label is extremely difficult for GANs. Using skeletons as an intermediate representation provides a structural "scaffold" that makes the pixel-generation task much more manageable.
  • Independence of Motion and Appearance: The Frame GAN can be trained on unlabeled video data, while the Skeleton GAN requires labels. This allows the system to benefit from the vast amount of unlabeled human motion video available on the internet.

Key Results

The authors tested their synthetic data by adding it to the training sets of standard action recognition models like C3D and I3D.

  • Significant Accuracy Boosts: On the UT Kinects dataset, adding generated data improved the accuracy of the C3D model from 55.83% to 70.83%—a massive 15% jump.
  • Subject Generalization: By "virtually" adding new subjects to the SBU Interact dataset, the I3D model's performance improved from 86.48% to 91.23%.
  • Cross-Dataset Success: The model successfully learned actions from the KTH dataset and "re-enacted" them using subjects from the UT Kinects dataset, proving the framework's flexibility.
Figure 4: Generated images on two different datasets.

Limitations and Future Work

  • Temporal Resolution: The current model is limited to generating relatively short, fixed-length sequences (8 frames). Future work aims to accommodate longer, variable-length actions.
  • 2D vs. 3D: The use of 2D skeletons makes it difficult to handle complex 3D perspective changes and severe occlusions. The authors suggest moving to 3D skeletal representations in future iterations.
  • Image Resolution: While the results are impressive for $255 \times 255$ images, scaling to high-definition video remains a computational challenge.

Summary updated

BibTeX
@inproceedings{khodabandeh2018diy,
  author = {Mehran Khodabandeh and Hamid Reza Vaezi Joze and Ilya Zharkov and Vivek Pradeep},
  title = {{DIY Human Action Data Set Generation}},
  booktitle = {Workshops @ CVPR},
  year = {2018},
  url = {https://openreview.net/forum?id=HkVJaJG_ZB},
}
Figure