AirScript - Creating Documents in Air

Ayushman Dash, Amit Sahu, Rajveer Shringi, John Cristian Borges Gamboa, Muhammad Zeshan Afzal, Muhammad Imran Malik, Sheraz Ahmed, Andreas Dengel

Abstract

AirScript is a novel framework that enables users to "write" in mid-air using a wearable Myo-armband, providing both real-time visual feedback and high-accuracy digit recognition. By fusing a custom 2D visualization algorithm (2-DifViz) with a multi-modal deep learning architecture (HDRA) comprising CNNs and GRUs, the system achieves up to 96.7% accuracy. Crucially, it operates without requiring a camera or a physical writing surface, overcoming common environmental constraints in gesture-based interaction.

Introduction

Traditional digital document creation is tethered to physical surfaces like keyboards, touchscreens, or paper. While "air-writing" offers a liberating alternative for smart environments—such as factories, hospitals, or classrooms—existing solutions face two major hurdles. First, most sensor-based systems lack real-time feedback, making the interaction feel unnatural as users cannot see their "ink." Second, vision-based systems (e.g., Leap Motion or Kinect) require a clear line-of-sight and are limited by the camera's field of view.

The AirScript system provides real-time visual feedback of air-written digits on a digital canvas.

AirScript addresses these challenges by creating a "surface-free" and "camera-free" system that maintains high recognition accuracy while providing a natural writing experience through a real-time digital canvas.

Methods

The AirScript system is divided into two main phases: Visualization (2-DifViz) and Recognition (HDRA).

1. The 2-DifViz Algorithm

To provide visual feedback, the authors developed the 2-DifViz algorithm. This component processes raw data from the Myo-armband’s Inertial Measurement Unit (IMU) to generate 2D coordinates. It utilizes quaternions to rotate the arm's local angular velocity into a global "world frame of reference," ensuring orientation independence. By extracting pitch and yaw while ignoring roll, the system maps 3D movement onto a 2D Cartesian plane. Finally, scaling and interpolation are applied to ensure the resulting digital "ink" is smooth and readable.

2. The Fusion Recognition Module (HDRA)

Instead of relying on a single model, AirScript employs a "committee" of three deep learning architectures to predict the written digit:

  • CNN (Spatial): A Convolutional Neural Network (CaffeNet) trained on the 2D images generated by 2-DifViz.
  • GRU-NET-1 (Processed Temporal): A Bidirectional Gated Recurrent Unit (BGRU) network that analyzes the sequence of x,y coordinates.
  • GRU-NET-2 (Raw Temporal): Another BGRU that processes standardized raw IMU signals directly.
The multi-modal recognition architecture fuses spatial (CNN) and temporal (GRU) models for robust classification.

The final prediction is determined using Borda Count fusion, which combines the ranked outputs of all three models to reach a robust consensus.

Datasets

The researchers collected a custom dataset involving 12 right-handed users writing digits 0 through 9 in the air. The dataset contains 1,270 total samples, capturing raw IMU (accelerometer, gyroscope, magnetometer) and EMG (electromyography) signals. The primary recognition models focus on the IMU data to maintain system efficiency.

Key Results and Insights

AirScript significantly outperformed traditional machine learning baselines such as Hidden Markov Models (HMM), K-Nearest Neighbors (KNN), and Support Vector Machines (SVM).

  • Person-Dependent Evaluation: The system achieved 96.7% accuracy when the model was fine-tuned to a specific user's writing style.
  • Person-Independent Evaluation: The system maintained a high 91.7% accuracy when tested on users the model had never encountered during training. In contrast, a standard HMM only achieved 15.8% accuracy in this scenario.

The success of the system stems from its multi-modal approach. Spatial data (the shape of the digit) and temporal data (the motion over time) provide complementary information. For instance, while a CNN might confuse a "6" and an "8" due to their similar visual loops, a GRU can distinguish them based on the unique sequence of the hand's path. Furthermore, fusing these models significantly lowered the standard deviation of results, making the system more stable across different users.

Limitations and Future Work

While the current proof-of-concept is highly effective for digits (0-9), expanding the vocabulary to include the full alphabet and special characters is a necessary next step. Additionally, the current system recognizes characters in isolation. Integrating a Language Model to predict words based on character sequences would drastically improve real-world usability. Future research will also explore "Sequence to Sequence" models and Connectionist Temporal Classification (CTC) to handle continuous handwriting rather than discrete characters.

Summary updated

BibTeX
@inproceedings{dash2017airscript,
  author = {Ayushman Dash and Amit Sahu and Rajveer Shringi and John Cristian Borges Gamboa and Muhammad Zeshan Afzal and Muhammad Imran Malik and Sheraz Ahmed and Andreas Dengel},
  title = {{AirScript - Creating Documents in Air}},
  booktitle = {ICDAR},
  year = {2017},
  url = {https://openreview.net/forum?id=L_HoxjhU83E},
}
Figure