Fitting, Comparison, and Alignment of Trajectories on Positive Semi-Definite Matrices with Application to Action Recognition

Benjamin Szczapa, Mohamed Daoudi, Stefano Berretti, Alberto Del Bimbo, Pietro Pala, Estelle Massart

This paper presents a mathematically elegant approach to human action recognition by treating sequences of body poses as trajectories on a specific geometric space: the Riemannian manifold of positive semi-definite (PSD) matrices. By refining the metric and alignment techniques used in this space, the authors achieve performance competitive with deep learning models while maintaining a formal, interpretable framework.

TL;DR

The authors model skeleton-based action recognition as the comparison of trajectories on a Riemannian manifold of fixed-rank positive semi-definite matrices. By introducing a simplified metric, Bézier curve smoothing for denoising, and a Global Alignment Kernel for temporal matching, they achieve state-of-the-art results on standard benchmarks using only skeletal data.

What Problem Does This Paper Address?

Action recognition is a core challenge in computer vision, complicated by three main factors:

  1. Anthropometric variability: Different people have different body sizes and proportions.
  2. Execution variability: The same action can be performed at different speeds or with slight stylistic differences.
  3. Data Noise: Skeleton tracking (especially from 2D video) is often noisy or suffers from missing joints.

While deep learning models like LSTMs and Graph Convolutional Networks (GCNs) are currently dominant, they often act as "black boxes." This paper seeks a robust, mathematically grounded representation that is inherently invariant to undesirable transformations like translation, rotation, and scaling.

Methods

The proposed pipeline consists of four main steps, as illustrated in the overview below:

Overview of the proposed approach: from skeleton detection to manifold trajectory building, denoising, and classification.
  1. Shape Representation: Each video frame's skeleton is represented by a Gram matrix ($G = ZZ^T$), where $Z$ contains the joint coordinates. This representation is naturally invariant to rotation and translation.
  2. Manifold Geometry: These Gram matrices are points on the manifold of fixed-rank PSD matrices. The authors utilize a quotient manifold representation ($R^{n \times d}_* / O_d$). A key contribution is the use of a simpler, more computationally efficient Riemannian metric compared to prior work, which speeds up distance calculations by a factor of two.
  3. Trajectory Modeling & Denoising: To handle noise and missing data, the authors fit composite cubic blended Bézier curves to the sequence of matrices. This smooths the trajectory while balancing proximity to the original data points.
  4. Temporal Alignment & Classification: Because actions vary in speed, trajectories must be aligned. The authors replace the standard Dynamic Time Warping (DTW) with the Global Alignment Kernel (GAK). Unlike DTW, GAK produces a valid positive semi-definite kernel, allowing the use of standard Support Vector Machines (SVM) for final classification.

Datasets

The approach was evaluated on three diverse datasets:

  • UTKinect-Action3D: A 3D dataset captured with Kinect sensors, known for relatively clean skeleton data.
  • KTH-Action: A classic 2D video dataset. The authors used OpenPose to extract 18-joint skeletons in the COCO format.
  • UAV-Gesture: A recent dataset of 13 gestures for controlling Unmanned Aerial Vehicles, featuring outdoor scenarios and slight camera movements.
Figure 3. Skeleton with the COCO format.

Key Insights and Ideas

  • Metric Efficiency: The chosen quotient manifold metric is not only simpler to implement but also eliminates the need to tune extra hyperparameters for distance computation, which was a limitation in previous geometric methods.
  • GAK > DTW: The switch to the Global Alignment Kernel was a significant win. It consistently outperformed DTW across all datasets because it considers all possible alignment paths rather than just the single optimal one, and its mathematical properties play much better with standard SVM classifiers.
  • Selective Smoothing: The Bézier curve fitting provided a ~1% accuracy boost on noisy 2D datasets (KTH, UAV) but didn't help on the clean 3D data of UTKinect. This confirms that the technique is a powerful tool for denoising but should be applied judiciously to avoid losing information in high-quality data.

Key Results

The method achieved highly competitive results, often rivaling complex deep learning architectures:

  • UTKinect-Action3D: 97.99% accuracy, placing it alongside top-tier deep learning methods like GCA-LSTM (99%).
  • KTH-Action: 96.16% accuracy, outperforming many traditional RGB-based methods.
  • UAV-Gesture: 92.44% accuracy, notably outperforming the Pose-Based CNN (P-CNN) baseline of 91.9%.
  • Efficiency: Excluding pose extraction, the system can classify an action in roughly 0.5 to 0.6 seconds, suggesting potential for near-real-time applications.

Limitations and Future Work

The authors noted that the system still struggles with actions that are visually very similar in skeletal form. For example, in the UTKinect dataset, "Throw" is frequently confused with "Push" because the arm positions at the end of both actions are nearly identical.

Figure 2. Comparison of two sequences that are confused in UTKinect-Action3D dataset (top: Throw action, bottom: Push ac- tion)

Similarly, in the UAV-Gesture dataset, "All Clear" and "Not Clear" are confused because the primary difference—hand orientation—is not captured by the standard body skeleton model. Future work may involve integrating hand or finger skeletons to resolve these fine-grained ambiguities.

Summary updated

Abstract

In this paper, we tackle the problem of action recognition using body skeletons extracted from video sequences. Our approach lies in the continuity of recent works representing video frames by Gramian matrices that describe a trajectory on the Riemannian manifold of positive-semidefinite matrices of fixed rank. In comparison with previous works, the manifold of fixed-rank positive-semidefinite matrices is here endowed with a different metric, and we resort to different algorithms for the curve fitting and temporal alignment steps. We evaluated our approach on three publicly available datasets (UTKinect-Action3D, KTH-Action and UAV-Gesture). The results of the proposed approach are competitive with respect to state-of-the-art methods, while only involving body skeletons.
BibTeX
@inproceedings{szczapa2019fitting,
  author = {Benjamin Szczapa and Mohamed Daoudi and Stefano Berretti and Alberto Del Bimbo and Pietro Pala and Estelle Massart},
  title = {{Fitting, Comparison, and Alignment of Trajectories on Positive Semi-Definite Matrices with Application to Action Recognition}},
  booktitle = {Workshops @ ICCV},
  year = {2019},
  doi = {10.1109/iccvw.2019.00157},
}
Figure