Pre-Training for 3D Hand Pose Estimation with Contrastive Learning on Large-Scale Hand Images in the Wild

Nie Lin, Takehiko Ohkawa, Mingfang Zhang, Yifei Huang, Ryosuke Furuta, Yoichi SatoarXiv 2024 · DOI

Abstract

Accurate 3D hand pose estimation is a cornerstone for immersive technologies like AR/VR and robotics. However, the scarcity of large-scale labeled 3D datasets remains a significant bottleneck. This paper introduces HandCLR, a novel self-supervised pre-training framework that leverages 2 million "in-the-wild" hand images. Unlike traditional contrastive learning that relies on image augmentations, HandCLR mines pairs of similar hand poses across different videos. This approach forces the model to ignore distracting backgrounds and textures, focusing instead on the underlying pose geometry. Experimental results demonstrate a 15% performance improvement on standard benchmarks, with significant gains in low-data regimes.

Introduction

Predicting the 3D coordinates of finger joints from a single RGB image is a complex task due to the hand's high degrees of freedom, frequent self-occlusions, and diverse environmental conditions. While deep learning has advanced the field, these models are data-hungry. Collecting 3D labels typically requires specialized hardware like depth sensors or expensive manual annotation, which limits the scale and diversity of available training sets.

Self-Supervised Learning (SSL) offers a solution by pre-training models on unlabeled data. Standard SSL methods, such as SimCLR, create positive pairs by applying random augmentations (e.g., cropping, color jittering) to the same image. While effective for general image recognition, this "intra-sample" approach is sub-optimal for hand pose estimation. Because the hand and background remain largely the same in these pairs, the model often learns to recognize specific hand appearances or background features rather than the geometric structure of the pose itself.

HandCLR: Pose-Centric Contrastive Learning

HandCLR addresses these limitations by shifting the focus from self-similarity to pose-similarity. The core idea is to learn from "inter-sample" consistency—finding similar poses in entirely different contexts.

Comparison between standard self-supervised pre-training and the proposed HandCLR framework.

Massive In-the-Wild Data

The authors curated a massive dataset of 2.0 million hand images by combining two large-scale video sources:

  • Ego4D: Provides 1.0 million images from a first-person (egocentric) perspective, capturing hands in natural, everyday interactions.
  • 100DOH: Provides 1.0 million images from a third-person (exocentric) perspective, offering a wide variety of viewpoints and hand-object interactions. This combined dataset is approximately 100 times larger than previous specialized hand pre-training datasets.

Mining Similar Hands

To implement inter-sample contrastive learning, HandCLR requires a way to find "positive pairs" of similar poses across the 2 million images. The authors utilize an off-the-shelf 2D pose estimator to extract 2D joint locations. For every image, they search the entire dataset for a different image—ideally from a different video—that contains a hand in a nearly identical 2D pose. To manage the computational overhead of searching across 2 million images, the authors employed efficient indexing techniques using PCA and Euclidean distance.

Detailed view of HandCLR's pre-training strategy and the concept of mining similar hands across different images.

By matching a hand from a kitchen scene with a hand from a workshop scene, the model is presented with pairs that share the same pose but differ in:

  1. Hand-object interactions: One hand might be empty, the other holding a tool.
  2. Background: Different environments and lighting conditions.
  3. Appearance: Different skin tones, gloves, or hand sizes.

This forces the encoder to become invariant to these "nuisance" variables and focus strictly on the 3D geometry of the hand.

Experimental Results

After pre-training, the encoder is fine-tuned on labeled datasets to map the learned features to 3D coordinates. The authors evaluated HandCLR on three major benchmarks: FreiHand, DexYCB, and AssemblyHands.

Performance Gains

HandCLR consistently outperformed existing SSL baselines like SimCLR and PeCLR:

  • FreiHand: Achieved a 15.3% improvement in Mean Per Joint Position Error (MPJPE).
  • DexYCB: Showed a 10.53% improvement.
  • AssemblyHands: Recorded a 4.90% improvement.

Scaling and Low-Data Efficiency

A key finding was the "scaling law" of HandCLR: as the pre-training data increased from 50,000 to 1 million images, the error rates on downstream tasks consistently decreased. Furthermore, HandCLR proved exceptionally robust in low-data scenarios. When only 10% of the target dataset labels were available, HandCLR significantly outperformed models trained from scratch or with standard SSL, making it highly valuable for specialized domains where labeling is prohibitively expensive.

Conclusion

HandCLR demonstrates that for specialized tasks like 3D hand pose estimation, the type of contrastive learning matters as much as the scale of the data. By leveraging inter-sample pose consistency across millions of in-the-wild images, HandCLR learns a robust geometric representation of hands that generalizes across diverse environments and viewpoints. Future work may involve reducing the dependency on 2D detectors and exploring temporal consistency in video sequences to further refine the learned representations.

Summary updated

BibTeX
@misc{lin2024pre,
  author = {Nie Lin and Takehiko Ohkawa and Mingfang Zhang and Yifei Huang and Ryosuke Furuta and Yoichi Sato},
  title = {{Pre-Training for 3D Hand Pose Estimation with Contrastive Learning on Large-Scale Hand Images in the Wild}},
  year = {2024},
  eprint = {2409.09714},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.09714},
}
Figure