Inspiration

Stroke and fracture patients often require daily physiotherapy at home after being discharged. However, hiring a private physiotherapist is extremely expensive, and without professional supervision, elderly patients frequently perform exercises incorrectly, risking secondary injuries. I wanted to build a zero-friction solution—no complex app downloads or VR headsets required—that gamifies and corrects their posture using just a standard web browser.

What it does

Zero-Setup AI Physio-Mirror is a purely web-based computer vision application designed for elderly rehab.

  • Zero Installation: Patients simply open a web link, and the browser accesses their webcam.
  • Real-time Tracking: The system draws dynamic green skeletal lines over the user's body on the screen.
  • Gamified Feedback: When a patient successfully performs a prescribed movement (e.g., raising an arm to a 90-degree angle), the AI detects the joint angle, triggers a satisfying "ding" sound, and sets off a firework animation on the screen, automatically logging one successful rep.

How I built it

I built this entirely in the frontend using HTML, CSS, and vanilla JavaScript. The core computer vision engine is powered by Google's MediaPipe, a powerful open-source machine learning library. By integrating MediaPipe's Pose Landmarker directly into the browser, the app can perform highly accurate, zero-latency skeletal mapping entirely on the client-side, ensuring user privacy since no video data is sent to a server. I hosted the project on Vercel for instant deployment.

Challenges I ran into

The biggest challenge was moving away from traditional web forms (CRUD) into browser-based machine learning. Integrating MediaPipe required learning how to parse complex 3D coordinate arrays (X, Y, Z coordinates of 33 body landmarks). Additionally, calculating the exact joint angle (e.g., the angle between the shoulder, elbow, and wrist) required implementing trigonometric math logic in JavaScript and rendering the skeletal lines dynamically onto an HTML <canvas> element over the video feed.

Accomplishments that I'm proud of

I am extremely proud to have delivered a fully functional Computer Vision (CV) product in a solo sprint. Bypassing heavy backend processing to achieve real-time, privacy-first AI pose detection directly in the browser proves that high-end healthcare tech can be highly accessible to the elderly.

What I learned

This project fundamentally expanded my tech stack. I learned how to process webcam data streams in real-time, draw graphics on the HTML Canvas, and apply JavaScript math functions to calculate geometric angles based on AI-generated data points.

What's next for Zero-Setup AI Physio-Mirror

I plan to expand the system's exercise library to include lower-body rehabilitation (like squats). I also aim to build a backend dashboard where doctors can log in to view their patients' daily completion rates and accuracy scores remotely.

Built With

Share this project:

Updates

Submission history