Research internship

sEMG-Based Robotic Hand Control via Muscle Synergy Extraction

Unsupervised learning to compress multi-channel forearm EMG into a few signals that can drive a robotic hand.

Role
Research Intern, machine learning for human–robot interaction
When
Feb 2025 – Apr 2025
Where
Laboratory of Automation and Robotics, University of Bologna
Team
Supervisors: Prof. R. Meattini, A. Bernardini
Muscle Synergy Extraction
4decomposition methods compared
3grasp types (power, pinch, ulnar)
VAF · RMSEand Frobenius norm as quality metrics

How it works

  1. 01

    Load & normalise

    Pre-recorded forearm EMG for power, pinch and ulnar grasps.

  2. 02

    NMF / Sparse NMF

    Linear, non-negative synergies scored on VAF and Frobenius norm.

  3. 03

    Auto-tuning

    Cross-validation and multi-criteria scoring choose the synergy count and sparsity.

  4. 04

    Autoencoders

    Non-linear latent spaces as richer synergy representations.

  5. 05

    Benchmark

    PCA vs NMF vs Sparse NMF, RMSE against the number of synergies.

Why synergies

Controlling a robotic hand finger by finger from raw multi-channel EMG is hard: the signals are noisy, high-dimensional and redundant. Muscle synergies compress them into a few coordinated patterns that are easier to interpret and can act directly as control inputs.

This internship, at the Laboratory of Automation and Robotics of the University of Bologna, explored which unsupervised learning methods give the best low-dimensional representation of forearm EMG during grasping.

The idea: many EMG channels → a few hidden synergies → motion intent.
The idea: many EMG channels → a few hidden synergies → motion intent.

Development phases

  1. Classical and Sparse NMF: synergy extraction, evaluated with Variance Accounted For (VAF) and the Frobenius norm of the reconstruction error.
  2. Automatic optimisation: a cross-validation framework with multi-criteria scoring that picks the optimal number of synergies and the sparsity parameters without manual tuning.
  3. Autoencoders: non-linear dimensionality reduction for more expressive representations of muscle activity.
  4. Comparative study: PCA vs classical NMF vs Sparse NMF, using RMSE across different numbers of synergies.
Sparse NMF decomposition: input EMG (top), synergy weights per channel (middle), synergy activations over time (bottom).
Sparse NMF decomposition: input EMG (top), synergy weights per channel (middle), synergy activations over time (bottom).

Software

The code is organised into modules: configuration (YAML), analysis classes (NMF, PCA, autoencoder, data loading, error metrics), helper utilities and a test layer. This makes experiments reproducible and easy to extend, and the same building blocks became the starting point of my bachelor thesis.

Tools & techniques

  • Python
  • NMF
  • Sparse NMF
  • PCA
  • Autoencoders
  • Cross-validation