FitGuardian AI – Your AI Personal Trainer and Injury Prevention Coach
Inspiration
Millions of people exercise without access to professional trainers. Whether working out at home, in hostels, or in local gyms, many individuals unknowingly perform exercises with incorrect form. Poor posture during movements like squats, push-ups, and planks can lead to injuries, reduced performance, and slower progress.
We wanted to make expert-level fitness guidance accessible to everyone. Our vision was simple: what if anyone could receive real-time coaching and posture correction using only a webcam and AI?
This idea inspired us to create FitGuardian AI, an intelligent fitness platform that acts as a personal trainer, form analyst, and injury prevention assistant.
What It Does
FitGuardian AI uses computer vision and artificial intelligence to analyze a user's exercise form in real time.
Users can:
- Perform exercises in front of their webcam.
- Receive live posture correction and coaching.
- Track workout performance and form quality.
- Get personalized workout plans generated by AI.
- Monitor injury risk based on movement patterns.
- View progress reports and fitness analytics.
The platform currently supports exercises such as:
- Squats
- Push-Ups
- Planks
- Lunges
How We Built It
Frontend
- Next.js 15
- TypeScript
- Tailwind CSS
- Framer Motion
We designed a modern and responsive interface inspired by premium fitness and technology products.
Computer Vision
We integrated MediaPipe Pose to detect and track body landmarks in real time.
The system continuously monitors:
- Shoulders
- Elbows
- Wrists
- Hips
- Knees
- Ankles
Using these landmarks, we calculate body angles and movement patterns.
AI Coaching Engine
Our rule-based biomechanics engine evaluates exercise quality and detects common mistakes such as:
- Knee valgus during squats
- Rounded back posture
- Hip sag during push-ups
- Poor plank alignment
The platform then generates corrective feedback instantly.
Gemini Integration
We used Google's Gemini API to:
- Generate personalized workout plans
- Create improvement recommendations
- Produce fitness assessments
- Deliver actionable health insights
Voice Feedback
Using the Web Speech API, FitGuardian AI provides real-time verbal coaching such as:
"Straighten your back."
"Great repetition."
"Keep your core engaged."
This creates an experience similar to having a real trainer present.
Challenges We Faced
Real-Time Pose Accuracy
One of our biggest challenges was ensuring accurate pose detection across different camera angles, lighting conditions, and body positions.
Exercise Classification
Different users perform exercises at different speeds and ranges of motion. Building a system that could reliably detect correct and incorrect repetitions required extensive testing and calibration.
Balancing Performance and Responsiveness
Processing pose landmarks, calculating angles, generating feedback, and maintaining a smooth user interface simultaneously was technically challenging.
Actionable Feedback
Providing meaningful corrections was more difficult than simply detecting movement. We focused on delivering feedback that users could immediately understand and apply.
What We Learned
Through this project, we gained hands-on experience in:
- Computer Vision
- Human Pose Estimation
- Real-Time Data Processing
- AI-Assisted Coaching Systems
- Fitness Biomechanics
- Frontend Performance Optimization
- Full-Stack Application Development
We also learned how AI can be used not only for automation but for improving public health and preventing injuries.
Future Improvements
Future versions of FitGuardian AI will include:
- Support for additional exercises
- Mobile application integration
- Smartwatch and wearable connectivity
- Personalized nutrition recommendations
- Advanced injury prediction models
- AI-generated workout replay analysis
- Community challenges and gamification
Impact
FitGuardian AI aims to democratize access to quality fitness coaching. By combining computer vision, artificial intelligence, and real-time feedback, we help users train safer, improve performance, and reduce injury risk regardless of their location or financial resources.
Our mission is simple:
Train Smarter. Move Better. Stay Injury-Free.
Built With
- 15
- ai
- ai-powered
- analysis
- antigravity
- api
- artificial
- assessment
- authentication
- backend
- built
- cloud
- code
- computer
- core
- css
- css3
- data
- database
- deployment
- detection
- development
- exercise
- firebase
- firestore
- form
- framer
- frontend
- gemini
- generation
- git
- github
- html5
- ide
- injury
- intelligence
- javascript
- languages
- mediapipe
- motion
- next.js
- personalized
- pose
- react
- real-time
- recharts
- risk
- speech
- studio
- tailwind
- technologies
- tools
- typescript
- vercel
- vision
- visualization
- voice
- vs
- web
- with
- workout
Log in or sign up for Devpost to join the conversation.