Video-based Exercise Classification and Activated Muscle Group Prediction with Hybrid X3D-SlowFast Network

Manvik Pasula, Pramit Saha · OpenReview

Abstract

This paper presents a robust video-based deep learning framework designed to address two critical tasks in digital fitness: exercise classification and Muscle Group Activation Prediction (MGAP). Traditional methods for monitoring physical activity often rely on wearable sensors or restricted exercise sets, which limit their utility for everyday users, particularly novices and individuals with disabilities. By leveraging a hybrid ensemble of X3D and SlowFast architectures, our approach eliminates the need for specialized hardware. Evaluated on the "Workout/Exercises Video" dataset, our model achieves state-of-the-art performance, demonstrating that a weighted ensemble of spatiotemporal networks can effectively map complex human movements to specific anatomical muscle engagements.

Introduction

Maintaining proper form during strength training is essential for maximizing physiological benefits and preventing injury. However, professional coaching is often inaccessible, and existing technological solutions—such as Electromyography (EMG) or Inertial Measurement Units (IMUs)—are cumbersome for routine gym environments. While computer vision offers a non-intrusive alternative, previous research has largely focused on simple action recognition rather than the nuanced mechanics of muscle activation.

This research bridges the gap by introducing a system capable of identifying 16 distinct exercise classes and predicting the activation of 11 different muscle groups from standard video input. This capability is particularly vital for the disabled community and fitness beginners, for whom understanding muscle engagement is a prerequisite for safe and effective training.

Methodology

Hybrid Architecture

The core of our framework is a Hybrid X3D-SlowFast Network. We combine two distinct yet complementary architectures to capture the multi-faceted nature of exercise videos:

  1. X3D (Expanded 3D CNN): This model employs a progressive expansion strategy, starting from a 2D base and expanding across spatial, temporal, and network depth dimensions. It provides a highly efficient balance between computational cost and classification accuracy.
  2. SlowFast: This architecture utilizes a dual-pathway approach. The Slow pathway captures spatial semantics at a low frame rate, while the Fast pathway captures fine-grained motion at a high frame rate with reduced channel capacity.

Our experiments indicated that a weighted-average ensemble yielded the highest performance. Specifically, a 25/75 split (favoring the SlowFast model) proved optimal, suggesting that the dual-pathway temporal resolution of SlowFast is particularly critical for identifying the subtle cues of muscle tension.

Dataset and MGAP Mapping

We utilized the "Workout/Exercises Video" dataset, refining it into 16 exercise categories across 2,113 clips. To facilitate MGAP, we performed a multi-label mapping using MuscleWiki as a ground-truth reference. For instance, a compound movement like the deadlift was mapped to multiple labels, including the glutes, lower back, and hamstrings. This transformed the task from simple classification into a complex multi-label prediction problem.

Key Insights and Discussion

The Role of Transfer Learning

One of the most significant findings was the impact of pretraining. Models initialized with weights from the Kinetics-400 dataset showed an accuracy improvement of 40-60% compared to those trained from scratch. This confirms that general motion features learned from broad action datasets are highly transferable to the specialized domain of strength training.

Model Specialization

While X3D performed competitively in identifying the general exercise type, the SlowFast model was superior in predicting muscle activation. The Fast pathway's ability to monitor rapid changes in motion appears to be the key to distinguishing which muscles are driving a movement. Furthermore, our ablation studies on the SlowFast model identified that a channel reduction value (inverse beta) of approximately 10 provides the best balance for temporal feature extraction in exercise contexts.

Results

The hybrid ensemble established new benchmarks for video-based fitness analysis:

  • Exercise Classification: Achieved 99.15% Top-1 Accuracy and a 99.94% AUC, significantly outperforming standard baselines like I3D.
  • MGAP: Reached an Accuracy of 97.43% and an F1-score of 65.28%.

The system demonstrated remarkable robustness in multi-joint movements, accurately identifying simultaneous activation across disparate muscle groups in complex lifts.

Conclusion and Future Work

This research demonstrates that a video-only approach can provide high-fidelity insights into exercise mechanics without the need for wearable sensors. While the current model sets a high bar for accuracy, future work will focus on scaling the dataset to include more diverse environments and lighting conditions. Additionally, we aim to transition from classification to real-time biomechanical feedback, integrating pose estimation to provide users with granular data on the quality and intensity of their muscle engagement.

Summary updated

BibTeX
@misc{pasula2024video,
  author = {Manvik Pasula and Pramit Saha},
  title = {{Video-based Exercise Classification and Activated Muscle Group Prediction with Hybrid X3D-SlowFast Network}},
  year = {2024},
  eprint = {2406.06703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.06703},
}
Figure