TapType: Ten-finger text entry on everyday surfaces via Bayesian inference

Paul Streli, Jiaxi Jiang, Andreas Fender, Manuel Meier, Hugo Romat, Christian Holz · DOI

TL;DR

TapType is a wireless text-entry system that enables full-size, ten-finger touch typing on any ordinary flat surface using only two wristbands. By fusing wrist-measured tap vibrations processed through a Bayesian neural network with an n-gram language model, TapType accurately predicts intended text, allowing users to type eyes-free at an average of 19 words per minute.

What Problem Does This Paper Address?

While physical keyboards remain the gold standard for fast and comfortable typing, they lack portability. Mobile alternatives—like shrunk touchscreen keyboards—compromise on speed and ergonomics, leading to high error rates and physical fatigue.

To bridge this gap, researchers have previously explored "everyday surface typing." However, prior approaches typically rely on computer vision (which suffers from occlusion, high power consumption, and privacy concerns) or instrumenting every single finger with rings or thimbles (which is socially awkward and physically obtrusive). TapType tackles this challenge by moving all sensing to the wrist, leveraging the familiar form factor of a standard fitness tracker to turn any desk or table into an invisible, full-sized keyboard.

Methods

TapType's architecture relies on a three-part pipeline that translates bone-conducted vibrations into text:

  1. Tap Detection: Users wear a silicone wristband on each arm containing two high-resolution, high-sampling-rate (1600 Hz) tri-axial accelerometers. When a finger strikes a surface, the resulting microvibrations travel through the hand's bones to the wrist. A thresholding algorithm detects these sudden spikes to isolate distinct tap events.
  2. Bayesian Tap Classification: Once a tap is detected, an 80 ms window of the signal is fed into a Convolutional Neural Network (CNN). Crucially, the authors implement a Bayesian neural network ("2-Bayes" architecture, where the first convolutional and last linear layers are Bayesian). Unlike standard deterministic networks that output overconfident point estimates, this network produces a well-calibrated probability distribution over which finger (or palm) caused the tap. It also utilizes an entropic open-set loss to reject spurious out-of-distribution (OOD) movements like mid-air gestures.
  3. Probabilistic Text Decoding: The system models typing as a Hidden Markov Model (HMM), mapping the identified fingers to standard QWERTY touch-typing character groups. A decoder then combines these finger probabilities with character-level (12-gram) and word-level (4-gram) language models via beam search to output the most likely word suggestions.
Figure 1: TapType is a portable, wireless text entry system that brings touch typing to everyday surfaces. TapType’s two wristbands sense vibrations arising from finger taps, from which our Bayesian classifier estimates finger probabilities. Our text decoder then estimates input character sequences by fusing these predictions with the priors of an n-gram language model given a key-finger mapping. TapType is suitable for several applications, including text entry (a) on a phone or (b) on a tablet using the surrounding surface for increased typing convenience, (c) in conjunction with audio feedback only in mobile scenarios, or (d) in situated Mixed Reality to complement typing with passive haptic feedback.

Datasets

The authors evaluated and trained their system using two primary data sources:

  • A Custom Tap Dataset: Collected from 16 participants who typed on a paper-printed QWERTY layout placed over a large mutual-capacitance touch sensor (Project Zanzibar) to capture ground-truth touch timestamps. An OptiTrack motion capture system tracked retroreflective markers on the participants' fingernails to establish exact finger identities. This yielded 28,116 labeled taps and 43,529 OOD samples.
  • Language Modeling Corpus: A massive text dataset compiled from Wikipedia, blogs, news articles, and emails, optimized specifically for mobile text entry using cross-entropy difference selection against the W3C and TREC 2005 datasets.

