Why your next typing coach should watch your fingers, not the keys
If you’ve ever felt your speed hit a wall on tricky letter pairs like “ed” or “th,” you’ve likely run into same-finger bigrams (two consecutive characters typed with the same finger). They slow you down, increase micro-stalls, and concentrate strain. Large-scale studies show that better alternation and smooth “rolls” (neighboring-finger sequences) correlate strongly with higher speeds—even in everyday typists. In one analysis of 136 million keystrokes, rollover and alternation patterns were powerful predictors of performance (correlation up to r ≈ 0.73). (userinterfaces.aalto.fi)
Now imagine a typing test that sees your actual finger motions and helps you avoid those speed-sapping patterns in real time—no gloves, rings, or wearables required. Thanks to modern, in-browser machine learning, that’s realistic today.
The idea: an in-browser finger-tracking coach
Using your laptop’s webcam, the site runs a lightweight ML model in the page to estimate 21 landmarks per hand at real-time frame rates. From those landmarks, it can visualize per-finger travel, detect when two consecutive keypresses came from the same finger (a same-finger bigram), and gently cue healthier rolls or alternation as you type. MediaPipe’s Hand Landmarker task provides the on-device, privacy-preserving hand tracking that makes this possible on the web. (developers.google.com)
Why target same-finger bigrams (SFBs)?
- They’re biomechanically inefficient: the same finger must decelerate, reposition, and accelerate again, increasing inter-key intervals (IKIs). Evidence from controlled studies shows bigram frequency and transition type interact with finger groups to affect IKIs, especially for less-proficient typists. (pmc.ncbi.nlm.nih.gov)
- They resist flow: keyboard-layout research often optimizes to reduce same-finger sequences and promote comfortable rolls, because those patterns consistently relate to comfort and performance. (doi.org)
- They add load to a few digits: tracking per-finger workload helps you see when, for example, your right index is doing too much of the heavy lifting—useful feedback whether you’re on QWERTY or an alternative layout. (doi.org)
What runs in the browser
- Hand landmarks: MediaPipe’s Hand Landmarker (Web) estimates 21 keypoints per hand directly in the page (no cloud calls). You can draw the hand skeleton on a canvas and access landmark arrays each frame. (developers.google.com)
- Private, on-device inference: By default, this runs via efficient WebAssembly and SIMD. If available, the emerging Web Neural Network (WebNN) API can route inference to local accelerators (GPU/NPU) for lower latency and battery-friendlier sessions—keeping data on the user’s device. WebNN is still experimental, but designed specifically for privacy-preserving, on-device ML. (learn.microsoft.com)
- Cross-platform acceleration status: As of October 26, 2026, the W3C Web Machine Learning group reported Firefox passing 100% WebNN web-platform tests with a Core ML backend on macOS, and demos running on Intel NPUs; Chromium’s next origin trial was tentatively targeted after fixes. In short: promising, but treat as opt-in acceleration behind flags for now. (w3.org)
Tip for tinkerers: developers can locally enable WebNN in supporting Chromium builds via browser flags during experiments. Don’t ship it as a hard dependency yet. (webnn.io)
How the coach works (a practical blueprint)
1) Calibrate once
- Ask the user to set the laptop at a comfortable angle with good lighting and frame both hands. Optionally capture a quick “home-row tap” so the model can learn typical fingertip ranges for each digit. (developers.google.com)
2) Pair camera motion with keystrokes
- While the site’s practice text runs, the page logs keydown timestamps. In parallel, the hand tracker streams landmarks at 30–60 fps. For each keydown, assign the responsible finger by looking for a brief spike in downward motion and proximity at the corresponding fingertip just before the event time. This time-correlation avoids needing markers on the keys.
3) Detect same-finger bigrams (SFBs)
- For each adjacent keydown pair, compare the inferred finger IDs. If they match, it’s an SFB. Flag it and compute the per-finger IKI so you can visualize the cost.
4) Visualize per-finger travel and load
- Accumulate Euclidean travel distance per finger from the landmarks between keystrokes. Show a live “workload bar” and an after-exercise heatmap. This mirrors metrics that keyboard researchers and layout tools use (per-finger effort, rolls vs alternation). (doi.org)
5) Cue healthier patterns—subtly
- When the coach sees repeated SFBs on slower fingers, it can suggest a nearby roll alternative in the practice text (e.g., favor drills with inward rolls) or surface a tip like “lighten up on right index; try splitting ‘ed’ across index→middle in this drill.” Large studies of everyday typists also highlight minimal global hand motion and consistent finger-to-key mapping as hallmarks of speed—great coaching goals. (userinterfaces.aalto.fi)
6) Keep it private and fast
- All inference runs locally; no camera frames leave the device. That’s a design goal of MediaPipe and WebNN’s hardware-acceleration model. On Apple Silicon Macs or AI-PCs, experimental WebNN backends may tap Core ML or NPUs for extra headroom. Treat these paths as progressive enhancements. (learn.microsoft.com)
Developer note: The same hand-landmark pipeline also runs natively. Recent community work shows Hand Landmarker models converted for Core ML and re-implemented operators running entirely on-device—evidence the approach ports well for local acceleration. (pypi.org)
Actionable tips to try today
- Camera and lighting: Point the webcam toward your hands with diffuse light; avoid strong backlight to reduce landmark jitter. (developers.google.com)
- Start with awareness: In a 3–5 minute warmup, just watch the live per-finger workload bars. Notice which finger spikes the most.
- Drill the offenders: Create focused drills for your top 3 slow SFBs. Mix in passages rich in inward rolls and hand alternation to retrain muscle memory. Evidence links alternation/roll behavior to higher speeds even in non-touch-typists. (userinterfaces.aalto.fi)
- Reduce reach, reduce travel: If your heatmap shows heavy bottom-row or pinky travel, adjust your posture or screen angle; small ergonomic tweaks cut per-finger distance and tension. Layout research routinely optimizes for lower per-finger effort and fewer same-row/redirects. (doi.org)
- Opt-in acceleration: If you’re experimenting, try enabling WebNN flags in a dev browser build for lower latency. Fall back to the default WASM path for widest compatibility. (webnn.io)
Why this belongs in your practice mode
A typing test already knows what you typed and when. Add a thin layer of hand tracking, and you can:
- Turn raw WPM into coaching: “Your WPM dropped 8% on SFBs involving the right index.”
- Personalize drills: Surface texts that emphasize rolls the user under-practices.
- Track ergonomic progress: Show per-finger travel/week trending down as habits improve.
Putting it all together: everyday typists benefit most from concrete, immediate feedback on movement strategies—less global hand motion, more consistent finger mapping, and fewer same-finger stalls. A browser-based coach can deliver that, privately and with near-zero setup. (userinterfaces.aalto.fi)