Overview
This research presents a novel framework for real-time Brain-Computer Interface (BCI) classification by leveraging "coresets" to summarize streaming EEG data. By compressing high-dimensional neural signals into a small, fixed-size mathematical representation, the system enables the computationally intensive Common Spatial Pattern (CSP) algorithm to operate in real-time without sacrificing accuracy. This approach facilitates continuous, on-the-fly learning, significantly reducing the memory and compute overhead typically associated with BCI systems.
The Computational Bottleneck in BCI
Modern BCIs often utilize motor imagery paradigms, where a user's imagined movements (e.g., left vs. right hand) are translated into control signals. The gold standard for feature extraction in these systems is the Common Spatial Pattern (CSP) algorithm. However, CSP is traditionally a batch-processing method.
In a streaming environment, the number of time samples ($t$) grows rapidly. To update a model with new data, traditional CSP must recompute covariance matrices over the entire historical dataset. This leads to a time complexity of $O(d^2(t_1+t_2+d))$ and memory complexity of $O(d(t_1+t_2))$, where $d$ is the number of channels. As $t$ increases, these requirements become unsustainable for real-time applications on portable hardware, often forcing a trade-off between model adaptability and computational feasibility.
Methodology: Streaming Coresets
The authors address this bottleneck by introducing coresets—a technique from computational geometry designed to approximate large datasets with a much smaller subset of points. For a $d$-channel EEG system, the algorithm maintains a coreset by compressing streaming time samples into a fixed $d \times d$ matrix using Singular Value Decomposition (SVD).
The Merge-and-Reduce Framework
To handle continuous data streams efficiently, the system employs a "merge-and-reduce" tree structure. When new samples arrive, they are concatenated to the existing coreset, processed via SVD, and reduced back to the fixed $d \times d$ dimensions. This hierarchical structure allows for parallel processing and the implementation of sliding windows to prioritize recent data.
Once the coreset is updated, the standard CSP algorithm is applied directly to this compressed representation rather than the raw signal. Finally, Linear Discriminant Analysis (LDA) is used to classify the resulting features.
Performance and Complexity
The primary advantage of the coreset approach is the decoupling of computational cost from the duration of the recording. By using SVD to maintain the coreset, the update cost becomes independent of the total number of samples processed.
As shown in the complexity analysis, the Coreset CSP reduces time and space requirements to $O(d^2)$, effectively making them constant relative to time. This mathematical equivalence ensures that the spatial filters extracted from the coreset are virtually identical to those from the full batch data, preserving the signal's discriminative power.
Empirical Results and Impact
The system was evaluated using the Physionet EEG Motor Movement/Imagery Dataset, involving 109 participants. The Coreset CSP + LDA pipeline achieved an average accuracy of 74.9%, slightly outperforming the traditional batch CSP's 72.9%.
More importantly, empirical testing demonstrated that while traditional CSP's resource consumption scales linearly to unmanageable levels, the coreset method maintains a flat, near-zero constant line for both time and memory. This efficiency enables true real-time neurofeedback, allowing both the user and the machine to adapt to each other simultaneously, which could significantly shorten BCI training phases.
Conclusion and Future Work
By applying coresets to EEG classification, this work removes a major barrier to portable, adaptive BCI systems. The ability to run high-quality training and inference on low-power edge hardware opens new possibilities for mobile neurotechnology. Future research will focus on extending this coreset framework to other machine learning algorithms beyond CSP to further broaden the scope of real-time neural signal processing.
Summary updated