Programmatic Concept Learning for Human Motion Description and Synthesis

Sumith Kulal, Jiayuan Mao, Alex Aiken, Jiajun Wu · DOI

Abstract

We introduce Programmatic Motion Concepts (PMC), a hierarchical motion representation for human actions that captures both low-level motion and high-level description as motion concepts. This representation enables human motion description, interactive editing, and controlled synthesis of novel video sequences within a single framework. We present an architecture that learns this concept representation from paired video and action sequences in a semi-supervised manner. The compactness of our representation also allows us to present a low-resource training recipe for data-efficient learning. By outperforming established baselines, especially in the small data regime, we demonstrate the efficiency and effectiveness of our framework for multiple applications.

Introduction

Analyzing human motion in video typically involves two distinct tasks: description (action recognition) and synthesis (video generation). Most existing models specialize in only one of these domains and often require massive, frame-level annotated datasets. Furthermore, standard deep learning models act as "black boxes," lacking an interpretable structure for motion.

We propose Programmatic Motion Concepts (PMC), a unified, data-efficient, and human-interpretable framework. PMC bridges the gap between low-level joint movements and high-level action descriptions by representing motion as a sequence of interpretable "programs" built from spline-based primitives.

Methodology

Hierarchical Motion Representation

The core of PMC is a three-level hierarchy:

  1. Motion Primitives: Low-level joint trajectories are modeled as cubic splines. Unlike linear or circular approximations, splines capture the complex, fluid curves of human movement, reducing representation error by approximately 57%.
  2. Motion Concepts: Primitives are grouped into named actions, such as "jumping jacks" or "squats."
  3. Program Level: A full video sequence is represented as a program of these concepts, allowing for high-level manipulation and repetition counting.
The programmatic representation allows for high-level motion description and repetition counting.

Data-Efficient Learning

To mitigate the need for large-scale frame-level annotations, we employ a weakly-supervised approach. A human annotator provides minimal input—roughly 8 mouse clicks per video—to mark the start and end of a repetition range and identify three individual instances within that range.

The weakly-supervised annotation scheme requires only a repetition range and a few instance markers to learn motion concepts.

The model leverages these few examples to automatically segment and learn the distribution of motion concepts across the dataset. The architecture utilizes MLPs to encode primitives and transitions, with a recurrent neural network (LSTM or GRU) capturing temporal context, trained using a Connectionist Temporal Classification (CTC) loss for sequence alignment.

Experiments and Results

We evaluated PMC on two datasets: MotiCon, a new dataset of cardio exercise videos, and GolfDB, for complex trajectory modeling.

Expressiveness and Description

On the MotiCon dataset, PMC achieved a Keypoint Difference (KD) of 0.229%, significantly outperforming previous motion program baselines (0.575%). For action recognition, the framework achieved over 91% sequence accuracy, surpassing standard encoder-decoder models.

Synthesis and Localization

In action-conditioned synthesis, PMC achieved a FID score of 2.406, nearly ten times better than the Act2Mot-2D baseline (23.465), indicating superior realism. Additionally, the model's ability to precisely localize the start and end frames of actions (mAP) was significantly enhanced by the primitive-based loss functions.

Conclusion

Programmatic Motion Concepts provide a powerful, interpretable, and data-efficient framework for motion analysis. By exploiting the repetitive nature of many human actions and using expressive spline primitives, PMC enables unified recognition, editing, and synthesis. Future work will focus on improving robustness to noisy keypoint extraction and learning smoother transitions between distinct motion concepts.

Summary updated

BibTeX
@inproceedings{kulal2022programmatic,
  author = {Sumith Kulal and Jiayuan Mao and Alex Aiken and Jiajun Wu},
  title = {{Programmatic Concept Learning for Human Motion Description and Synthesis}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.01347},
}
Figure