Manuscript Offprint

arXiv:2610.23419

mmPencil: Toward Writing-Style-Independent In-Air Handwriting Recognition via mmWave Radar and Large Vision-Language Model

Yifan Guo, Zhu Wang, Qian Qin, Yangqian Lei, Qiwen Gan, Zhuo Sun, Chao Chen, Bin Guo, Zhiwen Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

YIFAN GUO, Northwestern Polytechnical University, China

ZHU WANG*, Northwestern Polytechnical University, China

QIAN QIN, Northwestern Polytechnical University, China

YANGQIAN LEI, Northwestern Polytechnical University, China

QIWEN GAN, Northwestern Polytechnical University, China

ZHUO SUN, Northwestern Polytechnical University, China

CHAO CHEN, Chongqing University, China

BIN GUO, Northwestern Polytechnical University, China

ZHIWEN YU, Northwestern Polytechnical University, China and Harbin Engineering University, China

With the rapid advancement of wireless technologies, in-air handwriting recognition based on radio frequency (RF) signals emerges as a promising solution for human-computer interaction. However, existing methods often constrain writing gestures to predefined planes, impose strict requirements on writing order and direction, and limit recognition tasks to a small set of digits or letters. To overcome these limitations, we propose m2VLMsm^{2}VLMs, a modality mapping architecture, which serves as a bridge between the millimeter-wave (mmWave) radar sensing technologies and large vision-language models (VLMs). Based on the proposed architecture, a three-dimensional (3D) in-air handwriting word recognition system named mmPencil is developed. Specifically, we design a multi-stage spatial trajectory reconstruction algorithm that extracts frequency-domain features to identify handwriting regions and achieve high-precision reconstruction of 3D word trajectories. Furthermore, we introduce a novel spatial-to-visual mapping algorithm, which bridges the gap between spatial trajectory information captured by mmWave radar and vision-language representations, providing a foundation for cross-modality understanding in the large vision-language model. As a result, mmPencil tackles the limitations of current solutions that are heavily reliant on handwriting styles and environmental factors, expanding RF-based in-air handwriting recognition to more complex word-level scenarios.

We collect and release a 3D mmWave handwriting dataset comprising 200 distinct words (ranging from 2 to 9 letters), contributions from 12 users, and 22 different writing scenarios, totaling 7,664 samples with an overall size of 31.66 GB. Extensive experiments demonstrate that mmPencil achieves accurate and robust word recognition in real-world scenarios, remaining unaffected by variations in word categories, length, as well as writing position, range, angle, speed, size, direction,

∗^{*}Corresponding author

Authors' Contact Information: Yifan Guo, Northwestern Polytechnical University, Xi'an, Shaanxi, China, guoyf@mail.nwpu.edu.cn; Zhu Wang, Northwestern Polytechnical University, Xi'an, Shaanxi, China, wangzhu@nwpu.edu.cn; Qian Qin, Northwestern Polytechnical University, Xi'an, Shaanxi, China, qianqin@mail.nwpu.edu.cn; Yangqian Lei, Northwestern Polytechnical University, Xi'an, Shaanxi, China, leiyangqian@mail.nwpu.edu.cn; Qiwen Gan, Northwestern Polytechnical University, Xi'an, Shaanxi, China, ganqw@mail.nwpu.edu.cn; Zhuo Sun, Northwestern Polytechnical University, Xi'an, Shaanxi, China, zsun@nwpu.edu.cn; Chao Chen, Chongqing University, Chongqing, China, cschaochen@cqu.edu.cn; Bin Guo, Northwestern Polytechnical University, Xi'an, Shaanxi, China, guob@nwpu.edu.cn; Zhiwen Yu, Northwestern Polytechnical University, Xi'an, Shaanxi, China and Harbin Engineering University, Harbin, Heilongjiang, China, zhiwenyu@nwpu.edu.cn.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2025 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM 2474-9567/2025/9-ART81

https://doi.org/10.1145/3749504

Proc. ACM Interact. Mob. Wearable Ubiquitous Technol., Vol. 9, No. 3, Article 81. Publication date: September 2025.

81:2

Guo et al.

and user movement. Specifically, for 4 seen users, mmPencil achieves a recognition accuracy of approximately 97.60% across 200 word classes. Moreover, benefiting from the generalization capability of VLMs, the zero-shot recognition accuracy for 4 unseen users can also reach 92.50% across 50 word classes using training data from only 8 users, which outperforming state-of-the-art baselines.

