Human Motion Analysis with Deep Metric Learning

Huseyin Coskun, David Joseph Tan, Sailesh Conjeti, Nassir Navab, Federico Tombari

Abstract

Measuring similarity between human motion sequences is a core challenge in computer vision. Traditional metrics like Dynamic Time Warping (DTW) often fail to capture semantic meaning and are computationally expensive. This paper introduces a deep metric learning framework that utilizes an attentive recurrent neural network and a novel distribution-based loss function, MMD-NCA. By mapping variable-length sequences to a fixed-size embedding space, the model effectively handles temporal variations and focuses on semantically relevant frames. Experimental results on CMU mocap and Human3.6M datasets demonstrate that this approach significantly outperforms existing methods in action recognition and person identification tasks.

Introduction

Measuring the similarity between two human motions is fundamental for tasks such as gait analysis, action retrieval, and character animation. While comparing static poses is relatively straightforward, comparing sequences of poses introduces complexities like varying execution speeds, different starting times, and the "semantic gap"—where local geometric matches do not align with the overall meaning of the action.

The Challenge of Motion Similarity

Traditional approaches like L2 distance or Dynamic Time Warping (DTW) have significant drawbacks. L2 distance is sensitive to temporal offsets, while DTW, despite handling alignment, has $O(n^2)$ complexity and can be misled by non-informative frames (e.g., standing still before a jump). Furthermore, standard deep learning triplet losses require "hard negative mining," which is computationally intensive for complex motion data.

Comparison of similarity measures on walking and standing sequences. Our method correctly identifies the semantic similarity between walking sequences despite temporal differences, whereas L2 and DTW are misled by the geometric similarity of standing still.

Proposed Methodology

The authors propose a framework consisting of a specialized architecture and a distribution-based loss function.

The proposed architecture (a) uses A-LSTM modules to process anchor, positive, and negative samples, optimized by the MMD-NCA loss. The A-LSTM (b) incorporates bidirectional LSTMs and self-attention.

Attentive Recurrent Architecture

The core of the model is the Attentive LSTM (A-LSTM). It employs a Bidirectional Layer Normalized LSTM (LNLSTM) to process temporal data. To handle variable-length sequences and focus on key movements, a self-attention mechanism assigns weights to each frame. This allows the model to prioritize semantically descriptive parts of a sequence—such as the peak of a jump—while ignoring noise or static periods.

MMD-NCA Loss Function

To avoid the pitfalls of triplet loss, the authors introduce MMD-NCA. This loss combines Maximum Mean Discrepancy (MMD) with Neighborhood Component Analysis (NCA). Instead of comparing individual samples, MMD measures the distance between the distributions of different action categories in the embedding space. This approach eliminates the need for hard negative mining and results in a more robust embedding space where similar actions are clustered together.

Experimental Evaluation

The model was evaluated on the CMU Graphics Lab Motion Capture and Human3.6M datasets. These benchmarks include a wide variety of natural motions and high-fidelity 3D poses.

Key Results

The proposed method showed substantial improvements over traditional metrics:

  • Action Recognition: On the CMU mocap dataset, the model achieved a False Positive Rate (FPR-70) of 20.29%, compared to 37.62% for DTW.
  • Person Identification: The model effectively captured individual "motion signatures," outperforming standard triplet-based deep learning by approximately 2% and traditional metrics by over 20%.
  • Semantic Robustness: Qualitative analysis confirmed that the attention mechanism successfully filters out "dead air" in sequences, focusing on the actual mechanics of the motion.

Conclusion

By shifting from sample-based to distribution-based learning and incorporating self-attention, this framework provides a scalable and semantically aware solution for human motion analysis. Future work involves exploring specialized kernels for the MMD loss and extending the framework to other time-series domains like financial forecasting or speech processing.

Summary updated

BibTeX
@inproceedings{coskun2018human,
  author = {Huseyin Coskun and David Joseph Tan and Sailesh Conjeti and Nassir Navab and Federico Tombari},
  title = {{Human Motion Analysis with Deep Metric Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01264-9\_41},
}
Figure