Electromyographic typing gesture classification dataset for neurotechnological human-machine interfaces

Jonathan Eby, Moshe Beutel, David Koivisto, Idan Achituve, Ethan Fetaya, José ZariffaScientific 2025

Abstract

Neurotechnological interfaces have the potential to create new forms of human-machine interactions, by allowing devices to interact directly with neurological signals instead of via intermediates such as keystrokes. Surface electromyography (sEMG) has been used extensively in myoelectric control systems, which use bioelectric activity recorded from muscles during contractions to classify actions. This technology has been used primarily for rehabilitation applications. In order to support the development of myoelectric interfaces for a broader range of human-machine interactions, we present an sEMG dataset obtained during key presses in a typing task. This fine-grained classification dataset consists of 16-channel bilateral sEMG recordings and key logs, collected from 19 individuals in two sessions on different days. We report baseline results on intra-session, inter-session and inter-subject evaluations. Our baseline results show that within-session accuracy is relatively high, even with simple learning models. However, the results on between-session and between-participant are much lower, showing that generalizing between sessions and individuals is an open challenge.

Introduction

Most existing surface electromyography (sEMG) datasets for human-machine interfaces (HMIs) focus on coarse movements, such as opening a hand or grasping an object, primarily for prosthetic control. However, as interaction paradigms shift toward immersive virtual, augmented, and mixed reality (VR/AR/MR) environments, there is a growing need for higher-throughput communication channels—such as typing—that do not require physical peripherals.

The "typing problem" is significantly more complex than traditional gesture recognition. Movements are subtle and rapid, involving 27 distinct classes (26 letters and a spacebar) with high signal similarity. Furthermore, many current datasets exhibit a "ceiling effect" where models reach near-perfect accuracy, making it difficult to distinguish algorithmic improvements. This study introduces a more difficult, real-world benchmark to push the boundaries of neurotechnological interfaces.

Methods

The experimental setup utilized a 16-channel bilateral configuration, with 8 bipolar electrode pairs per forearm, to record muscle activity at a sampling rate of 2 kHz.

Bilateral 16-channel electrode placement used for recording muscle activity during typing tasks.

To ensure data integrity, a custom synchronization method aligned keylogger timestamps with sEMG signals by matching "spike trains" (distinct patterns from spacebar taps) using a Gaussian filter and peak detection. For baseline classification, a Support Vector Machine (SVM) with a radial basis function (RBF) kernel was employed. An exhaustive "feature sweep" was conducted to identify the optimal combination of time-domain features, such as Root Mean Square (RMS) and Waveform Length (WL). Additionally, the study explored Federated Learning (FL) frameworks (FedAvg, FedPer, and pFedGP) to evaluate the feasibility of training global models while preserving user privacy.

Dataset Description

The presented dataset is publicly available and comprises:

  • Participants: 19 uninjured individuals.
  • Scope: Two separate sessions conducted on different days for each participant.
  • Classes: 27 distinct classes (26 lowercase letters + spacebar).
  • Context: Unlike established datasets such as NinaPro (prosthetics) or the Myo armband (consumer-grade), this dataset is specifically designed for fine-grained, high-difficulty classification tasks.

Results and Analysis

The evaluation revealed a significant performance gap between intra-session and cross-session/subject scenarios.

Intra-session classification accuracy for various feature sets, highlighting the performance of optimized custom sets.

Intra-session Performance

Using the optimized feature set, the SVM achieved a high intra-session accuracy of 87.4 ± 2.5%. The analysis indicated that excluding the "spacebar" class improved overall accuracy, likely because spacebar movements were less controlled than specific letter-key movements. Furthermore, while longer data windows (up to 0.8s) improved accuracy, a 0.2s window was identified as the "sweet spot" for real-time applications, balancing accuracy with the low latency required for fluid typing (60-80 WPM).

The Generalization Challenge

A striking finding was the "Session-as-Subject" phenomenon: accuracy plummeted to 13.66 ± 1.71% for inter-session (Day 1 to Day 2) and 15.24 ± 5.08% for inter-subject evaluations. This suggests that current sEMG features perceive a new session from the same user as being as unique as a session from a different individual. While Federated Learning provided a privacy-preserving alternative, its intra-session results (maxing at 74.49% with pFedGP) still lagged behind the single-user SVM, indicating a need for neural network architectures better suited to noisy biological data.

Discussion and Future Work

The primary limitation of this dataset is its focus on isolated keypresses rather than continuous, natural typing. In real-world scenarios, hand positioning and co-articulation (the influence of preceding and succeeding letters) would significantly alter muscle signals.

Future research should prioritize feature disentanglement to identify muscle signal characteristics that remain stable across different days and individuals. Overcoming this transferability hurdle is essential for developing reliable, "plug-and-play" EMG-based typing interfaces for immersive computing.

Summary updated

BibTeX
@inproceedings{eby2025electromyographic,
  author = {Jonathan Eby and Moshe Beutel and David Koivisto and Idan Achituve and Ethan Fetaya and José Zariffa},
  title = {{Electromyographic typing gesture classification dataset for neurotechnological human-machine interfaces}},
  booktitle = {Scientific},
  year = {2025},
  doi = {10.1038/s41597-025-04763-w},
}
Figure