English

OverHear: Headphone based Multi-sensor Keystroke Inference

Cryptography and Security 2023-11-07 v1 Human-Computer Interaction Sound Audio and Speech Processing

Abstract

Headphones, traditionally limited to audio playback, have evolved to integrate sensors like high-definition microphones and accelerometers. While these advancements enhance user experience, they also introduce potential eavesdropping vulnerabilities, with keystroke inference being our concern in this work. To validate this threat, we developed OverHear, a keystroke inference framework that leverages both acoustic and accelerometer data from headphones. The accelerometer data, while not sufficiently detailed for individual keystroke identification, aids in clustering key presses by hand position. Concurrently, the acoustic data undergoes analysis to extract Mel Frequency Cepstral Coefficients (MFCC), aiding in distinguishing between different keystrokes. These features feed into machine learning models for keystroke prediction, with results further refined via dictionary-based word prediction methods. In our experimental setup, we tested various keyboard types under different environmental conditions. We were able to achieve top-5 key prediction accuracy of around 80% for mechanical keyboards and around 60% for membrane keyboards with top-100 word prediction accuracies over 70% for all keyboard types. The results highlight the effectiveness and limitations of our approach in the context of real-world scenarios.

Keywords

Cite

@article{arxiv.2311.02288,
  title  = {OverHear: Headphone based Multi-sensor Keystroke Inference},
  author = {Raveen Wijewickrama and Maryam Abbasihafshejani and Anindya Maiti and Murtuza Jadliwala},
  journal= {arXiv preprint arXiv:2311.02288},
  year   = {2023}
}
R2 v1 2026-06-28T13:11:22.706Z