A Novel RL-Assisted Deep Learning Framework for Task-Informative Signals Selection and Classification for Spontaneous BCIs

Wonjun Ko, Eunjin Jeon, Heung-Il Suk

TL;DR

This paper introduces a novel reinforcement learning (RL) framework that helps Brain-Computer Interfaces (BCIs) intelligently select the most informative segments of EEG data within a trial. By using an RL agent to dynamically identify and discard irrelevant or noisy signal portions, the method significantly improves motor imagery classification accuracy, especially for spontaneous BCIs where signal quality can be inconsistent.

What Problem Does This Paper Address?

Brain-Computer Interfaces (BCIs) aim to translate brain activity into commands for external devices. Non-invasive BCIs, particularly those using Electroencephalography (EEG), often struggle with the inherent noisiness and variability of brain signals. Motor Imagery (MI) BCIs, which rely on users imagining movements, are especially susceptible to this problem. EEG trials can contain not only the desired MI-related signals but also a significant amount of irrelevant or artifactual information. Traditional deep learning approaches often process the entire EEG trial, which can dilute the signal of interest and lead to suboptimal performance. This paper addresses the challenge of effectively identifying and utilizing only the task-relevant temporal segments within an EEG trial to enhance the accuracy of MI classification.

Methods

The core innovation is an RL-assisted framework that dynamically selects task-informative signal segments within an EEG trial. This framework consists of three main modules:

  1. Embedding Network: This module takes the raw EEG trial as input and transforms it into a sequence of feature vectors. The authors note that this can be any existing deep learning architecture (e.g., ShallowNet, EEGNet, MSNN) and is pre-trained for feature representation.
  2. Agent Module (Actor-Critic RL): This is the novel component. An actor-critic RL agent is trained to make sequential decisions about whether to select or reject each feature vector over time.
  3. State: The state is defined by the aggregated feature vectors selected up to the previous time point, along with the current feature vector.
  4. Action: The agent can either select (1) or reject (0) the current feature vector.
  5. Reward: The reward function is designed to encourage the selection of segments that lead to improved classification accuracy. It measures the relative improvement in classification loss compared to using the global average pooling of all features.
  6. Environment: The environment is essentially the EEG trial itself, providing states and rewards based on the agent's actions.
  7. Classification Module: A classifier (e.g., a dense layer) takes the aggregated selected feature vectors and makes the final MI classification decision.

The entire framework is trained end-to-end, with the embedding and classification modules initially pre-trained using supervised learning, and then the RL agent is trained to optimize signal selection.

Datasets

The authors utilized the KU-MI dataset, a publicly available dataset for motor imagery tasks. This dataset includes EEG recordings from 54 healthy subjects, with left-hand and right-hand MI tasks recorded across two sessions. Each MI class contains 50 trials, each 4 seconds long. The data was preprocessed by downsampling to 100Hz, band-pass filtering between 8-30Hz, and segmenting from 1 to 3.5 seconds, using 20 electrodes from sensory-motor cortex areas.

Key Insights and Ideas

  • Signal Selectivity is Crucial: The paper strongly suggests that not all parts of an EEG trial are equally informative for MI classification. Simply using all available data can be detrimental.
  • RL for Dynamic Feature Selection: Applying reinforcement learning to dynamically select temporal segments within a trial is a novel approach for BCI signal processing. This allows the system to adapt to the varying quality and relevance of signals in real-time.
  • Unsupervised Signal Relevance: The RL agent learns to identify "task-relevant" signals without explicit labels for each timepoint, which is a significant advantage given the inherent difficulty of labeling specific moments within a spontaneous EEG trial.
  • Modular Integration: The proposed RL module is designed to be modular, allowing it to be easily integrated with various existing deep learning architectures for feature extraction and classification, thereby enhancing their performance.
  • Improved Performance Across Models: The RL-assisted approach consistently improved the performance of different deep learning models, demonstrating its general applicability.

Key Results

  • Subject-Dependent Performance: The proposed method, when combined with the MSNN architecture, achieved the highest mean accuracy (77.26%) among all tested methods. This represents a significant improvement over the original MSNN (74.39%).
  • Subject-Independent Performance: In subject-independent scenarios, the MSNN + AM combination also achieved the highest mean accuracy (75.24%), outperforming the original MSNN (73.96%) by 1.28%.
  • Statistical Significance: Statistical analysis (Wilcoxon's signed-rank test) confirmed that the proposed agent module significantly improved classification accuracy for several deep learning models (Shallow ConvNet, EEGNet, MSNN) with p-values < 0.05 or < 0.01.
  • Qualitative Analysis: Spectrograms and topographic maps showed that the segments selected by the agent exhibited clearer and more localized ERD/ERS patterns, corresponding to neurophysiological signatures of MI, compared to segments selected randomly or the entire trial.

Limitations and Future Work

  • Real-time Application: The authors acknowledge that the current agent module operates on a sequence of feature vectors derived from a preceding embedding module. They suggest that improving the agent's suitability for real-time BCIs is a crucial area for future research. This implies that the current implementation might have latency issues or require further optimization for immediate response.
  • Agent's Neurophysiological Knowledge: The agent learns to find informative segments without explicit neurophysiological guidance, which is impressive. However, exploring ways to incorporate or guide this learning with some prior neurophysiological knowledge could potentially lead to even more efficient and robust signal selection.

Summary updated

BibTeX
@article{ko2022novel,
  author = {Wonjun Ko and Eunjin Jeon and Heung-Il Suk},
  title = {{A Novel RL-Assisted Deep Learning Framework for Task-Informative Signals Selection and Classification for Spontaneous BCIs}},
  journal = {IEEE Trans. Industrial Informatics},
  year = {2022},
  doi = {10.1109/tii.2020.3044310},
}
Figure