Deep Learning for Enhanced Scratch Input

Aman Bhargava, Alice X. Zhou, Adam Carnaffan, Steve MannarXiv 2021

Introduction

The concept of "scratch input" transforms everyday surfaces—wooden tables, fabric, or plastic—into interactive touch interfaces by capturing acoustic vibrations. While the potential for Natural User Interfaces (NUIs) is vast, early implementations were hindered by the need for specialized hardware and a lack of robustness in noisy environments. This paper presents a deep learning-based approach that leverages commodity smartphone microphones and Convolutional Neural Networks (CNNs) to achieve high-accuracy gesture recognition.

System overview showing the transformation of a physical gesture into a control signal.

Methodology

The proposed system treats acoustic gesture recognition as an image classification task. The pipeline consists of three primary stages: acoustic capture, feature extraction, and classification.

Acoustic Capture and Feature Extraction

Unlike previous systems requiring contact microphones, this method uses built-in mobile device microphones. The raw audio signals are converted into Mel-spectrograms. This transformation is critical; by using a logarithmic frequency scale, the system ensures that changes in surface material (which shift the pitch) result in vertical translations of the pattern rather than structural distortions. This property significantly enhances the model's ability to generalize across different acoustic environments.

The deep learning pipeline: converting raw audio waveforms to Mel-spectrograms for CNN classification.

CNN Architecture

The classifier is a CNN featuring two convolutional layers with 3x3 kernels, followed by two fully connected layers. The architecture incorporates standard deep learning optimizations, including ReLU activation functions, max pooling, and batch normalization to ensure stable training and high performance.

Experimental Setup

The researchers curated a dataset of 8,640 audio clips from 24 participants. The data spanned various mobile devices (iOS and Android) and surfaces. Six gesture classes were defined: Fingertip Tap, Fingernail Tap, Vertical Scratch, Circle Scratch, W-Scratch, and a "Silence" class representing ambient background noise. All clips were processed using a 0.75-second window, with padding used to maintain temporal consistency for shorter gestures.

Results

The CNN-based system achieved a testing accuracy of 95.8%. This represents a 60% reduction in error rates compared to the 89.5% accuracy reported in landmark studies using specialized hardware. The model demonstrated exceptional separability, with Area Under the ROC Curve (AUC) values exceeding 0.99 for all gesture classes. Notably, the inclusion of a "Silence" class allows the system to remain "always-on" by effectively ignoring environmental noise like typing or conversation.

Discussion and Limitations

While the system is highly effective, a "calibration gap" was observed: accuracy dropped to 76% when testing on entirely new subjects or surfaces without prior training data. This indicates that a brief user-specific calibration phase is currently necessary. Additionally, the fixed 0.75-second processing window occasionally truncates longer gestures, such as complex circular scratches.

Future research will focus on utilizing Transfer Learning to minimize calibration requirements and exploring Recurrent Neural Networks (RNNs) or LSTMs to accommodate gestures of varying temporal lengths.

Summary updated

BibTeX
@misc{bhargava2021deep,
  author = {Aman Bhargava and Alice X. Zhou and Adam Carnaffan and Steve Mann},
  title = {{Deep Learning for Enhanced Scratch Input}},
  year = {2021},
  eprint = {2111.15053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.15053},
}
Figure