Translating Mental Imaginations into Characters with Codebooks and Dynamics-Enhanced Decoding

Jingyuan Li, Yansen Wang, Nie Lin, Dongsheng LiICASSP 2024 · DOI

Abstract: Advancements in non-invasive electroencephalogram (EEG)-based Brain-Computer Interface (BCI) technology have enabled communication through brain activity, offering significant potential for individuals with motor impairments. Existing methods for decoding characters or words from EEG recordings either rely on continuous external stimulation for high decoding accuracy or depend on direct intention imagination, which suffers from reduced discrimination ability. To overcome these limitations, we introduce a novel EEG paradigm based on mental tasks that achieves high discrimination accuracy without external stimulation. Specifically, we propose a codebook in which each letter or number is associated with a unique code that integrates three mental tasks, interleaved with eye-open and eye-closed states. This approach allows individuals to internally reference characters without external stimuli while maintaining reasonable accuracy. For enhanced decoding performance, we apply a Temporal-Spatial-Latent-Dynamics (TSLD) network to capture latent dynamics of spatiotemporal EEG signals. Experimental results demonstrate the effectiveness of our proposed EEG paradigm which achieves five times higher accuracy over direct imagination. Additionally, the TSLD network improves baseline methods by approximately 8.5%. Further more, we observe consistent performance improvement throughout the data collection process, suggesting that the proposed paradigm has potential for further optimization with continued use.

Introduction

Non-invasive Brain-Computer Interfaces (BCIs) utilizing EEG signals are critical for restoring communication in individuals with severe motor impairments. However, current BCI systems often force a choice between usability and accuracy. Stimulus-dependent systems (e.g., P300 or SSVEP) offer high accuracy but require users to focus on external visual stimuli like flickering lights, which is fatiguing and restricts environmental flexibility. Conversely, stimulus-independent systems—where users directly imagine characters—are more natural but suffer from poor signal discriminability. The brain activity for "imagining A" is often indistinguishable from "imagining B" in raw EEG data.

This research bridges the gap by introducing a mental-task-based imagination paradigm. By using distinct mental activities as proxies for characters, the system achieves high accuracy without requiring external visual stimulation.

Methodology

The Mental-Task Codebook

The core innovation is a "codebook" where each character (A-Z, 0-9) is mapped to a unique sequence of three mental tasks. These tasks are selected from four categories known to activate distinct brain regions:

  • Motor Imagery (MI): Imagining movement of the feet or tongue.
  • Visual Imagery (VI): Imagining a specific visual target (e.g., the letter 'A').
  • Arithmetic Computation (AC): Performing mental multiplication (e.g., 67 * 56).

To facilitate signal segmentation, these tasks are interleaved with specific eye states (Eye Open/Eye Closed), which provide clear physiological markers in the EEG data.

The eye state timeline and character coding strategy using mental tasks.

The TSLD Network

To decode these complex sequences, the researchers developed the Temporal-Spatial-Latent-Dynamics (TSLD) network. This deep learning architecture processes EEG data through three specialized stages:

  1. Temporal Filtering: Extracts frequency-specific features from raw brainwaves.
  2. Spatial Integration: Learns to weight different EEG channels based on their relevance to the specific mental task.
  3. Latent Dynamics: Employs a Recurrent Neural Network (RNN/GRU) to model how brain activity evolves over the duration of the task.

Key Results

The proposed paradigm and model were tested on a dataset of three subjects across six sessions. The results highlight three major breakthroughs:

  • Accuracy: The mental-task paradigm achieved five times higher accuracy than direct character imagination.
  • Model Performance: The TSLD network outperformed standard BCI models like EEGNet and ShallowConvNet by approximately 8.5% in Top-1 accuracy.
  • Decoding Stability: Qualitative analysis shows that the TSLD model produces stable, coherent predictions that align closely with ground truth (GT), whereas direct imagination decoding is often erratic and noisy.
Qualitative comparison of decoding stability between direct imagination and the proposed mental-task-based paradigm.

Discussion and Future Work

An important finding was the "practice effect": decoding accuracy improved as subjects progressed through the six sessions. This suggests that using the codebook is a learned skill, and performance may continue to optimize with long-term use.

However, challenges remain for real-world deployment. The current "typing" speed is slow, as each character requires 21 seconds of mental effort (three 7-second stages). Additionally, the cognitive load of performing mental math for every letter is high. Future research will focus on shortening task durations and identifying more intuitive mental tasks to improve the user experience while maintaining high discriminability.

Summary updated

BibTeX
@inproceedings{li2024translating,
  author = {Jingyuan Li and Yansen Wang and Nie Lin and Dongsheng Li},
  title = {{Translating Mental Imaginations into Characters with Codebooks and Dynamics-Enhanced Decoding}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.48550/arxiv.2409.16816},
}
Figure