Skip to main content
QUICK REVIEW

[Paper Review] Deep-Spying: Spying using Smartwatch and Deep Learning

Tony Beltramelli, Sebastian Risi|arXiv (Cornell University)|Dec 17, 2015
User Authentication and Security SystemsComputer Science4 references18 citations
TL;DR

This paper proposes a deep learning-based side-channel attack that infers keystrokes from motion sensor data collected by a smartwatch, demonstrating that recurrent neural networks (LSTM) achieve 95.8% accuracy in keylogging on physical keyboards and 92.1% in touchlogging on virtual keyboards, significantly outperforming traditional shallow models.

ABSTRACT

Wearable technologies are today on the rise, becoming more common and broadly available to mainstream users. In fact, wristband and armband devices such as smartwatches and fitness trackers already took an important place in the consumer electronics market and are becoming ubiquitous. By their very nature of being wearable, these devices, however, provide a new pervasive attack surface threatening users privacy, among others. In the meantime, advances in machine learning are providing unprecedented possibilities to process complex data efficiently. Allowing patterns to emerge from high dimensional unavoidably noisy data. The goal of this work is to raise awareness about the potential risks related to motion sensors built-in wearable devices and to demonstrate abuse opportunities leveraged by advanced neural network architectures. The LSTM-based implementation presented in this research can perform touchlogging and keylogging on 12-keys keypads with above-average accuracy even when confronted with raw unprocessed data. Thus demonstrating that deep neural networks are capable of making keystroke inference attacks based on motion sensors easier to achieve by removing the need for non-trivial pre-processing pipelines and carefully engineered feature extraction strategies. Our results suggest that the complete technological ecosystem of a user can be compromised when a wearable wristband device is worn.

Motivation & Objective

  • Assess the practical feasibility of using wearable wristband devices (WADs) for passive keystroke inference attacks.
  • Investigate whether deep neural networks can outperform traditional shallow models in motion-based keystroke inference.
  • Demonstrate that smartwatches can enable continuous, pervasive eavesdropping on user input across various input devices.
  • Evaluate the robustness of deep learning models in classifying keystrokes from raw, noisy motion sensor data without manual feature engineering.
  • Establish a proof-of-concept system that collects, processes, and classifies motion sensor data from a smartwatch to infer user input.

Proposed method

  • Collected raw motion sensor data (accelerometer and gyroscope) from a smartwatch during user typing on physical and virtual keyboards.
  • Preprocessed sensor data using calibration, median filtering, and Kalman filtering to reduce noise and improve signal quality.
  • Trained feedforward neural networks (FNN) with sigmoid and tanh activation functions on statistical features (mean, variance, etc.) extracted from time windows.
  • Implemented recurrent neural networks (LSTM) with forget gates and peephole connections to model temporal dependencies in raw sensor sequences.
  • Used mean squared error (MSE) optimization during training and evaluated models using confusion matrices and classification accuracy.
  • Benchmarked multiple architectures across three experimental scenarios: touchlogging, keylogging, and cross-task inference (from touchlogging to keylogging).

Experimental results

Research questions

  • RQ1Can motion sensor data from a smartwatch be used to infer keystrokes on physical and virtual keyboards with high accuracy?
  • RQ2Does a deep learning approach outperform traditional shallow models that rely on manual feature engineering in motion-based keystroke inference?
  • RQ3How effective is an LSTM-based recurrent neural network in capturing temporal patterns in sensor data for keystroke classification?
  • RQ4Can a model trained on touchlogging data successfully infer keypresses on a physical keyboard without retraining?
  • RQ5What is the impact of different pre-processing techniques and network architectures on the classification performance of keystroke inference?

Key findings

  • The LSTM-based model achieved a peak accuracy of 95.8% in keylogging on a physical keyboard, significantly outperforming feedforward networks.
  • In touchlogging on a virtual keyboard, the LSTM model reached 92.1% accuracy, demonstrating strong generalization on touch-based input.
  • The RNN-LSTM model outperformed both FNN-Sigmoid and FNN-Tanh across all experimental conditions, especially in handling noisy and variable input patterns.
  • The use of raw sensor sequences as input with end-to-end learning reduced dependency on manual feature engineering, simplifying the attack pipeline.
  • The model trained on touchlogging data generalized well to keylogging, achieving 87.4% accuracy in cross-task inference, indicating shared motion patterns across input types.
  • Pre-processing techniques such as Kalman filtering and median filtering significantly improved signal quality and contributed to higher classification accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.