CCS Concepts: • Human-centered computing → Ubiquitous and mobile computing systems and tools.

Additional Key Words and Phrases: wireless sensing, mmWave radar, in-air handwriting, large vision-language model

ACM Reference Format:

Yifan Guo, Zhu Wang, Qian Qin, Yangqian Lei, Qiwen Gan, Zhuo Sun, Chao Chen, Bin Guo, and Zhiwen Yu. 2025. mmPencil: Toward Writing-Style-Independent In-Air Handwriting Recognition via mmWave Radar and Large Vision-Language Model. Proc. ACM Interact. Mob. Wearable Ubiquitous Technol. 9, 3, Article 81 (September 2025), 30 pages. https://doi.org/10.1145/3749504

1 Introduction

With the rapid development of information technology, human-computer interaction (HCI) has become increasingly important in fields such as smart devices [25], industrial internet of things (IoT) [24], and assistive technologies [31]. Traditional interaction methods rely on input devices like touchscreens, mice, and keyboards. However, these methods perform poorly on devices with limited screen sizes (e.g., smartwatches) or without dedicated input interfaces, and they are not always user-friendly for specific groups such as the elderly and people with disabilities. As a result, innovative interaction technologies, such as in-air writing recognition[1], voice input [7, 17], and visual gesture recognition [27], have garnered growing attention. However, voice and visual-based methods can leak sensitive personal information, such as voice tone, conversation content, or facial features, posing privacy risks. In contrast, in-air writing recognition based on radio frequency (RF) signals offers the advantages of non-contact and privacy protection, which allows the user to write in the air across various scenarios. It overcomes many limitations of traditional approaches and has become an ideal choice for achieving natural human-computer interaction.

Unlike common non-interactive sensing tasks such as vital signs monitoring [30, 33, 42, 60], material detection [5, 40, 41, 43], and human activity recognition [3, 37, 56], in-air writing recognition is a more fine-grained sensing task. By analyzing reflected signals from the target, it decipher handwriting content and provides richer semantic information. In-air writing recognition has been extensively studied in the literature. Early approaches utilized acoustic devices [9, 10, 38, 58] to extract distinctive acoustic patterns related to writing trajectories, enabling the classification of letters or words. However, this line of methods is highly susceptible to environmental noise. Solutions based on RF signals commonly utilize Wi-Fi channel state information (CSI) [14, 28, 51, 61] to detect fine finger movements by leveraging detailed subcarrier information. However, Wi-Fi signals are highly affected by severe multipath effects and have limited sensing resolution. Similarly, RFID-based approaches [36] require a large number of tag arrays, which makes them difficult to deploy in real-world scenarios. In contrast, mmWave radar has recently gained widespread attention for its rich sensing capabilities, including range, angle, and velocity, along with its high resolution. Beyond in-air writing recognition, it has demonstrated outstanding performance in applications such as heartbeat monitoring [4, 65, 66], vibration detection [18, 57], and facial recognition [53, 55, 63].

To extract handwriting trajectory information, existing radar-based studies can be roughly divided into two categories, i.e., the model-driven method and the data-driven method. Model-driven methods construct physical models [20, 29] between the signals and the handwriting trajectory to perform handwriting tracking and recognition. This line of studies, while eliminating the need for pre-training on collected data, struggle to handle characters written in non-predefined orders and are heavily reliant on specific scenarios. On the contrary, data-driven methods transform RF signals into trajectories or spectrograms and build classifiers based on long

Proc. ACM Interact. Mob. Wearable Ubiquitous Technol., Vol. 9, No. 3, Article 81. Publication date: September 2025.

81:3

short-term memory (LSTM) or convolution neural network (CNN) [1, 6, 45]. Nevertheless, systems based on data-driven methods rely heavily on large-scale and high-quality training datasets. However, RF signals are highly susceptible to interference from factors such as writing position, direction, and individual writing habits. The scarcity and low quality of the RF sensing data, along with the diversity of handwriting content, greatly limit the development of RF-based in-air handwriting recognition.

Recently, foundation models (FMs), represented by large language models (LLMs) and large vision-language models (VLMs), have demonstrated unique capabilities in processing sensing data from the physical world, offering new opportunities for in-air writing recognition. For instance, the Tent system [70] integrates IoT sensor signals with text embeddings to enable zero-shot human activity recognition, while Penetrative AI [54] connects LLMs with the physical world, empowering them to process and interpret sensory data. Similarly, the FM-Fi system [48] introduces an innovative cross-modal system to transfer knowledge from vision-FMs, which facilitates human activity recognition based on RF signals. However, the powerful capabilities emerging from FMs such as VLMs have not yet been applied to in-air writing recognition.

