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.
Proposed Methodology
The authors propose a framework consisting of a specialized architecture and a distribution-based loss function.
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