Home / Insights / AI and Machine Learning

AI and Machine Learning

Computer Vision for Fitness Apps: Pose Estimation, Rep Counting and Privacy by Design

Camera-based rep counting and form feedback are now realistic features for fitness apps, but only if the product team treats accuracy limits and privacy as design inputs rather than afterthoughts.

TopicsAI and Machine LearningMobile App Development

Key takeaways

  • Pose estimation gives you body landmarks, not exercise insight; rep counting and form checks are logic you design, test and own on top of those landmarks.
  • On-device models such as Apple Vision and Google MediaPipe Pose Landmarker let video stay on the phone, which simplifies privacy and removes per-frame cloud cost.
  • Accuracy depends heavily on camera placement, framing, clothing and exercise type, so define supported exercises and setup guidance before promising features.
  • Pose data from a fitness app is usually health-related personal data under UK and EU GDPR; it becomes special category biometric data if you use it to identify people.
  • Validate with a labelled test set of real users and environments, and publish clear limits in the app instead of implying clinical-grade feedback.

Fitness product teams keep hearing the same request from users and coaches: count my reps, tell me if my squat is too shallow, and do it without a wearable. Pose estimation models that run on an ordinary phone camera make this technically achievable. What they do not do is make it easy to ship a feature that users trust, that works in a cramped living room at night, and that respects the fact that you are pointing a camera at people’s bodies in their homes.

This article is for founders, product leads and CTOs of fitness, wellness and coaching apps who are deciding whether to add camera-based exercise tracking. I will cover what pose estimation actually returns, how rep counting and form feedback are built on top of it, where to run the model, how to measure accuracy honestly, and which privacy obligations apply under UK and EU data protection law. Each section ends with actions you can take into a planning session.

What pose estimation actually gives you

A pose estimation model takes an image or video frame and returns the positions of body landmarks: shoulders, elbows, wrists, hips, knees, ankles and a handful of facial points. It does not know what exercise the person is doing, whether a rep is complete or whether their form is good. Those judgements are application logic that your team writes on top of the landmark stream.

Two widely used on-device options

Google’s MediaPipe Pose Landmarker tracks 33 body landmarks and runs on Android, iOS, the web and Python. It offers lite, full and heavy model bundles, and returns both normalised image coordinates and 3D world coordinates in metres relative to the midpoint of the hips, plus visibility and presence scores for each landmark. It can optionally output a segmentation mask of the person. Its documentation describes it as suitable for real-time fitness use, but it does not publish latency benchmarks, so you need to measure on your target devices.

Apple’s Vision framework has offered body pose detection since iOS 14. According to Apple’s guide to detecting human body poses in images, it detects up to 19 body points per person, returns a confidence score for each point and an observation per detected person, and treats any point with a confidence of zero as invalid.

Action: before writing a feature specification, have an engineer run a pose model on ten short videos of your target exercises filmed on mid-range phones in ordinary rooms. Watching the raw landmark overlay is the fastest way to set realistic expectations with stakeholders.

How rep counting and form feedback are built

Once you have landmarks, there are three broad ways to turn them into exercise features. They differ in build effort, data requirements and how well they generalise to new exercises.

Rule-based signal processing

Most first versions use joint angles. For a squat, you compute the knee angle from hip, knee and ankle landmarks, smooth it over a few frames, and count a rep each time the angle passes below a depth threshold and then returns above a standing threshold. Hysteresis (two thresholds rather than one) stops jitter from producing double counts. Form rules follow the same pattern: knee angle at the bottom of the rep for depth, the horizontal distance between knees for valgus, torso angle for forward lean.

Learned classifiers on landmark sequences

A small sequence model (or a simpler classifier on windowed features) can learn to recognise exercise phases or classify a rep as good or flawed. This handles variation better than hand-tuned thresholds, but it needs labelled examples of each exercise performed well and badly, by people of different body types, filmed from the angles your users will actually use.

Hybrid approaches

A practical pattern is to use rules for counting, where the logic is transparent and easy to debug, and a learned model only for exercise recognition or a narrow form judgement where rules become brittle.

ApproachStrengthsWeaknessesBest fit
Rule-based angles and thresholdsExplainable, no training data, fast to iterateTuned per exercise; brittle with unusual camera anglesFirst release, small exercise library
Learned classifier on landmarksHandles variation; can recognise exercises automaticallyNeeds labelled data and an evaluation pipelineLarger libraries, automatic exercise detection
HybridTransparent counting with learned recognitionTwo systems to maintainMost products after the first release

Design details that decide user trust

  • Calibration: a short standing pose at the start of a set lets you normalise for body proportions and camera distance.
  • Partial reps: decide whether a shallow rep is not counted, counted with a warning, or counted silently. Coaches and users have strong opinions here.
  • Feedback timing: spoken cues mid-set are more useful than a score at the end, but they must not fire on noise.
  • Confidence gating: when key landmarks are low-confidence, pause counting and tell the user to adjust the camera rather than guessing.

