Learning to recognize touch gestures: recurrent vs. convolutional features and dynamic sampling

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

Abstract

We propose a fully automatic method for learning gestures on big touch devices in a potentially multi-user context. The goal is to learn general models capable of adapting to different gestures, user styles, and hardware variations (e.g., device sizes, sampling frequencies, and regularities). Based on deep neural networks, our method features a novel dynamic sampling and temporal normalization component, transforming variable-length gestures into fixed-length representations while preserving finger/surface contact transitions—the topology of the signal. This sequential representation is then processed with a convolutional model capable of learning hierarchical representations with different levels of abstraction. To demonstrate the interest of the proposed method, we introduce a new touch gestures dataset with 6,591 gestures performed by 27 people. We also tested our method on the standard MMG dataset, outperforming the state of the art and reporting close to perfect performance.

Introduction

Recognizing multi-touch interactions—such as pinching, rotating, or multi-finger tapping—presents significant challenges for machine learning. Touch data is inherently "messy" due to variable gesture lengths, hardware inconsistencies in sampling frequency, and the arbitrary assignment of "Finger IDs" by touch controllers. Furthermore, missing a single "finger up" event (a state transition) can fundamentally change the classification of a gesture, such as turning a double-tap into a long press.

High-level pipeline of the proposed gesture recognition framework.

Traditional approaches often rely on Recurrent Neural Networks (RNNs) to handle sequential data. However, RNNs can struggle to learn hierarchical abstractions and are often difficult to train on long sequences. This paper proposes a framework that favors 2D Convolutional Neural Networks (CNNs) combined with a novel "transition-preserving" dynamic sampling method.

Proposed Method

Transition-Preserving Dynamic Sampling

Instead of sampling touch data at uniform time intervals, which risks missing fast transitions, the authors developed a greedy algorithm. It first identifies all "state transitions" (when a finger touches or leaves the screen). It then iteratively adds points in the largest remaining time gaps until the sequence reaches a fixed length ($K=10$). This ensures that critical topological changes in the gesture are preserved regardless of the gesture's duration.

Detailed view of (a) gesture input, (b) contact matrix representation, and (c) the dynamic sampling process.

CNN Architecture for Sequences

The touch data is structured into a 3D tensor: Finger ID × Time × Coordinates (x, y). By treating this representation as an image, a 2D CNN can learn hierarchical features, capturing short-term local finger movements and aggregating them into long-range patterns. To address the "Unordered Input" problem where Finger IDs are arbitrary, the model uses data augmentation by shuffling Finger IDs during training to ensure permutation invariance.

Experimental Results

The method was evaluated on two primary datasets:

  1. Itekube-7 (New): A publicly available dataset containing 6,591 gestures across seven interaction classes (Press Tap, Scale, Twist, Rotation, etc.).
  2. MMG (Mixed Multistroke Gestures): A standard benchmark for symbolic gestures.

Key Findings

  • Superior Accuracy: On the Itekube-7 dataset, the proposed CNN reached 89.96% accuracy, significantly outperforming a standard LSTM (73.10%) and a 2D-LSTM (87.72%).
  • State-of-the-Art Performance: The method achieved 99.38% accuracy on the MMG dataset, surpassing the previous state-of-the-art of 98.0%.
  • Efficiency: Inference takes only 1.5ms on a GPU and 5ms on a standard laptop CPU, making it highly suitable for real-time interactive applications.

Conclusion

The study demonstrates that CNNs are better suited than RNNs for creating hierarchical representations of touch gestures. The novel dynamic sampling method acts as a vital temporal normalization that keeps the "topology" of the gesture intact. While current work focuses on pre-segmented gestures, future research will address the challenge of continuous segmentation in multi-user contexts on large touch surfaces.

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