Bike Fits: How It Works, FAQ & Guide

University Bike Fits is our own video fit-analysis software. You pedal your bike on a Wahoo Rollr while we film two one-minute passes, one from the side and one from the front. The software tracks your joints through every pedal stroke, measures 12 angles and distances, compares them with target ranges, and writes a report with plain-language next steps. It supports the fitter's judgment; it does not replace it.

Your fit, step by step

  1. Measure. We take body measurements and check your flexibility.
  2. Set up. Your bike goes on the Rollr. We may add small neon-green stickers at your hip, knee, ankle, shoe, shoulder, elbow and wrist.
  3. Warm up. 5 minutes at an easy effort.
  4. Side pass. 60 seconds at a steady endurance effort, 85–95 rpm, hands on the hoods (plus an optional 30 seconds in the drops).
  5. Front pass. We move the camera in front of you and record 60 more seconds at the same effort.
  6. Report. The software analyzes both clips (on our laptop, roughly 10 minutes for the pair), then the fitter goes through the results with you.
  7. Adjust and re-test. We change one thing (saddle height, saddle position, bars or cleats), record again, and compare every angle before and after.
  8. Take it home. You get a PDF of your report.

How the software works

A web app on the shop laptop records or uploads the video and shows the results. The analysis runs in a Python worker as six steps:

  1. Check and correct the video. The software reads each clip's frame rate, resolution and brightness and refuses anything under 60 fps, under 1080p, or too dark, saying exactly why. It then removes lens distortion using a saved camera profile and rotates every frame so the level line the fitter clicked is truly horizontal.
  2. Find the joints. An open-source pose model (RTMPose, with MediaPipe as a fallback) marks 26 body points in every frame, including the heel and toes. On the side pass only the near (drive-side) leg is trusted.
  3. Sharpen with stickers and clean up. If the rider wears small neon-green stickers on their joints, the software finds them by color and snaps each body point to its sticker. Low-confidence points are dropped, short gaps are filled, and the tracks are smoothed.
  4. Split the ride into pedal strokes. The path of the foot traces a circle around the bottom bracket. The software fits that circle, works out the crank position in every frame, finds the top and bottom of each stroke, and measures cadence. Odd strokes are thrown out; at least 15 clean strokes are needed.
  5. Measure the angles. Each measurement is taken on every clean stroke, then averaged, with the spread (SD, min, max) and a confidence score that reflects how many strokes had sticker-confirmed points.
  6. Compare with targets and write the report. Every measurement is checked against its target range for the rider's riding style. Out-of-range results get a plain-language suggestion, such as “Raise the saddle 3 mm and re-test.” The report comes with an overlay video (skeleton and live angles, with freeze frames at the top and bottom of the stroke) and a PDF.

Every angle is the angle at the middle joint of three body points (for example hip–knee–ankle for the knee), measured per stroke on the corrected, leveled video. Every target range, suggestion and model choice lives in one settings file, so the fit protocol can be tuned without changing code.

What we measure

MeasurementViewHow it's takenStarting target
Knee extensionSideHip–knee–ankle angle, largest, near the bottom of the stroke140–150°
Knee flexionSideHip–knee–ankle angle, smallest, near the top of the stroke68–75°*
Hip angle (closed)SideShoulder–hip–knee angle, smallest, near the top45–55°*
Torso angleSideHip-to-shoulder line vs. horizontal, averageBy riding style
Shoulder angleSideHip–shoulder–elbow angle, averageBy riding style
Elbow angleSideShoulder–elbow–wrist angle, average150–165°*
Ankle rangeSideKnee–ankle–toe angle, max minus min20–30°*
Knee over pedalSideKnee ahead of or behind the foot at 3 o'clock, mmShown only
CadenceSidePedal strokes per minuteShown only
Knee side-to-side travelFrontEach kneecap's sideways movement, mm, per leg0–20 mm*
Knee travel differenceFrontLeft travel minus right travel, mmShown only
Pelvic rockFrontHip line tilt vs. horizontal, max minus min0–5°*

* Starting values that an experienced fitter is still reviewing. Knee extension of 140–150° is the same as 30–40° of knee bend at the bottom of the stroke.

Torso and shoulder targets depend on riding style:

Riding styleTorso angleShoulder angle
Road, endurance40–50°80–90°
Road, performance30–40°85–95°
Gravel40–55°80–90°
Mountain45–60°70–85°

In pictures

Your fit, measured: video bike fits in Palo AltoHow it works: warm up, side pass, front pass, joints tracked on every strokeWhat we measure: 12 measurements from the side and front viewsWhy it matters: knee pain is common and small saddle changes move the knee a lot (Bini et al., 2011)The number we aim for: 30–40 degrees of knee bend at the bottom, measured while pedaling (Ferrer-Roca et al., 2012)Before and after: change one thing, re-record, compare every angle (Priego Quesada et al., 2017)Book a video fit: side and front video, angles vs. targets, next steps and a PDF

FAQ

How much does a fit cost, and how long does it take?

Fits are free while we test V3, then $99. Plan on about 1.5 hours: measurements and a flexibility check, a warm-up, two filmed passes, then adjustments and a re-test.

What should I bring and wear?