Action: limit the first release to a short list of exercises where the key joints are clearly visible from one camera position, and specify the counting logic and form rules in plain language that a coach can review.

Where should the model run: on the device or in the cloud?

For live rep counting, running the model on the phone is usually the right default. Feedback must arrive within a fraction of a second, network quality in gyms and homes varies, and streaming video to a server for every set creates both cost and privacy exposure. Both Apple Vision and MediaPipe are designed for on-device inference, so video frames never need to leave the device.

Cloud processing still has a place, mainly for post-workout analysis, coach review of uploaded clips, or heavier models that a phone cannot run in real time. We compare these deployment options in more depth in Cloud, Edge or On-Device Computer Vision?

FactorOn-deviceCloud
Latency for live cuesLow and predictableDepends on network; risky for live feedback
Privacy exposureVideo can stay on the phone; only derived metrics leaveVideo or frames transmitted and stored; more obligations
Running costNo per-frame server costCompute and storage per session
Model size and accuracy ceilingConstrained by device; older phones may need the lite modelCan run larger models
Update cadenceTied to app releases or model downloadServer-side updates at any time
Device fragmentationMust test across a range of Android and iOS hardwareUniform server environment

Cross-platform considerations

If your app is built in React Native or Flutter, the pose model will typically run through a native module. MediaPipe gives you one model family across Android and iOS, which simplifies keeping counting logic consistent between platforms. Using Apple Vision on iOS and a different model on Android means your thresholds and form rules may behave differently on each platform, because the landmark sets differ (19 points versus 33) and so do their error patterns.

Action: choose a single landmark model across platforms unless you have a strong reason not to, and budget time for a native bridge and for testing on at least a few low-end Android devices that represent your user base.

How do you know it is accurate enough?

Model papers and vendor pages report accuracy on benchmark datasets. Your users do not exercise in benchmark conditions. The only accuracy figure that matters for your product is the one you measure on your exercises, in your users’ environments, with your counting logic.

Known sources of error

Apple’s guidance is unusually direct about conditions that degrade pose detection: the subject should ideally fill at least a third of the image height, most key body points should be in frame, flowing or robe-like clothing reduces accuracy, and dense crowds produce unreliable results. In fitness contexts, add the following to that list:

  • Floor exercises such as push-ups and planks, where limbs overlap and the body is horizontal.
  • Side-on versus front-on camera placement, which changes which joints are visible.
  • Low light and backlighting from windows.
  • Equipment that hides joints, such as barbells across the shoulders or resistance bands.
  • Multiple people in frame, for example a partner or child walking past.

Building an evaluation set

  1. Define the supported exercises and the recommended camera setup for each.
  2. Recruit a varied group of participants covering different heights, body types, skin tones, clothing and fitness levels.
  3. Film sets in realistic environments on the phone models your users own, including some deliberately poor setups.
  4. Have a qualified coach label each rep: counted or not, and any form faults you intend to detect.
  5. Report count accuracy per exercise, false form warnings per set, and the proportion of sets where the app asked the user to adjust the camera.
  6. Re-run the same set after every change to models, thresholds or smoothing.

For example, an illustrative acceptance rule might be that the app’s count matches the coach’s count exactly on most sets for each supported exercise and is never off by more than one, with any exercise failing that bar shipped as beta or not at all. The exact thresholds are a product decision; the point is to agree them before testing, not after. Our guide to image labelling quality and cost covers how to keep labels consistent across reviewers.

Action: treat the evaluation set as a product asset with an owner, a version number and a regression run in your release checklist.

Which privacy rules apply to camera-based fitness features?

Pointing a camera at people exercising at home raises obvious sensitivities. Under the UK GDPR and EU GDPR, the regulatory position depends on what you collect, what you infer and what you use it for. This is not legal advice, and you should involve your data protection officer or adviser, but the main questions are well established.

Is it health data?

The UK Information Commissioner’s Office explains in its guidance on what special category data is that health data includes data from fitness trackers, and that inferring something about a person’s health, such as a condition or risk, is special category processing whether or not the inference is correct. A rep count on its own may be low risk; an app that flags reduced range of motion as a possible injury is inferring health information.

Is it biometric data?

The same ICO guidance notes that biometric data, which can include physical and behavioural traits such as gait, is only special category data when processed for the purpose of uniquely identifying someone. Using pose landmarks to count reps is not identification. Using body or face analysis to recognise which family member is exercising, or to log people into the app, is. The ICO’s biometric recognition guidance says that where explicit consent is used for such processing, it must be a clear explicit statement, freely given and easy to withdraw, and that a suitable non-biometric alternative should be offered.

Privacy-by-design choices that reduce risk

