Fast and Robust Video-Based Exercise Classification via Body Pose Tracking and Scalable Multivariate Time Series Classifiers

Ashish Singh, Antonio Bevilacqua, Thach Le Nguyen, Feiyan Hu, Kevin McGuinness, Martin OReilly, Darragh Whelan, Brian Caulfield, Georgiana IfrimarXiv 2022

TL;DR

The BodyMTS pipeline offers a fast, robust, and privacy-preserving way to classify exercise quality from smartphone video by converting body tracking data into multivariate time series. By using pose estimation as a "strong prior," it achieves 87% accuracy—outperforming both human experts and complex end-to-end deep learning models while requiring significantly less computational power.

What Problem Does This Paper Address?

In sports science and rehabilitation, accurately identifying whether an athlete is performing an exercise correctly is crucial for preventing injury and maximizing gains. Traditionally, this relies on either human experts (who often disagree, with inter-rater agreement as low as 60%) or wearable sensors. However, wearables are plagued by battery constraints, tedious calibration, and user discomfort.

Video-based analysis is a promising alternative, but it faces its own hurdles:

  1. Computational Cost: End-to-end deep learning models for video are resource-heavy and slow.
  2. Data Privacy: Storing raw video of patients or athletes raises significant security concerns.
  3. Robustness: Real-world footage is often noisy, low-resolution, or poorly lit.

The authors propose BodyMTS to bridge this gap, focusing specifically on the Military Press (MP) exercise.

Examples of induced Military Press deviations: Asymmetrical, Arch, and Reduced Range.

Methods

The BodyMTS approach moves away from "black box" video classification and instead treats exercise as a geometry problem over time. The pipeline consists of three main stages:

  1. Pose Estimation: The system uses OpenPose to identify and track 25 key body joints across video frames. This effectively strips away the "noise" of the background and focuses purely on movement.
  2. Multivariate Time Series (MTS) Extraction: The (X, Y) coordinates of these joints are converted into a multi-channel time series. The authors found that using domain knowledge to select specific joints (like elbows and wrists) was more effective than using the entire body.
  3. Scalable Classification: Instead of heavy 3D-CNNs, they employ ROCKET (RandOm Convolutional KErnel Transform). ROCKET uses a large number of random convolutional kernels to extract features from the time series, which are then fed into a simple linear classifier.
Overview of the BodyMTS pipeline, from raw video to cloud-based classification.

Datasets

The study utilized a custom Crossfit Workout Dataset featuring 53 healthy volunteers performing the Military Press.

  • Participants: 31 males, 22 females.
  • Data: Each participant performed 10 "Normal" repetitions and 10 repetitions with induced deviations (Asymmetrical, Reduced Range, or Arched back).
  • Scale: Approximately 2,053 individual repetitions were labeled by experts for training and evaluation.

Key Insights and Ideas

  • Pose as a Strong Prior: By converting video to joint coordinates, the model ignores irrelevant information like the gym background or the athlete's clothing. This makes the model much harder to "confuse" and easier to train on smaller datasets.
  • The Normalization Trap: In many time series tasks, normalizing data is standard. However, the authors discovered that for exercise, absolute magnitude matters. Normalizing the data actually dropped accuracy because it erased the signal for "Reduced Range" errors (where the bar isn't lowered enough).
  • Efficiency Wins: ROCKET proved to be the "sweet spot" for this application. It was faster than other time series classifiers like ResNet or FCN and significantly more efficient than video-based deep learning models like SlowFast.
  • Privacy by Design: Because the system only sends joint coordinates to the cloud for classification, the user's visual identity is naturally protected.

Key Results

  • Accuracy: BodyMTS achieved an average accuracy of 87%, notably higher than the 83% achieved by the state-of-the-art SlowFast video model and far exceeding human expert consistency (~60%).
  • Speed: BodyMTS is roughly 2.4x faster than SlowFast for prediction. A 10-repetition clip takes about 12 seconds to process on BodyMTS versus 29 seconds for SlowFast.
  • Robustness: The system is highly resilient to video compression. By increasing the Constant Rate Factor (CRF) to 28, the authors reduced video storage requirements by 70% while maintaining an accuracy above 80%.

Limitations and Future Work

While highly effective for the Military Press, the authors acknowledge several areas for growth:

  • Occlusion: Exercises where participants lie down (like push-ups) might hide body parts from a single camera, potentially breaking the pose tracking.
  • 2D vs. 3D: A single front-facing camera cannot perfectly capture depth. The authors suggest that 3D triangulation using multiple cameras could improve results for complex lateral movements.
  • Generalization: The current model is tuned for the Military Press. Future work will involve testing the pipeline on a wider variety of strength and conditioning exercises to ensure the "video-as-timeseries" approach holds up across different movement patterns.

Summary updated

BibTeX
@misc{singh2022fast,
  author = {Ashish Singh and Antonio Bevilacqua and Thach Le Nguyen and Feiyan Hu and Kevin McGuinness and Martin OReilly and Darragh Whelan and Brian Caulfield and Georgiana Ifrim},
  title = {{Fast and Robust Video-Based Exercise Classification via Body Pose Tracking and Scalable Multivariate Time Series Classifiers}},
  year = {2022},
  eprint = {2210.00507},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.00507},
}
Figure