Smartphone motion sensors can reveal handwritten digits across users and phones

Handwritten Digit Leakage from Smartphone Motion Sensors Across Unseen Users and Phone Models

Machine LearningHuman-Computer Interaction

Summary

Motion sensors in smartphones, like accelerometers and gyroscopes, can pick up information that reveals what digit a person is writing on the touchscreen. The authors studied data from many people and different phone models to see if this digit recognition works even when the user or phone is new to the system. They found that a machine learning model called a transformer could correctly guess the digit about 58% of the time on completely new users and phones, and it was even more accurate when considering the top three guesses. This means your phone’s motion data might unintentionally leak what you write, although some practical privacy limits remain.

What this means in practice

  • For mobile app developers: Detect possible digit input leaks from motion sensors to improve user privacy in touch-based apps.
  • For smartphone security teams: Assess risk of sensitive input exposure from sensor data across diverse users and phone models to enhance security measures.

Authors

Constantino Álvarez Casado, Erkka Rantahalvari, Matteo Pedone, Matti Matilainen, Manuel Lage Cañellas, Le Nguyen, Simo Hosio, Olli Silvén, Miguel Bordallo López

Abstract

Smartphone motion sensors support interactive applications, but their readings may also reveal touchscreen input beyond their intended use. Assuming known drawing intervals, we study whether handwritten digits remain predictable across users and devices, as a 10-class problem on 19,628 HuMIdb recordings from 481 participants. We compare handcrafted features with classical machine learning algorithms, MiniRocket kernels, and a compact sensor patch transformer on accelerometer, linear acceleration, gyroscope, and gravity signals. The transformer achieves 57.74\% accuracy and 82.64\% top-3 accuracy on 75 unseen participants, and 58.77$\pm$0.95\% over 3 seeds for unseen participants on 9 unseen phone models. Low motion recordings remain informative, accuracy is not monotonic in motion level, and the tested contrastive pretraining, augmentation, and derived signals give no consistent gains. Digits are thus predictable beyond familiar users and phone models under assumed segmentation, while acquisition-order shortcuts limit conclusions about practical privacy exposure. Code available at: https://github.com/Arritmic/motion-digit-leakage.