Your bike, your cycling shoes and pedals, and fitted clothing that contrasts with a plain background. Shorts are best so we can see your knees. We may put a few small neon-green stickers on your joints; they peel off.

Does the computer decide my fit?

No. The software measures; the fitter decides. It gives the fitter joint angles averaged over many pedal strokes, which are hard to judge by eye, and the fitter combines them with your measurements, flexibility, comfort and goals.

Will it tell me exactly what stem or crank to buy?

Not yet. It gives a direction and a step size (for example, raise the saddle 3 mm), then we re-test and compare. Millimeter-exact part recommendations are planned for a later version.

Can it diagnose pain or an injury?

No. A fit can make riding more comfortable, but it is not medical advice. If something hurts, see a doctor or physical therapist.

How accurate is it?

The math is checked on computer-generated riders with known angles, where it recovers every angle to within half a degree. Its readings on real riders are still being checked against careful hand measurements (the goal is within 3° of a manual knee-angle measurement, and within 2° between repeat recordings). That testing is why fits are free right now. Video angles are taken while you pedal, so they sit a few degrees off a static measurement taken standing still; we never mix the two.

Why do some measurements say “low confidence”?

When the software can't see a joint clearly enough, it says so instead of guessing. Common causes are fewer than 15 clean strokes, dim light, loose clothing, or no stickers. Pelvic rock in particular needs stickers on the front of both hip bones.

What happens to my video?

Everything runs on one laptop in the shop. Your videos and report are not sent to a cloud service, and you take home the PDF.

Which bikes and riding styles work?

Road (endurance or performance), gravel and mountain bikes, on our Wahoo Rollr. The riding style only changes the torso and shoulder targets.

Can I download the software?

The code is private for now. You can read the full design, including every measurement and target, in the build plan (PDF).

Guide: running a fit

For University Bikes staff. The software is in a private repository; ask Paul for access.

1. Install and start it (once per laptop)

  1. Install Docker Desktop and git, and get access to the private university-bike-fits repository.
  2. Clone it, then copy .env.example to .env and set AUTH_SECRET (run openssl rand -base64 32), SHOP_USERNAME and SHOP_PASSWORD. Do not run it with the defaults.
  3. From the repo folder run make up (the same as docker compose up --build -d). The first build downloads the pose model and takes a while.
  4. Open http://localhost:3000 and log in. The home page shows whether the analyzer is running.
  5. To stop it: make down. To watch logs: make logs.

2. Calibrate the camera (once per camera and lens)

  1. Print a checkerboard with 9 × 6 inner corners and 25 mm squares, on stiff, flat backing.
  2. Film it from 15–20 different angles with the exact camera and lens you will fit with.
  3. In the app, go to Camera profiles, upload the clip and name the profile. A good profile has a reprojection error under 0.5 px; if not, re-film with sharper, steadier views.

3. Set up the room

Side passFront pass
Camera positionSquare to the bike, facing the drive (right) sideOn the bike's centerline, in front of the Rollr
Distance3–4 m from the bike2.5–3 m from the bars
Lens heightRider's hip heightKnee height with the cranks level
FramingWhole bike and rider, about 10% margin on every edgeBoth knees and feet fully in frame
LensMain 1x lens, never ultra-wideSame
Video1080p or higher, 60 fps minimum (120 preferred)Same
ExposureFocus and exposure locked; shutter 1/500 s or fasterSame

Optional stickers: 2 cm matte, round, neon green. Side: hip (greater trochanter), outer knee, outer ankle bone, outside of the shoe at the little toe, shoulder, elbow, wrist. Front: center of each kneecap and the front of each ankle (and the front of both hip bones if you want a reliable pelvic rock reading).

4. Run a session

  1. Riders → Add rider. Or open an existing rider to see their session history.
  2. New session. Work through the setup checklist, then choose the riding style, crank length and camera profile.
  3. Side clip. Record in the browser or upload an MP4/MOV from the camera. The app checks frame rate and resolution right away; most laptop webcams are only 30 fps and will be refused, so use a phone or camera that shoots 60 fps or more.
  4. Mark the setup frame. Click two points on a level reference (the top edge of the Rollr frame) so the video can be leveled.
  5. Front clip. Move the camera, record or upload the front pass, and click the handlebar width (or shoulder width) on the setup frame so distances can be shown in millimeters.
  6. Wait for the analysis. The status page shows each step. On an Apple M2 laptop without a GPU, one 60-second pass took about 4.5 minutes.
  7. Read the report. Each card shows the value, the target band, the status (in range, low, high or low confidence), a suggestion and a confidence score, next to the overlay video. Export the PDF for the rider.
  8. Adjust, re-record, compare. Make one change, run a new session for the same rider, then use Compare to see before, after and the change for every measurement.

5. When a clip is rejected

6. Changing targets and suggestions

Target ranges, riding-style profiles, suggestion wording and the pose model are all in config/fit.yaml. Edit it, then run make check-config to validate it and make upto restart. A bad value stops the analyzer at startup with a message naming the key, so a typo can't silently change a fit.

Downloads

Ready to book? Text (650) 656-6807. Bike fits are Saturdays and Sundays, 10–3.