Learning to Recognize Touch Gestures: Recurrent vs. Convolutional Features and Dynamic Sampling

Quentin Debard, Christian Wolf, Stéphane Canu, Julien Arné

Abstract

Recognizing multi-touch gestures is challenging due to variable sequence lengths, hardware inconsistencies, and the inherent complexity of tracking multiple contact points. This paper presents a robust framework that utilizes a novel "transition-preserving" dynamic sampling method to convert variable-length touch data into fixed-length representations. By employing a Convolutional Neural Network (CNN) architecture rather than traditional Recurrent Neural Networks (RNNs), the proposed system achieves state-of-the-art performance on both symbolic and interaction-based gesture datasets.

Introduction

Touch interaction on large-scale devices involves "messy" data. Gestures vary significantly in duration—from a millisecond tap to a multi-second rotation. Furthermore, different hardware sensors provide varying sampling frequencies, and users perform the same gestures with unique spatial and temporal signatures. Traditional systems often rely on rigid, handcrafted rules that struggle with this variability. This research seeks to automate feature learning from raw touch data while maintaining robustness across different hardware and user styles.

Methodology

The proposed recognition pipeline consists of two primary stages: dynamic sampling and a convolutional classification model.

Overview of the multi-touch gesture recognition pipeline

Transition-Preserving Dynamic Sampling

Standard uniform downsampling often discards critical high-frequency events, such as a brief tap occurring during a longer movement. To address this, the authors developed a greedy dynamic sampling algorithm. This method prioritizes "state transitions"—moments when a finger first touches the screen or is lifted.

The dynamic sampling process preserving state transitions

As shown in the figure above, the algorithm first identifies these transitions ($t_1$ to $t_6$). It then iteratively adds additional sample points ($m_1, m_2, m_3$) in the largest remaining time intervals until a fixed length ($K=10$) is reached. This approach ensures that the "topology" of the signal is preserved regardless of the gesture's original duration.

The Convolutional Model

While RNNs like LSTMs are common for sequence modeling, the authors argue that CNNs are better suited for gesture recognition. CNNs can learn hierarchical representations, capturing short-term patterns in early layers and long-term dependencies in deeper layers. The input is structured as a 3D tensor: [Finger ID] × [Time] × [Coordinates (x, y)]. To ensure the model is invariant to the specific hardware-assigned finger IDs, the training process includes data augmentation where finger IDs are shuffled.

Experimental Results

The framework was evaluated on two datasets:

  1. Itekube-7: A new dataset of 6,591 interaction gestures (e.g., Press Tap, Scale, Twist) from 27 participants.
  2. MMG (Mixed Multistroke Gestures): A benchmark for symbolic gestures (drawing shapes).

Key Findings

  • CNN Superiority: The CNN model outperformed the LSTM by nearly 17% on the Itekube-7 dataset, reaching 89.96% accuracy compared to the LSTM's 73.10%.
  • State-of-the-Art Performance: On the MMG dataset, the method achieved 99.38% accuracy, surpassing previous benchmarks.
  • Efficiency: The model is highly optimized for real-time use, processing a gesture in approximately 1.5ms on a GPU and 5ms on a standard laptop CPU.

Conclusion and Future Work

The combination of transition-preserving sampling and convolutional features provides a powerful solution for multi-touch gesture recognition. While the current model effectively classifies pre-segmented gestures, future research will focus on continuous gesture segmentation and early detection to enhance interface responsiveness. Additionally, incorporating velocity information—currently lost during non-uniform sampling—remains an area for potential improvement.

Summary updated

BibTeX
@inproceedings{debard2018learning,
  author = {Quentin Debard and Christian Wolf and Stéphane Canu and Julien Arné},
  title = {{Learning to Recognize Touch Gestures: Recurrent vs. Convolutional Features and Dynamic Sampling}},
  booktitle = {FG},
  year = {2018},
  url = {https://openreview.net/forum?id=pi-Tx6jOxw},
}
Figure