🦾

RehabCoach AI

AI-assisted rehabilitation exercise coach Β· on-device Β· private

STANDBY
β€”reps
target ROM β€”
β€”

πŸ“š Exercise Library

Standard home-rehab movements, each with AI form-checks for its classic compensations. Click an exercise for step-by-step instructions.

πŸ“ˆ Progress & Adherence

Range-of-motion and form-quality trends β€” the numbers your physiotherapist asks about, captured automatically.

0sessions
0total reps
β€”avg form (last 5)
0day streak πŸ”₯

Range of motion trend

Form quality trend

No sessions yet β€” run one in the Coach tab (Demo mode works without a camera!).

πŸ’¬ Coach Chat

Ask about technique, your scores, or your condition. Runs fully offline β€” it even reads your own session history to explain your results.

βš•οΈ Educational support only β€” not medical advice, and never a replacement for your physiotherapist.

ℹ️ About RehabCoach AI

🧠 How the AI works

Pose engineViTPose bridge (Lab 1A model) or MediaPipe β€” 17 COCO keypoints per frame, normalised so the pipeline is engine-agnostic
β†’
Joint-angle featuresshoulder elevation (trunk-relative), elbow extension, trunk lean, knee flexion, neck-gap shrug ratio…
β†’
Rep segmentationhysteresis state machine counts reps & finds each peak β€” robust to tempo
β†’
Classificationweighted k-NN (k=3, Lab 1B method) vs correct-form & compensation prototypes + explainable clinical rules
β†’
Coachingreal-time voice + visual cues, ROM tracking, therapist-ready reports

🎯 Why it's different

  • Personalised baseline calibration β€” a frozen-shoulder patient who reaches 90Β° is scored against their range, learned from 3 approved reps. Thresholds adapt (mean + 1.2Β·SD of the patient's own variability).
  • Explainable feedback β€” every verdict names the compensation ("bent elbow", "trunk lean"), not just a score.
  • ROM as a clinical outcome β€” best/avg joint angles per session, charted over weeks.
  • Adherence design β€” streaks, pain check-ins (0–10 RPE), encouraging voice coaching.

πŸ”’ Privacy by design

  • All inference runs on-device β€” the video stream never leaves the computer.
  • No account, no cloud, no third-party requests during coaching.
  • Only small numeric summaries are stored, in this browser's local storage.
  • One-click export (CSV / printable report) or wipe.

⚠️ Limitations (honest engineering)

  • Single 2D camera β†’ depth-limited; each exercise uses its optimal camera view (frontal / sagittal).
  • Pose estimation degrades with loose clothing, poor light, or occlusion.
  • Pain and tissue safety cannot be sensed by a camera β€” the RPE check-in and therapist remain essential.
  • Not a medical device. An adherence & feedback aid between clinic visits.

πŸ›  Tech stack (100% free)

  • Vanilla HTML/CSS/JS β€” zero build step, runs anywhere
  • MediaPipe PoseLandmarker (WebGL, on-device)
  • ViTPose via Python bridge (OpenCV + WebSocket) β€” same model family as Lab 1A
  • k-NN + rule engine hand-rolled (Lab 1B classification methods)
  • Web Speech API for voice coaching Β· SVG charts with no dependencies