I built BackUp, a browser tab that watches your posture through the webcam and nudges you when you slouch. I built it for the Kiroween hackathon with Kiro. It runs MediaPipe Pose Landmarker in WebAssembly, and the video never leaves the tab. This is a short list of the numbers and limits I ended up with. They are the app's settings and the limits I wrote down, not lab benchmarks. I have not measured model accuracy, and I will say so where it matters.

What the model gives you: 33 body landmarks per frame from an ordinary webcam. Everything after that is my own code in the tab: the scoring, a reminder state machine, a posture needle and calibration.

Settings that mattered:

  • Confirm before you chime. A slouch has to hold for about 2 seconds of confirmed bad posture before the first chime. Without that, every shrug fires a reminder.
  • Escalate slowly. The spoken prompt comes about 10 seconds after the chime, and repeats at most every 30 seconds while the posture stays bad.
  • Recover quickly. About 3 seconds of good posture returns the state to good and plays one recovery chime.
  • Framing gate. Shoulders must span 12 to 65 percent of the frame width, otherwise the app shows "person too far" or "person too close". A webcam has no depth sensor, so distance comes from how wide your shoulders are in the frame.
  • Stay quiet on bad data. If landmark confidence drops, the badge reads "unreliable" and nothing fires. A garbled frame is ignored and the state holds.
  • Background tabs. Browsers throttle hidden tabs, so a Web Worker timer keeps tracking at about 5 fps. The state machine does not depend on frame rate, so reminders still land on time.

Things that break it, from my own testing notes: glasses glare, low light (tracking gets jumpy), cameras that are off to the side, and partial framing. I wrote those into the README as known limits instead of hiding them. A webcam gives approximate estimates, and nothing in the app is clinically validated.

One bug worth knowing about: MediaPipe labels left and right from the person's point of view, and webcams often mirror the image. I made the advice never name a side, and a property test checks that mirroring the picture does not change what it says.

If WebGL is off, the app falls back to a simpler pose model on the CPU. It is less accurate and slower, and it tells you so on screen.

You can try it here, with a demo mode if you have no camera: https://arii.github.io/backup/app/

What would you want a posture tool to do differently?