Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Multi-Task Tennis Stroke Biomechanics Analysis Using MediaPipe Pose

About

We built a multi-task pipeline for tennis stroke biomechanics from plain RGB video. On top of pose-based stroke recognition, it adds two new tasks, predicting shot direction and grading posture quality, plus a rule-based feedback layer that suggests coaching tips. Strokes are found automatically using a weighted joint velocity score, s(t) = 0.5 v_wrist + 0.3 m_elbow + 0.2 m_shoulder, removing the need for manual annotation. Pose comes from MediaPipe Pose Landmarker (33 landmarks, metric world coordinates), with each stroke turned into a 30-frame by 39-feature sequence for TennisTransformerGPU, a compact 564,103-parameter transformer (4 layers, 4 heads, d=128) with three parallel output heads. Trained on 1,281 labeled strokes from 7 pros and 1 amateur across 11 videos, it hits 83.7% stroke-type accuracy, 61.9% on direction, and 62.6% on posture under a random 80/20 split. The interesting test is cross-player: train on pros, evaluate on the amateur. Stroke type barely budges, 82.9%, a 0.8% drop. Direction prediction does not transfer; it just falls back to the majority class. An ablation shows why world coordinates matter so much here: switching to image-space landmarks tanks cross-player stroke-type accuracy from 83% to 47% and direction from 68% to 21%. Everything runs on Kaggle's free T4 GPU tier and is fully reproducible.

Jigyashman Hazarika• 2026

Related benchmarks

TaskDatasetResultRank
DirectionTennis Biomechanics (random 80/20 split)
Accuracy61.9
2
DirectionTennis Biomechanics (cross-player)
Accuracy68.3
2
PostureTennis Biomechanics (cross-player)
Accuracy63.4
2
Stroke TypeTennis Biomechanics (random 80/20 split)
Accuracy83.7
2
Stroke TypeTennis Biomechanics (cross-player)
Accuracy82.9
2
Stroke type classificationTennis Stroke Dataset 11 videos
Accuracy83.7
2
PostureTennis Biomechanics (random 80/20 split)
Accuracy62.6
2
Direction PredictionTennis Stroke Dataset 11 videos
Accuracy61.9
1
Posture Quality ClassificationTennis Stroke Dataset 11 videos
Accuracy62.6
1
Showing 9 of 9 rows

Other info

Follow for update