TL;DR
Surface electromyography (sEMG) allows intuitive gesture control for human-computer interaction, but real-world signals are notoriously susceptible to noise, electrode shifts, and subtle inter-gesture ambiguities. This paper introduces the Short-Term Enhanced Transformer (STET), which couples a global attention branch with a sliding-window Short-Term Enhancement Module (STEM) alongside a sensor-wise masked pre-training strategy. The approach boosts classification accuracy to 90.76% on the GRABMyo dataset, improves noise resilience by over 20%, and runs in real time under 50 ms latency.
What Problem Does This Paper Address?
Surface electromyography measures electrical activity from muscle contractions, providing an intention signal 50–150 ms before physical movement occurs. While promising for AR/VR and prosthetics, real-world deployment faces two major roadblocks:
- Low Signal-to-Noise Ratio (SNR) and Interference: Ambient thermal noise, sweat, channel instability, and electrode displacement create heavy additive, multiplicative, or packet-loss noise.
- Short-Scale Ambiguity: Conventional temporal models (e.g., standard Transformers, RNNs) treat sEMG as generic time series and prioritize long-range dependencies. However, fine-grained gestures—such as distinguishing an Index Finger Extension from a Middle Finger Extension—share nearly identical global profiles and can only be separated via localized, transient signal variations.
Methods
The proposed framework, STET, rethinks sEMG sequence processing through three key components:
Raw sEMG ──► [Sensor-Wise Masked Pre-training (EIPC)]
│
Shared Encoder
├──► Long-Term Decoder (Global Self-Attention) ──┐
└──► STEM Decoder (Sliding-Window Attention) ──┴─► Concat + 1D Conv ──► ASL Loss / Output
- sEMG Intrinsic Pattern Capture (EIPC) via Sensor-Wise Masking: Instead of masking arbitrary time steps across all channels (like BERT), the authors mask contiguous temporal segments on individual sensor channels. Segment lengths are drawn from a geometric distribution (average length of 3 timesteps; masking ratio $r=0.15$), forcing the network to infer localized channel outages from neighboring electrodes rather than interpolating from adjacent time points.
- Short-Term Enhancement Module (STEM): A decoupled decoding path that applies sliding-window self-attention (window sizes 41 and 21) using an
Unfoldoperation. Unlike patch-based partitioning, sliding-window attention maintains smooth boundary transitions and bounds noise propagation to local windows. - Dual-Branch Fusion & Asymmetric Loss (ASL): Features from the long-term (global) decoder and short-term decoder run in parallel, are concatenated, and are fused using a 1D convolution. The network is optimized with Asymmetric Loss (a generalized Focal Loss) to address class imbalance and emphasize hard-to-classify samples.
Datasets
The authors evaluated STET on two standard open-source benchmarks:
- GRABMyo: The largest public wrist sEMG dataset (43 subjects, 16 electrode channels, 17 distinct hand/wrist gestures). Used for gesture classification.
- Ninapro DB2: Standard benchmark used to evaluate continuous 10-joint finger angle regression.
- Online Evaluation Benchmark: The authors also built a real-time testbed interfacing 4 wrist electrode pairs (2000 Hz via Wi-Fi) with an Unreal Engine 5 virtual hand for an 8-subject user study.
Key Insights and Ideas
- Global and Local Features are Complementary: 2D t-SNE projections revealed that global attention easily separates macro-movements (e.g., wrist flexion vs. finger extension) but confuses similar finger actions. In contrast, STEM reliably separates fine finger postures. Fusing both cleanly clarifies the decision boundary.
- Local Attention Confines Noise: When thermal noise or channel drops occur, global attention spreads erroneous values across the entire sequence length. A sliding window acts as an inductive firewall, containing noise artifacts to narrow temporal segments.
- Physiologically Grounded Masking Beats Random Masking: Because sEMG sampling rates (~2000 Hz) drastically exceed muscle activation frequency bounds (20–500 Hz), adjacent time-samples are highly correlated. Continuous, channel-specific segment masks prevent trivial temporal interpolation during pre-training.
Key Results
- Classification Superiority: On GRABMyo, STET achieved 90.76% overall accuracy, outperforming Informer (87.71%), LST-EMG-Net (85.31%), and baseline Transformers (80.43%). Rest gesture accuracy jumped from 83.56% (Informer) to 95.33%.
- Noise Resilience: Under additive Gaussian noise, multiplicative noise, and random signal loss, STET reduced model performance drop rates by more than 20% compared to baseline architectures. Adding STEM to Informer reduced signal-loss accuracy drop from 26% to 17%.
- Continuous Kinematic Regression: On Ninapro DB2 joint angle prediction, STET attained the highest Pearson Correlation Coefficient (PCC = 0.877) and lowest normalized RMSE (NRMSE = 0.073) against LSTM, TCN, and BERT baselines.
- Efficiency and Latency: Weight sharing kept STEM's parameter overhead to just 1.7% over the backbone. End-to-end inference completed in 3.9 ms on GPU (17.6 ms on CPU), facilitating an online streaming latency below 50 ms in virtual reality trials. In blinded user preference testing, 7 of 8 participants favored STET.
Limitations and Future Work
- User-Dependent Training: Models were evaluated in participant-dependent setups; the authors did not evaluate zero-shot transfer across unseen subjects or cross-day electrode re-placement.
- Heuristic Window Tuning: Sliding window sizes (41, 21) were identified via empirical search. The authors note the need to collaborate with biomechanists to connect window sizes directly to physiological muscle contraction dynamics.
Summary updated