MarkovType: A Markov Decision Process Strategy for Non-Invasive Brain-Computer Interfaces Typing Systems

Elifnur Sunger, Yunus Bicer, Deniz Erdogmus, Tales Imbiriba

Abstract

Brain-Computer Interface (BCI) typing systems, particularly those based on Rapid Serial Visual Presentation (RSVP), often struggle with low accuracy and slow information transfer rates due to the noisy nature of EEG signals. Traditional methods treat symbol classification as a series of independent events, failing to optimize the recursive nature of the typing process. This paper introduces MarkovType, a framework that reformulates RSVP typing as a Partially Observable Markov Decision Process (POMDP). By integrating feature extraction, recursive state maintenance, and policy-based decision-making, MarkovType learns to optimize classification over multiple sequences. Experimental results on a large-scale RSVP benchmark demonstrate that MarkovType achieves an accuracy of approximately 87% and an information transfer rate of 0.763, significantly outperforming state-of-the-art recursive Bayesian baselines.

Introduction

For individuals with severe motor impairments, such as those with ALS or locked-in syndrome, BCI systems provide a critical communication channel. RSVP systems utilize the P300 event-related potential (ERP) component to identify target symbols. However, current systems typically use a two-step approach: binary classification followed by a separate Bayesian update. This decoupling prevents the model from learning the optimal strategy for the entire interaction loop. MarkovType addresses this by training the model on the full sequence of interactions, allowing it to manage the trade-off between speed and accuracy dynamically.

Methodology

MarkovType models the typing task as a POMDP where the hidden state is the target symbol, actions are the selection of symbol queries, and observations are the resulting noisy EEG signals. The architecture consists of three primary components:

  1. Feature Extractor ($f_e$): A 1D-Convolutional Neural Network (CNN) that processes multi-channel EEG data to pull relevant neural patterns.
  2. Core Network ($f_h$): A recursive unit that maintains a hidden state $h_n$, effectively remembering information across sequences within a single trial.
  3. Policy/Classification Network ($f_c$): This component outputs symbol probabilities and determines the next query to present to the user.
The MarkovType architecture integrates a simulator, feature extractor, and recursive core network to process EEG signals sequentially.

The model is trained using the REINFORCE policy gradient algorithm combined with a hybrid supervised loss. A key innovation is the use of a discount factor $d(n)$ to weight rewards. The authors found that a $1/n^2$ discount factor effectively balances the need for speed with the requirement for high confidence, helping the model reach high accuracy without waiting for the maximum number of sequences every time.

Results

The system was evaluated on a large, publicly available RSVP benchmark dataset containing over 1 million stimulus presentations from 64 subjects. MarkovType achieved a substantial performance gain over the Recursive Bayesian (RB) baseline. While the 2D-CNN Bayesian baseline reached only ~49% accuracy, MarkovType achieved ~87%.

Distribution of sequences for MarkovType using a 1/n^2 discount factor, showing high accuracy concentrated between the 3rd and 5th sequences.

Analysis of the decision distribution reveals that MarkovType avoids the premature, incorrect decisions common in traditional Bayesian methods. Instead, it "waits" for sufficient evidence, typically concluding a trial with high accuracy between the 4th and 6th sequences. This behavior results in a superior Information Transfer Rate (ITR) of 0.763 bits per sequence, compared to 0.537 for the best baseline.

Conclusion

MarkovType represents a significant shift in BCI design by treating typing as a sequential decision-making problem. By breaking the independence assumption of traditional methods and training on the entire interaction loop, it achieves state-of-the-art performance in both accuracy and efficiency. Future work will focus on real-time user-in-the-loop testing and optimizing the neural architecture for deployment on low-power medical devices.

Summary updated

BibTeX
@inproceedings{sunger2025markovtype,
  author = {Elifnur Sunger and Yunus Bicer and Deniz Erdogmus and Tales Imbiriba},
  title = {{MarkovType: A Markov Decision Process Strategy for Non-Invasive Brain-Computer Interfaces Typing Systems}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i27.35064},
}
Figure