Although there has been work on enhancing wireless sensing using LLMs or VLMs, achieving writing-style-independent in-air handwriting recognition via the mmWave radar and the large vision-language model is still a non-trivial issue, due to the following three major challenges. First, realistic in-air writing usually occurs in 3D space, making it difficult to accurately reconstruct writing trajectories from composite RF signals, even with a mmWave radar featuring a 4GHz bandwidth and an antenna array. Second, the reflected signals of handwriting movements depend on not only the word being written, but also factors such as writing position, direction, and order, resulting in significant variability even within samples of the same word. Third, the RF data differs significantly from the text and image data, which inherently possess abundant semantic information. This disparity restricts the efficacy of VLMs when directly handling RF signals.

To address the aforementioned challenges, we develop a system named mmPencil, which is a pioneering effort in harnessing the powerful generalization capability of VLMs to achieve writing-style-independent recognition of in-air handwriting words. Specifically, a modality mapping architecture is proposed to bridge the mmWave data and VLMs, which consists of four components: data collection, trajectory reconstruction, data mapping, and instruction fine-tuning. First, we collect and release a 3D mmWave in-air handwriting word dataset. Afterwards, an environment-robust multi-stage spatial trajectory reconstruction algorithm is designed, which effectively mitigates the interference caused by variations in handwriting positions. In particular, by exploring the range-azimuth and range-elevation profiles refined through spectral refinement, we accurately capture the spatial trajectory of handwriting movements at each moment. Outlier removal is performed on the obtained trajectory sequence, followed by smoothing using a 3D Kalman filter. Next, we design a spatial-to-visual mapping algorithm to achieve handwriting recognition independent of writing styles, such as direction and order. Through direction-corrected Principal Component Analysis (PCA), we map the 3D trajectories into 2D images while preserving the shape features of the handwriting words. This mapping algorithm bridges the gap between wireless signals and visual images, enabling VLMs to intuitively interpret and process RF signals. Finally, we put forward an instruction fine-tuning approach to improve handwriting word recognition. A clear prompt is designed to guide the model in extracting word from image, while strictly limiting the output format.

To sum up, the main contributions of this study are as follows:

• We propose a modality mapping architecture, m2VLMsm^{2}VLMs, which serves as a bridge between mmWave data and VLMs, facilitating the transfer of the generalization capability of VLMs to RF sensing applications. To foster further exploration in this emerging field, we collect and release a 3D mmWave in-air handwriting dataset 1^{1} containing 7,664 samples of 200 different words, 12 users, and 22 writing scenarios. To the best of our knowledge, this is the first attempt to apply VLMs for RF-based handwriting recognition.

1^{1}www.kaggle.com/datasets/mmpencil/mmpencil-dataset

Proc. ACM Interact. Mob. Wearable Ubiquitous Technol., Vol. 9, No. 3, Article 81. Publication date: September 2025.

81:4

Guo et al.

  • We design a trajectory reconstruction algorithm for 3D spatial handwriting movements, which effectively eliminates the influence of writing position on handwriting trajectories by extracting multidimensional spectral features.

  • We design a spatial-to-visual mapping algorithm that converts mmWave data into image data, effectively eliminating the interference of writing style related factors (e.g., the speed and direction) by leveraging the powerful generalization capability of VLMs.

  • We develop a prototype handwriting recognition system named mmPencil based on COTS mmWave radar and leading VLMs. Extensive experiments in real-world scenarios demonstrate that mmPencil achieves accurate and robust word-level handwriting recognition, unaffected by varying writing styles and environmental factors. In particular, the recognition accuracy for 200 words stands at 97.60%97.60\%, with the zero-shot recognition accuracy remaining as high as 92.50%92.50\% for unseen users during training.

The rest of this paper is organized as follows. We present the related work in §2, followed by an introduction to the preliminaries in §3. The detailed design of the m2m^2VLMs architecture is given in §4. The technical details of trajectory reconstruction and data mapping are then presented in §5 and §6, respectively. Finally, we evaluate the performance of mmPencil in §7, followed by discussion and conclusion in §8 and §9.