TinyMyo: a Tiny Foundation Model for Flexible EMG Signal Processing at the Edge

Matteo Fasulo, Giusy Spacone, Thorir Mar Ingolfsson, Yawei Li, Luca Benini, Andrea CossettiniarXiv 2025 · DOI

Introduction

Foundation models (FMs) have fundamentally altered the landscape of natural language processing and computer vision. However, high-fidelity biosignals like Electromyography (EMG)—the electrical manifestations of muscle activity—have remained largely underserved by this paradigm. Existing EMG processing models are typically task-specific "one-trick ponies" and are often too computationally expensive for the low-power, wearable hardware required for real-time applications.

TinyMyo addresses these challenges. Developed by researchers at ETH Zurich and the University of Bologna, it is a lightweight, Transformer-based foundation model designed for flexible EMG signal processing at the extreme edge. With only 3.6 million parameters, TinyMyo generalizes across subjects, sensor layouts, and diverse tasks, marking a significant step toward ubiquitous, intelligent wearable devices.

The Challenge of Edge EMG Processing

Surface EMG (sEMG) is a critical modality for prosthetics, rehabilitation, and human-computer interaction. Despite its potential, three primary hurdles have limited its widespread adoption:

  1. Inter-subject Variability: Differences in anatomy and muscle activation patterns make it difficult for models to generalize across users.
  2. Acquisition Noise: Variations in electrode placement, skin impedance, and motion artifacts introduce significant distribution shifts.
  3. Hardware Constraints: High-performing deep learning models typically exceed the memory and power budgets of battery-powered embedded systems.

TinyMyo overcomes these by serving as a "unified backbone"—a single model that learns the fundamental "language" of muscle signals and can be efficiently adapted to various downstream tasks.

Methodology

The core of TinyMyo is a Transformer encoder architecture optimized for the edge. The framework consists of three main stages: pre-training, downstream adaptation, and deployment.

Overview of the TinyMyo framework, including pre-training via masked signal modeling, adaptation to downstream tasks, and deployment on edge hardware.

Architectural Innovations

  • Channel-Independent Patching: Unlike traditional approaches that treat multi-channel sensor grids as images, TinyMyo embeds each sensor channel independently. This design choice allows the model to handle varying electrode layouts and channel counts without requiring architectural changes.
  • Self-Supervised Pre-training: The model employs Masked Signal Modeling (MSM). During pre-training on large unlabeled datasets, 50% of the input signal patches are masked. The model must reconstruct these missing segments, forcing the encoder to learn robust, semantically rich representations of neuromuscular activity.
  • Rotary Position Embeddings (RoPE): To capture temporal dependencies without increasing the learnable parameter count, TinyMyo uses RoPE to inject positional information directly into the attention mechanisms.
  • Edge Deployment Strategy: To enable execution on the GAP9 microcontroller, the model utilizes INT8 quantization and a sophisticated "tiling" system. This system manages data movement between external L3 memory and on-chip L1/L2 memory, effectively bypassing the chip's 1.5MB RAM limitation.

Datasets and Evaluation

TinyMyo was pre-trained on a massive, heterogeneous collection of sEMG data, including the Ninapro DB6 and DB7 datasets (focused on hand/finger movements) and the large-scale EMG2Pose dataset (193 participants).

The model's versatility was evaluated across several downstream domains:

  • Hand Gesture Classification: Benchmarked on Ninapro DB5, EPN-612, and UCI-EMG.
  • Fine Motor Control: Tested using the Generic Neuromotor Interface (GNI) for discrete finger movements.
  • Kinematic Regression: Predicting joint angles using Ninapro DB8.
  • Silent Speech: Converting facial muscle movements into text or audio using the Gaddy dataset.

Key Results and Performance

TinyMyo demonstrates that foundation models do not need to be massive to be effective. While competing models like MOMENT utilize up to 350M parameters, TinyMyo achieves superior or comparable performance with just 3.6M parameters.

Performance comparison of TinyMyo against larger foundation models and state-of-the-art architectures across multiple EMG benchmarks.

Benchmark Superiority

As shown in the comparative analysis, TinyMyo achieves state-of-the-art (SoA) results across multiple benchmarks. Notably, it reaches 89.41% accuracy on Ninapro DB5 and 96.74% on EPN-612, outperforming significantly larger models like OTIS (45M parameters). Furthermore, pre-training provided a substantial "force multiplier" effect; fine-tuning the pre-trained backbone on Ninapro DB5 yielded a 7.5% accuracy improvement over training the same architecture from scratch.

Efficiency at the Edge

On the GAP9 MCU, TinyMyo completes an inference in 0.785 seconds with a power consumption of 57.18 mW (totaling 44.91 mJ per inference). In the GNI task, it achieved a 44% reduction in model size compared to previous SoA architectures while maintaining higher performance levels.

Discussion and Future Directions

While TinyMyo represents a breakthrough in edge-compatible foundation models, several areas for future research remain. The current pre-training data is primarily focused on upper-limb signals; expanding this to include lower-limb data would enhance generalization for gait analysis and lower-body rehabilitation. Additionally, while the model performs exceptionally well on laboratory data, its robustness against "in-the-wild" noise—such as sweat or electrode shift over multiple days—requires further validation.

Finally, while sub-second latency is impressive for a foundation model on a microcontroller, high-speed closed-loop control for prosthetics often requires latencies below 100ms. Future iterations may explore alternative architectures, such as State-Space Models (e.g., Mamba), to further drive down computational costs and latency.

Summary updated

BibTeX
@misc{fasulo2025tinymyo,
  author = {Matteo Fasulo and Giusy Spacone and Thorir Mar Ingolfsson and Yawei Li and Luca Benini and Andrea Cossettini},
  title = {{TinyMyo: a Tiny Foundation Model for Flexible EMG Signal Processing at the Edge}},
  year = {2025},
  eprint = {2512.15729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.15729},
}
Figure