A View Independent Classification Framework for Yoga Postures

Mustafa Chasmai, Nirjhar Das, Aman Bhardwaj, Rahul Garg

Yoga is more than just a workout; it’s a precise art where form is everything. While AI-powered "Yoga Trainers" have been a goal for computer vision researchers for years, the reality is that most models struggle when the camera moves from the studio to a messy living room. A new paper from researchers at IIT Delhi, titled "A View Independent Classification Framework for Yoga Postures," tackles this head-on by addressing the "cheating" models often do and proposing a more robust, view-independent architecture.

TL;DR

The researchers developed a two-stage framework that uses transfer learning from human pose estimation (AlphaPose) to classify yoga postures with high accuracy. Their core contribution is a rigorous three-step evaluation scheme that exposes "target leakage" in previous studies and demonstrates how to build a model that actually generalizes to new users and different camera angles.

What Problem Does This Paper Address?

Human Activity Recognition (HAR) is a staple of computer vision, but yoga presents unique challenges. Unlike walking or running, yoga involves complex, non-linear body configurations that often lead to self-occlusion (where one body part hides another).

The authors identify two major gaps in current research:

  1. Target Leakage: Many existing models report near-perfect accuracy because they split their training and testing data by frames rather than by videos or subjects. If the model sees frame 100 of a video during training, it’s trivial to predict frame 101 during testing. This isn't learning; it's memorization.
  2. View Dependency: Most models fail when the camera angle changes. A "Tree Pose" looks very different from the front than it does from a 45-degree side profile.

Methods

The authors propose a streamlined, two-stage pipeline:

  1. Feature Extraction (Pose Estimation): Instead of training a deep neural network on raw pixels (which is computationally expensive and prone to over-fitting on backgrounds), they use AlphaPose. This pre-trained model extracts 136 key-points across the face, hands, and body. To make the model size-invariant, they normalize these coordinates relative to a bounding box and reduce the feature set to the 35 most relevant body key-points.
  2. Classification: These normalized key-points are fed into a Random Forest classifier. While simpler than a deep neural network, the authors argue that with high-quality pose features, a simpler classifier is more efficient and less likely to over-fit.

To prove their model's worth, they introduced a three-stage evaluation strategy:

  • Unseen Frames: Testing on new frames from known videos (the "easy" mode).
  • Unseen Subjects: Testing on people the model has never seen before.
  • Unseen Angles: Testing on camera viewpoints not present in the training set.

Datasets

The study utilizes four primary datasets:

  • In-house Dataset (New): 51 subjects performing 20 asanas (plus a "still" pose) recorded from four different camera angles. This is one of the first datasets to explicitly focus on multi-view yoga poses.
  • Yoga-82: A large-scale public dataset with 82 categories.
  • Yadav et al. & Jain et al.: Two smaller public datasets used to benchmark against previous state-of-the-art methods.

Key Insights and Ideas

  • The "Leakage" Reality Check: The authors empirically show that frame-wise random splitting leads to inflated accuracies (often 99%+). By switching to subject-wise or camera-wise splits, they provide a much more honest assessment of how an AI trainer would perform in the real world.
  • Transfer Learning is Key: By using a pose estimator trained on massive general datasets (like COCO or Halpe), the model inherits a "knowledge" of human anatomy that it couldn't possibly learn from small, specialized yoga datasets alone.
  • The Viewpoint Penalty: The most significant finding is the performance drop when camera angles change. Accuracy fell from ~99% on seen angles to ~65% when the model was trained on only one camera angle and tested on others. This highlights that "view independence" is the true frontier for home-AI fitness.

Key Results

  • Subject-Wise Generalization: On their in-house dataset, the model achieved an F1 score of 97.99% for unseen subjects, proving it can handle different body types and heights.
  • Outperforming the State-of-the-Art: On the Jain et al. dataset, the authors' framework achieved 97.59% accuracy, significantly higher than the 91% reported by the original creators who used 3D CNNs.
  • Yoga-82 Benchmark: Even on the highly challenging Yoga-82 dataset (which contains "in-the-wild" internet images), their model achieved 80.14% accuracy at the most granular level, outperforming specialized architectures like MobileNet-V2 and DenseNet-201.

Limitations and Future Work

Despite the progress, two main hurdles remain:

  1. Occlusion and Inversion: 2D pose estimators still struggle when a subject is upside down (like a headstand) or when limbs overlap significantly.
  2. The Need for 3D: The authors suggest that moving toward 3D pose estimation or incorporating depth data (like from a Kinect) would be necessary to truly master complex occlusions.

By releasing their code and key-point dataset, the researchers have provided a much-needed "ground truth" for the community, moving the field away from inflated accuracy scores and toward practical, view-independent utility.

Summary updated

BibTeX
@article{chasmai2022view,
  author = {Mustafa Chasmai and Nirjhar Das and Aman Bhardwaj and Rahul Garg},
  title = {{A View Independent Classification Framework for Yoga Postures}},
  journal = {SN Comput. Sci.},
  year = {2022},
  doi = {10.1007/s42979-022-01376-7},
}

Loading related content...

Figure