ImAiR: Airwriting Recognition Framework Using Image Representation of IMU Signals

Ayush Tripathi, Arnab Kumar Mondal, Lalan Kumar, Prathosh ApIEEE Sensors Letters 2022

TL;DR

This paper introduces ImAiR, a novel framework for airwriting recognition using wrist-worn IMU sensors. By transforming time-series sensor data into images, they leverage powerful pre-trained 2D Convolutional Neural Networks (CNNs) for improved letter recognition, achieving state-of-the-art results on public datasets.

What Problem Does This Paper Address?

Airwriting, the act of writing letters in free space, offers a promising, touch-free input method for Human-Computer Interaction (HCI). While various approaches exist, recognizing airwriting solely from wrist-worn Inertial Measurement Units (IMUs) presents a significant challenge. This is because the IMU is located on the wrist, while the actual writing motion is primarily generated by the palm and fingers, leading to a disconnect. Existing methods often rely on user-specific models or struggle with the inherent noise and complexity of these signals. This paper aims to bridge this gap by developing a user-independent framework that effectively captures the subtle movements for accurate airwriting recognition.

Methods

The core innovation of ImAiR lies in its image-based representation of IMU data. Instead of directly processing the raw time-series signals from the 3-axis accelerometer and gyroscope, the authors convert these signals into images. They explore several image encoding techniques:

  • Self-Similarity Matrix (SSM): Represents the similarity between different points in the time-series.
  • Gramian Angular Field (GAF): Encodes time-series data into polar coordinates, preserving temporal relationships.
  • Markov Transition Field (MTF): Captures the probabilistic transitions between different states of the time-series.

These techniques generate two sets of 3-channel images, one for accelerometer data and one for gyroscope data. These images are then fed into two separate 2D-CNN classification models. The final letter prediction is made by averaging the class probabilities from both models, aiming to combine the strengths of each sensor. The authors leverage well-established image classification architectures like ResNet, DenseNet, VGGNet, AlexNet, and GoogleNet, initializing them with weights pre-trained on ImageNet to benefit from transfer learning.

Datasets

The proposed ImAiR framework was evaluated on two publicly available datasets:

  • Dataset-1: Collected from 55 subjects writing English uppercase letters (15 repetitions each) using a Microsoft Band 2 at 62 Hz.
  • Dataset-2: Comprised of recordings from 20 subjects writing English uppercase alphabets (10 repetitions each) using a Noraxon Ultium EMG sensor with an internal IMU. The original 200 Hz sampling rate was downsampled to 62 Hz.

Key Insights and Ideas

  • Image Representation for Time-Series: Transforming time-series IMU data into images is a powerful way to leverage the success of 2D-CNNs, which are highly effective for image recognition tasks. This approach allows for the extraction of complex spatial patterns that might be missed by traditional time-series models.
  • Sensor Fusion via Averaging Probabilities: Combining predictions from separate classifiers trained on accelerometer and gyroscope data by averaging their posterior probabilities is an effective way to fuse information from different sensors, leading to more robust recognition.
  • Transfer Learning is Key: Utilizing pre-trained CNN models (e.g., from ImageNet) significantly boosts performance, especially when dealing with limited airwriting datasets. This highlights the value of transfer learning in specialized domains.
  • Image Encoding Matters: Different image encoding techniques (SSM, GAF, MTF) yield varying performance. The paper demonstrates that GADF (Gramian Angular Difference Field, a variant of GAF) combined with DenseNet161 achieved the best results, suggesting that the choice of encoding is crucial for capturing relevant temporal dynamics.

Key Results

  • The ImAiR framework achieved state-of-the-art accuracy on Dataset-1, reaching 88.66% using the GADF image encoding and DenseNet161 classifier in a leave-one-subject-out (LOSO) cross-validation setting.
  • On Dataset-2, the framework achieved 85.36% accuracy, which is comparable to existing state-of-the-art methods.
  • The DenseNet161 architecture consistently provided the best performance across various image encoding techniques.
  • The GADF image encoding method generally outperformed SSM, MTF, and GASF across different classifiers.

Limitations and Future Work

  • Dataset Size: The authors note that the relatively small sample size of Dataset-2 might have limited the model's ability to learn complex attributes, potentially explaining the dip in accuracy compared to Dataset-1.
  • Future Work: The authors suggest exploring techniques better suited for learning from smaller datasets to enhance the utility of airwriting recognition for HCI applications. Further research could also focus on optimizing image encoding methods and exploring more advanced fusion strategies.

Summary updated

BibTeX
@misc{tripathi2022imair,
  author = {Ayush Tripathi and Arnab Kumar Mondal and Lalan Kumar and Prathosh AP},
  title = {{ImAiR: Airwriting Recognition Framework Using Image Representation of IMU Signals}},
  year = {2022},
  eprint = {2205.01904},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.01904},
}
Figure