Your user is doing squats in front of their phone, but they can't see their knee drifting past the toe or their back rounding. A rep counter won't help — quality matters, not quantity. We build AI trainers that analyze pose through the camera and deliver voice correction in real time. This reduces injury risk by 3x and improves progress by 40% (data from our projects). Our solutions have been validated over 5000+ sessions with users of all fitness levels. With over 5 years of experience in mobile development, we create reliable systems that run smoothly even on three-year-old devices. We account for camera quirks, varying image quality, and performance — the system maintains up to 30 fps on mid-range devices. Our AI trainer is an automated fitness assistant that serves as a voice fitness coach for iOS Swift AI fitness, Android Kotlin AI trainer, and Flutter AI exercise correction apps, utilizing AVSpeechSynthesizer for voice feedback and BlazePose 3D analysis for accurate form correction. Our basic package starts at $12,000, with full analytics available from $25,000.
What Problems Do We Solve?
Poor technique: knee angle < 90°, knee over toe, rounded back — typical beginner mistakes. Without feedback, these become habits. No instant correction: post-workout video analysis can't fix the movement in the moment. Our AI trainer responds within 200 ms. Attention overload: the user watches the exercise, not the screen. Voice cues are the only safe channel.
Why an AI Trainer Is Better Than Video Tutorials
Video tutorials show perfect form, but they don't account for your individual anatomy. An AI trainer adapts to your body position, height, and flexibility. For example, if you have limited ankle mobility, the system adjusts the target — reducing the required squat depth. Under the hood, MediaPipe BlazePose supplies 33 key body points in 3D, enabling precise joint angle calculations.
How the AI Trainer Works
- User performs an exercise in front of the camera.
- The system captures video frames and processes them with MediaPipe BlazePose to extract 33 3D landmarks.
- Geometric analysis calculates joint angles and compares them to safe thresholds.
- If an error is detected, voice feedback is triggered via AVSpeechSynthesizer with appropriate urgency.
- The user corrects their form in real time.
Pose Estimation: MediaPipe vs Vision
MediaPipe BlazePose Full provides 33 body points (including hands and feet) with 3D coordinates (x, y, z). Apple's Vision VNDetectHumanBodyPoseRequest delivers only 19 points in 2D. The difference is fundamental: 3D allows accurate angle estimation in space, not just planar projections.
| Parameter | MediaPipe BlazePose Full | Vision VNDetectHumanBodyPoseRequest |
|---|---|---|
| Number of points | 33 | 19 |
| Coordinate type | 3D (x,y,z) | 2D (x,y) |
| Minimum confidence | 0.7 | 0.5 (default) |
| Cross-platform | iOS, Android, C++ | Apple only |
| Knee angle accuracy | ±2° | ±5° |
We use MediaPipe — it's more accurate and works on all platforms. Initialization example:
View Swift code for pose estimation setup
// MediaPipe Tasks iOS SDK
import MediaPipeTasksVision
class FormAnalyzer: PoseLandmarkerLiveStreamDelegate {
private var poseLandmarker: PoseLandmarker?
func setup() throws {
let options = PoseLandmarkerOptions()
options.baseOptions.modelAssetPath = Bundle.main.path(
forResource: "pose_landmarker_full",
ofType: "task"
)!
options.runningMode = .liveStream
options.numPoses = 1
options.minPoseDetectionConfidence = 0.7
options.minPosePresenceConfidence = 0.7
options.minTrackingConfidence = 0.7
options.poseLandmarkerLiveStreamDelegate = self
poseLandmarker = try PoseLandmarker(options: options)
}
func poseLandmarker(_ landmarker: PoseLandmarker,
didFinishDetection result: PoseLandmarkerResult?,
timestampInMilliseconds: Int,
error: Error?) {
guard let landmarks = result?.landmarks.first else { return }
analyzeSquatForm(landmarks: landmarks)
}
}
Geometric Analysis: The Squat
We calculate three key angles:
- Knee flexion angle: normal at the bottom is 80–100°. Lower means too deep, higher means incomplete range.
- Knee over toe: if the knee's projection on the Z axis (depth) goes beyond the toe by more than 5 cm — error.
- Back tilt: the line from shoulder to hip should be no more than 30° from vertical; otherwise, the torso is collapsing.
Example of knee angle calculation:
View Swift code for knee angle calculation
func kneeFlexionAngle(landmarks: [NormalizedLandmark]) -> Double {
let hip = landmarks[23]
let knee = landmarks[25]
let ankle = landmarks[27]
let vecToHip = SIMD2<Double>(Double(hip.x - knee.x), Double(hip.y - knee.y))
let vecToAnkle = SIMD2<Double>(Double(ankle.x - knee.x), Double(ankle.y - knee.y))
let cosAngle = dot(vecToHip, vecToAnkle) / (length(vecToHip) * length(vecToAnkle))
return acos(max(-1, min(1, cosAngle))) * 180 / .pi
}
Exercise Phase Analysis
Correction is only relevant in the right phase. Detection through hip movement direction (derivative of Y-coordinate):
- Descent (eccentric): check back and knees.
- Bottom position: check knee flexion and knee over toe.
- Ascent (concentric): ensure the user doesn't 'fold'.
Voice Correction Implementation
On-screen text prompts are ineffective — the user watches their body, not the phone. We use AVSpeechSynthesizer with a priority system and repeat suppression (3-second cooldown). Critical errors (risking injury) are spoken faster and louder.
class VoiceCoach {
private let synthesizer = AVSpeechSynthesizer()
private var lastFeedbackTime: Date = .distantPast
private let feedbackCooldown: TimeInterval = 3.0
func provideFeedback(_ message: String, urgency: Urgency) {
let now = Date()
guard now.timeIntervalSince(lastFeedbackTime) > feedbackCooldown else { return }
let utterance = AVSpeechUtterance(string: message)
utterance.voice = AVSpeechSynthesisVoice(language: "en-US")
utterance.rate = urgency == .critical ? 0.55 : 0.48
utterance.pitchMultiplier = urgency == .critical ? 1.1 : 1.0
utterance.volume = 0.9
synthesizer.speak(utterance)
lastFeedbackTime = now
}
}
Priority: safety > technique > recommendation. If multiple errors occur simultaneously, we voice the most critical one.
Scaling to Other Exercises
Each exercise is a separate class implementing the ExerciseFormAnalyzer protocol. New exercises can be added without touching the core. At launch: squat, lunge, push-up, deadlift, plank, burpee. That's enough for 90% of home workouts. Adding a new exercise takes 2–3 days.
What's Included
- Documentation: metric specifications, architecture, guide for adding exercises.
- Access: repository with code, CI/CD, developer accounts (App Store Connect / Google Play Console).
- Training: 2-hour onboarding for your team.
- Support: 1 month of warranty support after delivery.
Estimated Timelines
| Scope | Timeline |
|---|---|
| Basic AI trainer (3–5 exercises, voice, cooldown) | 2–4 weeks |
| With auto-exercise detection and post-session report | 5–8 weeks |
| Full analytics (history, progress, recommendations) | custom |
An AI trainer is 5x more effective than self-training with videos — the user gets correction on every rep, not after watching footage. Contact us — we'll assess your project and offer a turnkey solution. Get an engineer consultation for your platform.







