Enhancing IMU-Based Online Handwriting Recognition via Contrastive Learning With Zero Inference Overhead
MCML Authors
Abstract
Abstract
Online handwriting recognition from inertial measurement units enables handwriting on paper as input for digital devices. Running recognition on edge hardware improves privacy and lowers latency, but entails memory constraints. To address this, we propose Error-Aware Contrastive-Enhanced Handwriting Recognition (ECHWR), a training-time contrastive learning framework designed to improve recognition accuracy without increasing inference costs. During training, ECHWR utilizes a temporary auxiliary branch that aligns IMU signal embeddings with semantic text embeddings in a shared space. This is enforced with a dual objective: (i) an in-batch contrastive loss that aligns IMU and text embeddings, and (ii) a hard-negative contrastive loss that uses synthetically perturbed text targets. The auxiliary branch is discarded after training, which allows the deployed model to keep its original, efficient architecture. Experiments on the OnHW-Words500 dataset show that ECHWR significantly outperforms state-of-the-art baselines, reducing character error rates by up to 7.4% on the writer-independent split and 10.4% on the writer-dependent split. Ablations indicate that the hard-negative objective is particularly effective for generalization to unseen writing styles, making our approach well-suited for online handwriting recognition on unseen users.
inproceedings LZC+26
ICDAR 2026
20th International Conference on Document Analysis and Recognition. Vienna, Austria, Aug 30-Sep 04, 2026.Authors
J. Li • D. Zanca • V. Christlein • T. Hamann • J. Barth • P. Kämpf • B. M. EskofierLinks
DOI GitHubIn Collaboration
STABILO
Research Area
BibTeXKey: LZC+26