Key Insights and Ideas

  • The Necessity of Calibrated Uncertainty: Standard deep learning classifiers are notoriously overconfident; they might guess the index finger with 99% confidence even when uncertain. For text decoding, this is fatal because it completely cuts off alternative word paths. By introducing Bayesian layers, TapType preserves realistic uncertainty (e.g., splitting probability between the easily confused middle and ring fingers), allowing the language model to successfully resolve ambiguities downstream.
  • The "Just Enough Bayes" Sweet Spot: Fully Bayesian networks ("all-Bayes") are computationally expensive. The authors discovered that making only the first convolutional and last linear layers Bayesian ("2-Bayes") yielded the best text decoding performance while running 4× faster and adding a negligible 0.3% more parameters than a deterministic baseline.
  • Leveraging Muscle Memory Over Spatial Tracking: TapType does not care where your finger lands on the table; it only cares which finger tapped. By relying entirely on the user's internalized muscle memory of a QWERTY layout, the system offloads spatial tracking to the human brain and handles the rest via linguistic priors.
Figure 2: Hidden Markov model illustrating dependencies between a character 𝑦𝑡typed at time step 𝑡and the corre- sponding finger tap 𝑧𝑡that causes the observed vibration signals 𝒙𝑡. The state of the system is described by the charac- ter sequence 𝒚𝒕entered up and including to character 𝑦𝑡.

Key Results

  • Typing Performance: In an online user study with 10 participants, users achieved an average typing speed of 19.2 WPM with a remarkably low Character Error Rate (CER) of 0.6% after only 30 minutes of practice.
  • Expert Speeds: Expert touch typists consistently exceeded 25 WPM, with some individual phrases clocked at up to 44 WPM.
  • Zero-Shot Generalization: Even without person-specific fine-tuning, the system generalized well to unseen users, maintaining a typing speed of 15.4 WPM and a 0.1% CER.
  • Decoder Accuracy: The probabilistic decoder successfully predicted the correct target word within its top 10 suggestions in 90% of cases.

Limitations and Future Work

Despite its strengths, TapType has a few hurdles to clear before widespread commercial adoption. Currently, the system requires a high-end CPU or GPU to run neural network inferences in real time, limiting its immediate use on standalone mobile devices. Furthermore, wireless transmission via Bluetooth Low Energy (BLE) introduces a latency of 129 ms (compared to 59 ms when tethered), which can degrade the real-time interactive feel.

Linguistically, because the system cannot distinguish between different keys struck by the same finger (e.g., 'U', 'J', and 'M' are all hit by the right index finger), typing Out-of-Vocabulary (OOV) words like acronyms or rare names requires a slow, character-by-character manual override. Future work will focus on optimizing the models for on-board wristband processing and attempting to recover more granular key-row information from the acoustic signatures.

Summary updated

Abstract

Despite the advent of touchscreens, typing on physical keyboards remains most efficient for entering text, because users can leverage all fingers across a full-size keyboard for convenient typing. As users increasingly type on the go, text input on mobile and wearable devices has had to compromise on full-size typing. In this paper, we present TapType, a mobile text entry system for full-size typing on passive surfaces--without an actual keyboard. From the inertial sensors inside a band on either wrist, TapType decodes and relates surface taps to a traditional QWERTY keyboard layout. The key novelty of our method is to predict the most likely character sequences by fusing the finger probabilities from our Bayesian neural network classifier with the characters' prior probabilities from an n-gram language model. In our online evaluation, participants on average typed 19 words per minute with a character error rate of 0.6% after 30 minutes of training. Expert typists thereby consistently achieved more than 25 WPM at a similar error rate. We demonstrate applications of TapType in mobile use around smartphones and tablets, as a complement to interaction in situated Mixed Reality outside visual control, and as an eyes-free mobile text input method using an audio feedback-only interface.
BibTeX
@inproceedings{streli2022taptype,
  author = {Paul Streli and Jiaxi Jiang and Andreas Fender and Manuel Meier and Hugo Romat and Christian Holz},
  title = {{TapType: Ten-finger text entry on everyday surfaces via Bayesian inference}},
  booktitle = {CHI},
  year = {2022},
  url = {https://openreview.net/forum?id=p8Ow-w1ZZ9},
}
Figure