Human Motion Prediction via Spatio-Temporal Inpainting

Alejandro Hernandez Ruiz, Juergen Gall, Francesc Moreno-Noguer

TL;DR

This paper introduces STMI-GAN, a generative model that treats 3D human motion prediction as a spatio-temporal inpainting task. By filling in "missing" future data in a motion tensor and utilizing frequency-based metrics, the system generates realistic, long-term human motion (2+ seconds) that includes both body pose and absolute spatial positioning.

What Problem Does This Paper Address?

Predicting how a human will move in the next few seconds is a cornerstone of robotics and computer vision, yet existing deep learning models (typically based on RNNs or seq2seq architectures) suffer from three major flaws:

  1. Regression to the Mean: Because they often minimize L2 (Euclidean) distance, models eventually "play it safe" by predicting a static, average pose rather than dynamic movement.
  2. Ignoring Global Motion: Most models only predict relative joint angles, ignoring where the person is actually moving in the room (absolute position).
  3. Short Horizons: Most state-of-the-art methods fail to produce plausible motion beyond a few hundred milliseconds.

The authors argue that the standard L2 metric is fundamentally ill-suited for this task because a realistic but "incorrect" future (e.g., turning left instead of right) is penalized more heavily than a blurry, static skeleton.

Methods

The core innovation is framing motion prediction as spatio-temporal inpainting.

  • Data Representation: Human motion is represented as a 3D tensor ($Time \times Joints \times Coordinates$). The "past" is observed data, and the "future" is treated as a hole to be filled.
  • The Generator: The architecture uses a frame encoder/decoder paired with "Generator U-Blocks" (inspired by U-Net). This allows the model to process the motion volume holistically rather than step-by-step.
  • Triple Discriminators: To ensure realism, the authors employ three specialized discriminators:
  • Base Discriminator: Evaluates the raw joint coordinates.
  • EDM Discriminator: Analyzes the Euclidean Distance Matrix (joint-to-joint distances) to ensure the skeleton maintains a human shape (anthropomorphism).
  • Motion Discriminator: Looks at temporal differences to ensure the rhythm and speed of the motion are natural.
Figure 2. Overview of our architecture. An input masked sequence of 3D joint coordinates is fed into a fully convolutional and time preserving generator. The output sequence is controlled by a number of geometric constraints, including losses applied to the generator output and adversarial losses of three independent discriminators.

Datasets

The model was trained and evaluated on Human3.6M, a standard large-scale dataset for 3D human sensing. The authors followed standard protocols for training/validation splits to ensure fair comparison with existing baselines.

Key Insights and Ideas

  • L2 Loss is for the Past, GAN Loss is for the Future: The authors only apply L2 reconstruction loss to the observed part of the sequence. For the predicted future, they rely entirely on the adversarial loss. This prevents the model from collapsing into a "mean pose" and encourages it to "hallucinate" a single, sharp, plausible future.
  • Frequency-Domain Evaluation: They introduce two new metrics: PSEnt (Power Spectrum Entropy) and PSKL (KL divergence of power spectra). These measure the "rhythm" of the motion. A model that freezes into a static pose will have a very different frequency signature than a human walking, making these metrics much better at detecting realism than simple coordinate distances.
  • Jointly Learning Pose and Position: By including absolute coordinates in the tensor, the model learns the correlation between body language and movement—for example, how a person leans their torso before taking a step.

Key Results

  • Long-Term Stability: While baselines like the Residual Supervised model [24] quickly decay into static poses, STMI-GAN maintains realistic motion for 2 to 4 seconds.
  • Human Evaluation: In "real vs. fake" surveys, humans were fooled by STMI-GAN's absolute motion predictions 38.39% of the time on average, significantly higher than the 31.46% for a non-adversarial version.
  • Robustness: Because it is an inpainting model, it naturally handles corrupted data. It can successfully recover motion even when 80% of the input joints are occluded or when entire frames are missing.
Figure 5. H3.6 Examples. Blue is first frame, black is first pre- dicted frame, red is last predicted frame. Total length is 4 secs, 2 seed + 2 predicted.

Limitations and Future Work

The authors acknowledge that while the type of motion (e.g., walking) and direction are usually correct, the speed of the motion can sometimes be inaccurate. In scenarios with high uncertainty—such as a person suddenly stopping—the model might guess a plausible continuation that looks real but differs from the specific ground truth. Future work could involve incorporating more context or multi-modal predictions to handle these ambiguous "forks in the road" of human behavior.

Summary updated

BibTeX
@misc{ruiz2018human,
  author = {Alejandro Hernandez Ruiz and Juergen Gall and Francesc Moreno-Noguer},
  title = {{Human Motion Prediction via Spatio-Temporal Inpainting}},
  year = {2018},
  eprint = {1812.05478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.05478},
}
Figure