Inspiration

A whopping 41% of gym users have been injured because of bad posture. In the context of the pandemic, working together with a gym trainer is not easy. This project is the first step towards helping people work out at home while maintaining good posture with the power of "pose estimation".

What it does

A.I. Gym Trainer informs you about your "dumbell curling" posture in real time, so that you can work out with good posture! I am keen on extending this project to more exercises, and this is a proof of concept for the same.

How I built it

Using vanilla java script, in addition to the p5js and ml5js libraries, I was able to cook up a script that helps you out when doing dumbbell curls, by informing you if your posture is good or bad in real time.

Challenges I ran into

The mathematics behind finding the angle formed by the elbows, irrespective of where the user did the exercise in the video frames was a bit of challenge. But a quick brush up of my trigonometry skills saved me in the end :)

Accomplishments that I'm proud of

Seeing real time feedback about my posture for the first time was really exhilarating personally. This result has given me motivation to extend this project to more exercises in the future!

What I learned

I have a better understanding of pose estimation, a recent advance in Artificial Intelligence to localize the main joints in an object of interest, used here for humans. I've also learned more about the really cool p5js library. And last but certainly not the least, I got to strengthen my practical JS skills too! :)

What's next for A.I. Gym Trainer

Adding more exercises, and possibly fleshing out a full fledged mobile app!

Built With

Share this project:

Updates