Comparative Analysis of Machine Learning Methods for Enhancing Intuitive Control of Upper-Limb Prosthetics
Decoding arm and hand movements from brain signals — and driving a robotic arm with the predictions.
- Role
- EEG model training & evaluation
- Timeline
- 2025 — 2026
- Status
- Completed April 2026
- Team
- Four-person capstone with Leo Branigan, Thomas Wilkinson and Ben Malcom · Supervised by Dr. Xian Wang
9-class accuracy · subject-dependent
Signal traces are illustrative; accuracies are the reported results.
Overview
What it is
Can brain and muscle signals give prosthetic users more intuitive control of an upper limb? Our capstone tested that by comparing published deep learning architectures for movement classification and regression, then wiring the predictions into a robotic arm.
I benchmarked three EEG models — EEGEncoder, MSCFormer and EEG-TCNet — on the same 11-class upper-limb task, under the same preprocessing and evaluation protocol.
Problem
Why it needed to exist
Conventional prosthetic control is often unintuitive. EEG signals carry information about intended movement, but they are noisy, high-dimensional and vary heavily between people.
The question for this work was which current architectures classify those signals best, and how far they are from being practical for real-time control.
Study design
Data, models and setup
Dataset
GigaScience EEG/EMG dataset: 25 healthy participants, three sessions each, 60-channel EEG, 7-channel EMG and 4-channel EOG, covering eleven upper-limb movements (reaching, grasping, wrist twisting) plus rest. Supplemented with locally collected EEG validation data.
Models compared (EEG)
EEGEncoder (dual-stream temporal-spatial transformer), MSCFormer (multi-scale convolutional transformer) and EEG-TCNet (temporal convolutional network).
Models compared (EMG, team)
Adaptive Transformer, multi-scale 1D CNN, ResNet-18 on spectrograms and a multi-head TCN-LSTM.
Robotic demonstration (team)
Predictions drove an Elephant Robotics myCobot 280 — a 6-DOF arm with an adaptive gripper — through ROS 2 over serial UART, alongside a digital twin.
Implementation
How it's built
- 01
Pipeline
PyTorch pipelines for EEG preprocessing, segmentation and tensor conversion, trained on NVIDIA A100 GPUs through Google Colab.
- 02
Evaluation protocol
Five-fold cross-validation for subject-dependent training, plus leave-one-subject-out evaluation for subject-independent generalization. Reported accuracy and F1 with standardized metrics, and compared parameter counts and compute cost.
- 03
Training techniques
Class weighting, focal loss, label smoothing, mixup augmentation and early stopping to handle class imbalance and limited per-subject data.
Architecture
System design
EEG + EMG
60-ch EEG · 7-ch EMG
Preprocessing
EEG signal cleanup
Segmentation
windows → tensors
Movement classification
EEGEncoder · MSCFormer · EEG-TCNet
Joint-angle regression
EMG models
ROS 2
serial UART
myCobot 280 + digital twin
Challenges
The hard parts
- 01
Subject-independent generalization
Models trained on some people and tested on another dropped sharply — 35.30% to 54.04% in the reported subject-independent experiment — compared with subject-dependent results.
- 02
Similar movements, similar signals
Closely related movement classes were frequently confused. Consolidating them from 11 to 9 classes improved accuracy for every model.
- 03
Imbalance and small data
Per-subject data is limited; class weighting, focal loss, label smoothing and mixup were used to stabilize training.
- 04
From benchmark to real time
Practical control needs low-latency inference, so model size and compute cost were evaluated alongside accuracy with edge deployment in mind.
Results
Outcomes
- 72.81%EEGEncoder, 11 classes (subject-dependent, subject 1)
- 76.43%EEGEncoder, 9 classes after consolidating similar movements
- 3EEG architectures benchmarked under one protocol
Classification accuracy
Subject-dependent evaluation, subject 1
EEG-TCNet
MSCFormer
EEGEncoder
Stack
Technology
- Python
- PyTorch
- Transformers
- TCNs
- CNNs
- LSTM
- Google Colab
- NVIDIA A100
- ROS 2
- Signal processing
Links
Explore further
Next project · 01
Rovelo AI
An AI agent that operates desktop software the way a person does.