Design choicePrivacy effectProduct trade-off
Process frames on the device and discard themNo video leaves the phone or is storedNo clip replay for coaches unless users opt in
Upload only derived metrics (reps, set duration, form flags)Minimises data held on serversCannot reprocess historical sessions with a new model
Opt-in clip sharing with a coach, per sessionClear, specific consent for the more sensitive flowExtra UX steps
Avoid identity recognition from body or faceKeeps processing outside biometric identificationUsers select their profile manually
Plain-language camera notice before first useTransparency; sets expectations about what is analysedOne more onboarding screen

On iOS, camera access also requires a usage description shown in the system permission prompt, and if you combine pose data with Apple Health you take on further obligations; our article on building health and wellness apps with HealthKit covers those rules.

Action: run a data protection impact assessment early, document why your processing is or is not health inference and biometric identification, and make on-device processing with metrics-only upload the default.

Costs, delivery risks and how to scope a first release

Camera features look cheap in a demo and expensive in production. The model itself is free to use in both the Apple and Google options above; the cost sits in the surrounding engineering and validation: counting logic per exercise, native integration, camera setup UX, evaluation data and ongoing maintenance as devices and operating systems change.

Risks to plan for

RiskWhat it looks likeMitigation
Over-promisingMarketing says the app corrects your form; users get false warningsName supported exercises; label form tips as guidance, not assessment
Battery and heatPhone gets hot on a 30-minute sessionUse the lightest model that meets accuracy; lower frame rate when idle
Platform driftiOS and Android counts differ for the same setSame model family on both; shared test set
Bias in accuracyWorks less well for some body types or skin tonesDiverse evaluation participants; report results by group
Medical claimsFeature drifts into injury detection or rehabilitationKeep wellness scope clear; regulated clinical use needs separate processes

For example, a coaching app with an established subscriber base might scope a first release around three bodyweight exercises filmed front-on, rule-based counting, a single depth cue per exercise, on-device processing and metrics-only sync, with a beta label and in-app feedback button. That is a deliberately narrow scope that can be measured properly and extended once the evaluation pipeline exists.

Action: estimate the work per exercise rather than as one feature, and put the evaluation set and DPIA on the plan as deliverables with owners.

Implementation checklist

Use this list to move from idea to a release you can defend to users, coaches and your data protection adviser.

  1. Define scope: list supported exercises, camera positions and what each feature does and does not claim.
  2. Prototype the raw model on real videos and agree expectations with stakeholders.
  3. Choose the model and platform strategy, preferring one landmark model across iOS and Android.
  4. Specify counting and form logic in plain language and have a qualified coach review it.
  5. Design the camera setup flow with framing guides and low-confidence handling.
  6. Build the evaluation set with varied participants and environments; agree acceptance thresholds before testing.
  7. Complete a DPIA, default to on-device processing, and make any video upload opt-in and specific.
  8. Test performance and battery on low-end and older devices.
  9. Release as beta with feedback capture, then expand exercises based on measured results.

PoliteTech builds fitness, wellness and coaching apps in React Native, Flutter, Swift and Kotlin, including wearable and health platform integrations; you can see how we approach these products on our Fitness and Wellness page.

Frequently asked questions

Do we need our own machine learning model to count reps?

Usually not for a first release. Off-the-shelf pose models such as MediaPipe Pose Landmarker or Apple Vision provide the landmarks, and rep counting can be built with joint angles and thresholds. A custom model becomes worthwhile when you need automatic exercise recognition or form judgements that rules cannot express reliably.

Can video stay on the user’s phone?

Yes. Both Apple Vision and MediaPipe run on the device, so frames can be processed and discarded locally, with only derived metrics such as rep counts synced to your servers. Upload video only for features that genuinely need it, such as coach review, and make that opt-in.

Is pose data biometric data under GDPR?

Body movement data can be biometric, but under UK and EU GDPR it is special category biometric data only when processed to uniquely identify someone. Counting reps is not identification; recognising which user is in front of the camera is. Health inferences, such as flagging possible injury, can make the data special category health data regardless.

How accurate will rep counting be?

It depends on the exercise, camera placement, lighting, clothing and device. Upright movements filmed with the whole body in frame tend to work best; floor exercises and partially hidden joints are harder. Measure accuracy on your own labelled test set before deciding which exercises to support.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. Google AI Edge: MediaPipe Pose Landmarker task guide — accessed 9 November 2026. 33 landmarks, lite/full/heavy bundles, running modes, world coordinates, supported platforms and on-device fitness positioning.
  2. Apple Developer: Detecting Human Body Poses in Images (Vision framework) — accessed 9 November 2026. Up to 19 body points from iOS 14, per-point confidence, and conditions that reduce accuracy (subject size, clothing, crowds).
  3. ICO: What is special category data? — accessed 9 November 2026. Fitness tracker data and health inferences as health data; when biometric data becomes special category (unique identification).
  4. ICO: Biometric recognition guidance, how do we process biometric data lawfully? — accessed 9 November 2026. Explicit consent requirements, offering non-biometric alternatives, necessity and proportionality.

Planning camera-based rep counting for your fitness app?

We can help you scope supported exercises, choose an on-device model and design an evaluation and privacy plan before you commit to a build.