Detecting Domain Shifts in Myoelectric Activations: Challenges and Opportunities in Stream Learning

Yibin Sun, Nick Jin Sean Lim, Guilherme Weigert Cassales, Heitor Murilo Gomes, Bernhard Pfahringer, Albert Bifet, Anany Dwivedi

TL;DR

This paper tackles the challenge of "domain shifts" in EMG signals, which degrade the performance of muscle-controlled devices. By applying stream learning techniques, they investigate how to detect these shifts in real-time, finding that current methods struggle with the inherent variability of EMG data, highlighting a need for more robust and specialized detectors.

What Problem Does This Paper Address?

Electromyography (EMG) signals are crucial for controlling prosthetic limbs, human-computer interfaces, and rehabilitation systems. However, these signals are notoriously "non-stationary," meaning they change over time due to factors like electrode placement, muscle fatigue, and skin impedance. These changes are called "domain shifts," and they can significantly degrade the accuracy of EMG-based decoding models. Imagine your prosthetic hand suddenly becoming less responsive or making incorrect movements – that's the problem domain shifts cause. This paper focuses on detecting these shifts in real-time, a critical step towards building more reliable and user-friendly EMG-controlled devices that can adapt to these natural variations without constant recalibration.

Methods

The researchers employ a data stream (DS) learning approach, which is designed to handle continuously arriving data without needing to store it all. They define "domains" as distinct segments of EMG data, characterized by different subjects, recording sessions, and times of day.

Key techniques include:

  • Kernel Principal Component Analysis (KPCA) with a cosine kernel: This is used for preprocessing and dimensionality reduction. KPCA helps to highlight the underlying structure and variations in the EMG data, making it easier to visualize and detect shifts. The cosine kernel specifically focuses on the angular relationships between signal patterns.
  • Drift Detection Methods: They evaluate several established algorithms for detecting changes in data streams, including:
  • CUSUM (Cumulative Sum): Detects shifts in the mean of the data.
  • GMA (Geometric Moving Average): Tracks changes with more weight on recent observations.
  • Page-Hinckley (PH) test: Identifies gradual deviations.
  • DDM (Drift Detection Method): Monitors the online error rate of a model.
  • ADWIN (Adaptive Windowing): Uses a dynamic window to detect changes.
  • HDDMA/HDDMw (Hoeffding's Bounds Drift Detection Methods): Statistically monitor the mean using confidence intervals.
  • SEED (Stream-based Efficient and Effective Drift): A lightweight, high-speed detector.
  • ABCD (Adaptive Bernstein Change Detector): Incorporates variance-sensitive bounds.

Datasets

The primary dataset used is the Ninapro DB6 database. This dataset is described as containing EMG data from 5 days with 2 time slots per day per subject, allowing for the definition of distinct "domains" based on subject, day, and time.

Key Insights and Ideas

  • EMG signals are inherently "noisy" and variable: Even when performing the same gesture, variations across subjects and time periods are significant, creating distinct "domains" that challenge standard machine learning models.
  • KPCA with a cosine kernel is effective for visualization: This technique can clearly separate data from different subjects or time periods in a lower-dimensional space, visually demonstrating the presence of domain shifts.
  • Current drift detectors struggle with EMG data: Despite evaluating a range of established stream learning drift detectors, the paper finds that they generally perform poorly in accurately identifying domain shifts in EMG signals, often resulting in high false positive rates.
  • Inter-subject variability is a major factor: Different individuals activate muscles differently, leading to distinct patterns that contribute to domain shifts and require specialized handling.
  • The "unsupervised" nature of EMG is a challenge: Since labels are not readily available for every moment of data, detecting shifts without explicit ground truth is a significant hurdle.

Key Results

  • Poor performance of existing drift detectors: The study found that most evaluated drift detection algorithms exhibited low F1 scores, indicating a poor ability to correctly identify domain shifts. The best performers, HDDMA and HDDMW, still achieved maximum F1 scores of only 0.409 and 0.378, respectively, which are far from ideal.
  • Acceptable detection delay (ADD): While the accuracy (F1 score) was low, the time it took for detectors to respond to changes (ADD) was generally within an acceptable range. This suggests that detectors can sense changes but struggle to distinguish true shifts from noise or transient fluctuations.
  • Visual evidence of domain shifts: Figures 1 and 2 clearly show distinct clusters of data points representing different subjects and time periods, visually confirming the presence of domain shifts.

Limitations and Future Work

  • Limitations of current detectors: The paper explicitly states that current drift detection methods are insufficient for reliably identifying domain shifts in EMG data, necessitating significant improvements. The high false positive rate is a major concern.
  • Future Research Directions:
    • Incremental non-linear decomposition models: Developing real-time versions of models like Kernel PCA to adapt without heavy computational costs.
  • Specialized EMG drift detectors: Creating detectors tailored to the unique challenges of non-stationary EMG signals to reduce false positives.
  • Multimodal sensing: Combining EMG with other data sources (e.g., accelerometers, grasp force sensors) to improve accuracy and robustness.
  • Incremental wavelet-based techniques: Using wavelets to highlight inter-domain differences while smoothing intra-domain variations.
  • Real-time recalibration: Developing methods to automatically recalibrate decoding models when domain shifts are detected, ensuring continuous adaptation.

Summary updated

BibTeX
@misc{sun2025detecting,
  author = {Yibin Sun and Nick Jin Sean Lim and Guilherme Weigert Cassales and Heitor Murilo Gomes and Bernhard Pfahringer and Albert Bifet and Anany Dwivedi},
  title = {{Detecting Domain Shifts in Myoelectric Activations: Challenges and Opportunities in Stream Learning}},
  year = {2025},
  eprint = {2508.21278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.21278},
}
Figure