r/computervision • • Sep 10 '26

Showcase I made a computer vision tool for running analysis!

As someone who has also been working on their own Apple Watch app for fitness, I’ve been curious about what computer vision might offer that wearables / IMUs might not. It’s been interesting to see the knee shape and ankle path visualizations as unique examples of what computer vision could offer.

Maybe you realize you are stepping too far ahead by seeing the knee visualization, and you adjust your stride length accordingly. The ankle visualization can be used to measure variance and highlight moments of fatigue or technique breakdown. A quantitative tool like this could provide unique insights to help improve your running.

I used ViTPose+ Large through the VLM Run Gateway for pose estimation, and used this to derive the running metrics.

This demo is a first attempt at running analysis. Runners, I would love to hear your feedback for what types of visualizations you’d like to see next!

The code is open-source on GitHub! Link in the comments.

768 Upvotes

35 comments sorted by

29

u/dwoj206 Sep 10 '26

Really really cool. Is there a way to track your form vs. professional marathoners (via footage) or other peers (down the road, no pun intended) for what is most efficient run form? Styles that result in higher propensity for knee related injuries or forms that put you at higher risk of injury long term etc? This would be a cool feature. Could be more of a data mining thing though with voluntary reporting if you do roll it out as an app and get users. Either way awesome project.

9

u/fuzzysingularity Sep 11 '26

Not sure if there’s a dataset of professional running. That’d be a goldmine to measure against.

1

u/msheikh921 Sep 12 '26

but won't that be a medical issue rather than a computer vision one?

4

u/msheikh921 Sep 12 '26

so if I understood you correctly, you would like some tool to analyze your running pose when you are running in a marathon, to compare to your form to pro runners so it would recommend changes to your technique? also forms that are less prone to knee damage?

3

u/dwoj206 Sep 12 '26

Correct ya. That’d be the goal. Understanding of course that genetics, build, leg length are all different. But is there an optimal stride length, style that scales to anyone and that optimizes energy spent and reduces risk of injury to knees, hips etc over time. I know there’s footage online of for example pro marathon and Olympic runners on treadmill from side angle. That could be really helpful to OP if trained on and then variance analysis of self vs them with overlay. Kinda glossing over it, but I’d assume you could do a lot with that if you could bring that and stats in from Strava, Apple Health, garmin or other connected device APIs and add an LLM for evaluation and recommendations.

3

u/fuzzysingularity Sep 12 '26

I've also seen this kind of tracking in professional running shops, where you put on a shoe and hop on a treadmill, and they look at your gait to understand how well the shoe helps you run. Ofcourse, everyone's mechanics are different, but it does make you think that there is room for optimization just by looking at a few videos and trying to make suggestions like: lean your hips forward, pick up your knees higher, etc.

4

u/f_mg26 Sep 10 '26

Very cool! I am wondering how this would work if the camera was facing the runner head on?

1

u/fuzzysingularity Sep 10 '26

seems like it'd be much harder for front-facing, especially that "ankle path visualization" part.

1

u/StartingLifeFromZero Sep 10 '26

Nah, some maths to calculate roughly how long the feet are off the ground can give a rough projection.

1

u/No-Video9633 24d ago

there are also depth estimation models but you would be doing a whole lot of extra work just do it from the side

15

u/AccomplishedCase6862 Sep 10 '26

damn, we now record video, give claude prompt and we post it as an 'i made a computer vision tool for running analysis' ?

2

u/rather_pass_by Sep 11 '26

Had to scroll all the way down to find only one comment worth an upvote.

The problem with subreddits is the anonymity of the user base don't tell us how many are real intellectuals.. I believe this sub in particular is mostly people trying to learn computer vision and never really tried it before..

1

u/Jeepguy675 Sep 16 '26

Very disheartening to read this. I know the OP, he’s not just trying to learn CV. He has a PhD in computer science specifically for CV. He did not vibe code this.

1

u/rather_pass_by Sep 16 '26

Very disheartening to know that he's doing this as his full time job and not for fun or hobby ... Not because need he's into running climbing or any form of sports but for getting his employer revenues..

I mean every one needs a job but when you don't say that clearly in the post, that's another thing

2

u/_ransom_ Sep 11 '26

awesome! i made something similar a few years ago and recently uplifted it with agents.

1

u/zarrathustraa Sep 11 '26

Aint nobody gonna pay for something they can vibe code in 30 minutes

1

u/_ransom_ Sep 11 '26

100%. but if im spending my time making something cool that could be useful for others, might as well try! :D

2

u/Nmzar_V Sep 13 '26

Wow! Soo cool!

1

u/Icarus_Wax Oct 26 '26

TRC North Raleigh, that's crazy lol!

1

u/Specialist-Wolf5469 Sep 11 '26

Quiero hacer algo así para ciclismo

1

u/Key-Introduction-126 Sep 11 '26

Nice! There’s an app that offers pretty in depth analysis that does something similar call Ochy. You take video from front and back and offers similar visualizations and suggestions on how to improve form. I like it since it gives a snapshot and form breakdown when you’re fresh, tired, on treadmill or outside. It’s how I know I tend to override just a bit and I drop my right hip when I’m tired. Fixing it is a whole different story.

1

u/blobules Sep 11 '26

How accurate is it?

1

u/netelibata Sep 11 '26

Absolutely excellent

1

u/Particular_Age4420 Sep 11 '26

Insping and cool

1

u/Tylerich Sep 13 '26

Cool! Did you use any vibe coding for this?

1

u/unfunnyjobless Sep 13 '26

I remember something like this on Dragons Den, does this have any relation?

1

u/aidenclarke_12 Sep 14 '26

Impressive man, really cool work

1

u/zarrathustraa Sep 10 '26

Cool, but you may want to also thank your partner claude.

1

u/rather_pass_by Sep 11 '26

So after dance, now running, what's next? I wish people could learn hard stuffs instead of vibe coding

1

u/Ok-Ebb-2434 Sep 10 '26

What’s the use case tho n what parameters make a good form? can it alert you mid run if ur form is detrimental?

1

u/leshuis Sep 11 '26

More fitness recording.... Bleeh

0

u/Puzzleheaded_Smoke77 Sep 11 '26

Awesome work you have it track your spine