Meet JEANIE: A Similarity Measure for 3D Skeleton Sequences via Temporal-Viewpoint Alignment

Lei Wang, Jun Liu, Liang Zheng, Tom Gedeon, Piotr Koniusz

Abstract

Video sequences exhibit significant nuisance variations of speed of actions, temporal locations, and subjects’ poses, leading to temporal-viewpoint misalignment when comparing sequences. We propose Joint tEmporal and cAmera viewpoiNt alIgnmEnt (JEANIE), a novel similarity measure for 3D skeleton sequences. JEANIE addresses skeletal Few-shot Action Recognition (FSAR) by matching temporal blocks of support-query sequence pairs while factoring out nuisance variations. By simulating multiple camera viewpoints and performing joint local temporal-viewpoint warping, JEANIE selects the optimal matching path. We also introduce an unsupervised FSAR approach using JEANIE as a distance measure. Our method achieves state-of-the-art results across multiple benchmarks, including NTU-60, NTU-120, and Kinetics-skeleton.

Introduction

In video-based action recognition, models often struggle with "nuisance variations." For instance, a person performing an action might do it at varying speeds (temporal variation), and the camera might be positioned at different angles (viewpoint variation).

In Few-Shot Action Recognition (FSAR), where models must learn from very few examples, these variations are particularly problematic. A side-view and a front-view of the same action might appear mathematically distinct to a model. While Dynamic Time Warping (DTW) handles temporal alignment, it ignores viewpoint changes. Conversely, existing view-adaptive networks typically require large-scale training data. JEANIE bridges this gap with a differentiable metric that simultaneously warps both time and viewpoint to identify the underlying similarity between 3D skeleton sequences.

Methods

The proposed JEANIE framework consists of an encoding network and a specialized alignment unit designed to handle joint temporal and viewpoint variations.

High-level architecture of the proposed framework, featuring the encoding network and similarity comparator.

Encoding Network

A sequence of 3D skeletons is divided into short temporal blocks. Each block is processed by an encoding network comprising a Multi-Layer Perceptron (MLP), a Graph Neural Network (specifically $S^2GC$ to capture spatial connectivity), and an optional Transformer to extract robust feature maps.

Viewpoint Simulation

For a query sequence, the system simulates multiple camera viewpoints. This is achieved using the algebra of stereo projections (CamVPC), which models how camera positioning alters the 3D projection, rather than relying solely on simple 3D Euler rotations. This approach better captures the geometric reality of camera perspective changes.

Joint Alignment (JEANIE)

JEANIE extends the concept of soft-DTW by finding an optimal path across both time and simulated viewpoints. A key feature is the smoothness constraint: the simulated camera is only permitted to shift to adjacent angles between consecutive frames. This prevents unrealistic, abrupt viewpoint jumps and ensures the algorithm finds a physically plausible alignment. The final similarity score is derived by selecting the smallest distance among matching paths with different temporal-viewpoint warping patterns.

Detailed view of the JEANIE unit, illustrating the joint temporal-viewpoint alignment process across multiple simulated viewpoints and temporal indices.

Learning Paradigms

JEANIE is applied in three distinct settings:

  • Supervised: A loss function pulls same-class sequences together while pushing different classes apart.
  • Unsupervised: JEANIE serves as a distance metric in a dictionary learning setup for clustering sequences without labels.
  • Fusion: A meta-learning inspired approach combines supervised and unsupervised feature spaces for enhanced performance.

Datasets and Evaluation

The model was evaluated on several standard benchmarks:

  • NTU RGB+D 60 & 120: Large-scale datasets where the authors introduced new multi-view protocols to test viewpoint robustness.
  • Kinetics-skeleton: Skeletons extracted from diverse YouTube videos.
  • UWA3D Multiview Activity II: A dataset featuring 4 distinct camera views in cluttered environments.

Key Insights and Results

  • Smoothness is Essential: Testing a baseline that greedily picked the best viewpoint per frame (Free Viewpoint Matching) failed due to unrealistic zigzagging paths. JEANIE's smoothness constraint proved vital for accuracy.
  • Projection Geometry Matters: Simulating viewpoints via camera projection geometry (CamVPC) consistently outperformed simple Euler angle rotations.
  • Performance Gains: In supervised FSAR, JEANIE outperformed standard soft-DTW by 5-8% on NTU datasets. In unsupervised settings, it showed even larger gains, particularly on the viewpoint-heavy UWA3D dataset (up to 10%).
  • Fusion Benefits: Combining supervised and unsupervised approaches yielded a 4-9% improvement over supervised learning alone.

Limitations and Future Work

While highly effective on lab-recorded data, the viewpoint simulation provided marginal gains on "in-the-wild" datasets like Kinetics, likely due to the difficulty of estimating camera parameters from uncalibrated YouTube videos. Additionally, the current unsupervised dictionary learning implementation is computationally intensive and would benefit from further optimization and parallelization for real-world applications.

Summary updated

BibTeX
@article{wang2024meet,
  author = {Lei Wang and Jun Liu and Liang Zheng and Tom Gedeon and Piotr Koniusz},
  title = {{Meet JEANIE: A Similarity Measure for 3D Skeleton Sequences via Temporal-Viewpoint Alignment}},
  journal = {Int. J. Comput. Vis.},
  year = {2024},
  url = {https://openreview.net/forum?id=Py91KF7ipX},
}
Figure