tap.localizer / v0.3
— Hz

tap localization via accelerometer

Train a classifier to recognize where on the phone you're tapping — screen, back, edges — purely from motion data. iOS requires explicit permission for the DeviceMotion API.

how it works

Pick a zone, tap that part of the phone repeatedly to collect samples, then switch to inference.

  1. Screen uses your touchscreen taps as labels — tap anywhere on the capture surface.
  2. Back & edges use accelerometer impulses — physically tap that part of the phone. Hold the phone firmly elsewhere.
  3. 5–10 samples per zone is enough to start. Inference unlocks at 3+ samples in 2+ zones.
  4. In inference, confirm or correct each prediction — feedback gets added to training (RLHF).
x y z ω
0.00 m/s²
x y z ω
0.00 m/s²
predicted zone
tap any surface
actual touch
predicted (accel)
error:
trigger
confidence
peak g
nn dist
capturing
SCREEN
Tap anywhere on this area. Each tap is recorded as a screen sample with its x, y position.
this session
0
last peak