Focalized contrastive view-invariant learning for self-supervised skeleton-based action recognition

Qianhui Men, Edmond S. L. Ho, Hubert P. H. Shum, Howard Leung · DOI

Action recognition is a cornerstone of modern AI, powering everything from smart home assistants to automated sports coaching. But there’s a persistent hurdle: view-dependency. If you record someone "carrying a box" from the front, the skeleton data looks vastly different than if you record them from the side. To a computer, these often look like two completely different actions.

In their paper, "Focalized Contrastive View-invariant Learning for Self-supervised Skeleton-based Action Recognition," Qianhui Men and her team introduce FoCoViL, a framework designed to help AI learn "view-invariant" representations—meaning the machine learns to recognize the action regardless of where the camera is placed.

TL;DR

FoCoViL is a self-supervised framework that learns to recognize human actions from skeleton data without needing manual labels. By using a novel "focalized" contrastive loss, it forces the model to ignore camera angles and focus on the core mechanics of an action, achieving state-of-the-art results on major benchmarks.

What Problem Does This Paper Address?

Most action recognition models are "view-dependent." They struggle when an action is performed at an angle they haven't seen before. While we can use math to rotate skeletons to a "front-facing" view (view alignment), this is often messy due to self-occlusion (e.g., an arm hiding behind a torso).

Furthermore, training these models usually requires massive amounts of labeled data, which is expensive and slow to produce. Self-supervised learning (SSL) is the alternative, where the model learns by finding patterns in the data itself. However, existing SSL methods often fail to fully strip away the "noise" of the camera viewpoint, leading to blurry boundaries between different action categories in the model's "brain" (the latent space).

Methods

The authors propose a two-stage refinement process called FoCoViL (Focalized Contrastive View-invariant Learning):

  1. Coarse View Alignment: First, they use a standard geometric transformation to align all skeletons to a local coordinate system based on the person's spine and hips. This gets the "facing direction" roughly the same.
  2. Contrastive View-invariant Learning (CoViL): This is where the magic happens. The model is shown pairs of the same action from different viewpoints (positive pairs) and pairs of different actions (negative pairs). It uses a contrastive loss to pull the same actions together and push different ones apart.
  3. The "Focalization" Secret Sauce: Standard contrastive learning treats all samples equally. FoCoViL introduces focalization, inspired by Focal Loss in object detection. It adaptively weights the training:
  4. Hard Positives: If the model thinks two versions of the same action are very different, the loss increases to force them together.
  5. Hard Negatives: If the model thinks two different actions are similar, the loss increases to push them apart.
  6. Easy Samples: If the model already "gets it," the weight is reduced so the model doesn't waste time on them.

The backbone of the system is a GRU-based auto-encoder, which processes the temporal sequence of the skeleton's movement.

Datasets

The researchers evaluated FoCoViL on five diverse 3D action benchmarks:

  • N-UCLA: 10 daily activities from three viewpoints.
  • NTU RGB+D 60 & 120: Massive datasets with up to 120 action classes and over 114,000 clips.
  • PKU-MMD: A large-scale dataset for continuous action detection.
  • UWA3D Multiview Activity II: A particularly challenging set with noisy skeletons and four distinct camera angles (including a top-down view).

Key Insights and Ideas

  • Alignment isn't enough: The paper proves that simple geometric alignment leaves behind "view-specific" artifacts. You need high-level feature refinement (like CoViL) to truly achieve view-invariance.
  • Focus on the "Hard" stuff: The most significant "aha moment" is the application of focalization to contrastive learning. By prioritizing samples near the "cluster boundaries," the model creates much cleaner, more distinct categories in its latent space.
  • Labels aren't mandatory: FoCoViL performs exceptionally well even with unsupervised classifiers (like 1-Nearest Neighbor), suggesting that the learned features are inherently robust and don't just rely on a supervised "crutch" to work.

Key Results

FoCoViL consistently outperformed state-of-the-art (SOTA) self-supervised models:

  • Accuracy: On the N-UCLA dataset, it achieved 88.3% accuracy using an unsupervised classifier, a significant jump over previous methods like P&C (84.9%).
  • Clustering Quality: Using metrics like Purity and Adjusted Rand Index (ARI), FoCoViL showed much higher scores than competitors, indicating its "latent space" is much better organized.
  • Efficiency: Despite its performance, FoCoViL is relatively lean, using only 1.62M parameters compared to some SOTA models that use over 7M.
  • Visual Proof: t-SNE visualizations (plots of the model's internal representations) show that FoCoViL creates tight, isolated clusters for actions, whereas other models show significant overlapping.

Limitations and Future Work

  • Inference Speed: Because the model uses a Recurrent Neural Network (GRU), it processes frames sequentially. While accurate, this is slightly slower than some purely convolutional approaches.
  • Modality Expansion: The current work focuses strictly on skeletons. The authors suggest that focalized contrastive learning could be extended to RGB video, depth maps, or even text-based action descriptions.
  • Negative Pair Imbalance: The authors noted that exploring the imbalanced similarity specifically within negative pairs (different actions that look similar) is a promising avenue for even higher precision.

Summary updated

BibTeX
@article{men2023focalized,
  author = {Qianhui Men and Edmond S. L. Ho and Hubert P. H. Shum and Howard Leung},
  title = {{Focalized contrastive view-invariant learning for self-supervised skeleton-based action recognition}},
  journal = {Neurocomputing},
  year = {2023},
  doi = {10.1016/j.neucom.2023.03.070},
}
Figure