Deep-Spying: Spying using Smartwatch and Deep Learning

Tony Beltramelli, Sebastian RisiarXiv 2015

Abstract

This paper investigates the security vulnerabilities of wearable devices, specifically focusing on how motion sensors in smartwatches can be exploited to infer keystrokes. By employing Long Short-Term Memory (LSTM) networks, the research demonstrates that an attacker can bypass the need for manual feature engineering to recover PINs and passwords from both touchscreens and physical keypads. The study achieves up to 73% accuracy in touchlogging scenarios, highlighting a significant privacy risk posed by "non-sensitive" sensor data.

Introduction

Wearable technology has integrated sophisticated motion sensors, such as accelerometers and gyroscopes, into the daily lives of millions. Currently, most mobile operating systems categorize this motion data as "non-sensitive," allowing applications to access it without explicit user consent. While previous research has demonstrated that these sensors can be used to infer typing, those methods typically relied on "shallow" machine learning models. Such models required human experts to manually identify and extract specific signal features, such as peak-to-average power ratios or geometric metrics.

This paper introduces "Deep-Spying," a method that utilizes Deep Learning—specifically Recurrent Neural Networks (RNNs)—to automate the feature extraction process. This approach makes side-channel attacks more practical, robust against environmental noise, and easier for malicious actors to deploy across various device types.

Methodology

The author developed a comprehensive Deep-Spying pipeline based on a client-server architecture.

Data Collection and Pre-processing

Data was captured using a Sony SmartWatch 3. The raw accelerometer and gyroscope data were relayed via Bluetooth to an Android smartphone, which subsequently uploaded the information to a central server. To handle the inherent noise of wearable data, the system employed a multi-stage cleaning pipeline:

  1. Calibration: To remove the constant effect of gravity.
  2. Filtering: Median filters for initial smoothing, followed by Butterworth filters (low-pass for gyroscopes and high-pass for accelerometers).
  3. Refinement: Kalman filters were used to further smooth the signal for the neural network.

The Deep Learning Architecture

The core of the system is a Recurrent Neural Network (RNN) utilizing Long Short-Term Memory (LSTM) units. Unlike standard feedforward networks, LSTMs are designed to process sequences of data. This allows the model to "remember" the trajectory of a wrist movement over time, learning to map raw sensor segments directly to specific keys (0-9, *, #) without requiring human-defined signal characteristics.

Experimental Setup

The study utilized a newly collected empirical dataset involving seven participants (aged 23–30). Each participant entered 240 keystrokes, providing 20 instances for each of the 12 keys. Data was collected across two distinct interfaces:

  • Touchlogging: Typing on an iPhone 4S touchscreen.
  • Keylogging: Typing on a custom-built, Arduino-based physical 12-key keypad designed to simulate an ATM interface.

Initial benchmarking determined that a six-dimensional vector, combining all axes of both the accelerometer and gyroscope, provided the most effective sensor fusion for the model.

Key Results and Insights

Performance Metrics

The LSTM model demonstrated high efficacy in both test scenarios:

  • Touchlogging Accuracy: The model reached a maximum accuracy of 73% when identifying keys on a smartphone.
  • Keylogging Accuracy: The model achieved 59% accuracy on the physical ATM-style keypad.

Automation and Reliability

A significant insight from the study is that LSTMs can achieve above-average accuracy even with raw, unprocessed data. This eliminates the need for the complex, non-trivial pre-processing pipelines required by earlier attack methods. Furthermore, the LSTM demonstrated high reliability scores based on entropy, indicating that the model was making confident, correct predictions rather than random guesses.

Cross-Device Transferability

In a particularly concerning experiment, the author trained the model on touchscreen data and tested it on the physical keypad. The system still achieved 19% accuracy, which is more than double the 8.3% probability of a random guess. This suggests that an attacker could potentially train a "spy" app on a victim's own smartphone to later attack an unfamiliar interface, such as a building access code or an ATM.

Limitations and Defensive Measures

While the results are a compelling proof-of-concept, the study noted several limitations. The data was collected in a controlled environment where participants remained seated; real-world noise from walking or general arm movement was not addressed. Additionally, the sample size of seven participants is relatively small for universal generalization.

To defend against Deep-Spying, the paper suggests two primary measures:

  1. User Behavior: Wear the smartwatch on the non-dominant hand to disrupt the motion signal during typing.
  2. System Security: Mobile OS developers should implement permission systems for motion sensors, treating them with the same level of sensitivity as the microphone or GPS.

Future work may involve the use of Convolutional Neural Networks (CNNs) or optimized LSTMs to perform these attacks in real-time directly on the mobile device.

Summary updated

BibTeX
@misc{beltramelli2015deep,
  author = {Tony Beltramelli and Sebastian Risi},
  title = {{Deep-Spying: Spying using Smartwatch and Deep Learning}},
  year = {2015},
  eprint = {1512.05616},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1512.05616},
}
Figure