Inspiration
Yoga has been practiced for thousands of years, but many beginners struggle with learning Surya Namaskar correctly. Posture alignment, breathing rhythm, and flow often get compromised without a teacher. Inspired by the wisdom of the itihasas and the discipline of ancient yogis, we set out to build a modern AI-powered yoga teacher that makes Surya Namaskar accessible, accurate, and motivating for everyone.
What it does
Asana AI Trainer uses your webcam to:
- Detect your yoga poses in real time using MediaPipe Pose.
- Compare your body alignment with reference Surya Namaskar postures.
- Provide accuracy feedback with progress bars and scores.
- Track your sessions, best accuracy, and current streaks.
- Award motivational badges (e.g., Arjuna for streaks, Surya for endurance).
How we built it
- Frontend: HTML, CSS, and JavaScript with a modern, calming UI.
- Pose Detection:MediaPipe Pose landmarks and joint-angle analysis.
- Accuracy Formula:
[ \text{Accuracy} = 100 - \frac{|\theta_{\text{user}} - \theta_{\text{ideal}}|}{\theta_{\text{ideal}}} \times 100 ]
- Storage: User progress (sessions, streaks, accuracy) saved in
localStorage. - Gamification: Badges and progress tracking integrated into the home dashboard.
Challenges we ran into
- Adapting pose detection for different body types & camera angles.
- Ensuring accuracy scores remain consistent across sessions.
- Creating a motivating, yoga-inspired interface that blends tradition with technology.
Accomplishments that we're proud of
- Successfully built a working AI yoga trainer from scratch.
- Designed a progress dashboard with streaks, badges, and best accuracy.
- Bridged ancient Surya Namaskar practice with modern AI tools.
What we learned
- Deepened understanding of computer vision and pose estimation.
- Learned how to gamify wellness practices without losing authenticity.
- Gained insights into balancing spiritual calmness with digital UX.
What's next for Asana AI Trainer
- Add voice guidance for step-by-step posture correction.
- Support breathing pattern detection for holistic yoga.
- Expand to full yoga asana library beyond Surya Namaskar.
- Build a mobile app with cloud sync for global reach.
Conclusion
Asana AI Trainer brings together tradition and technology to make yoga practice more guided, gamified, and accessible.
Log in or sign up for Devpost to join the conversation.