Figures
Abstract
Brain–computer interface (BCI) systems have advanced with deep learning, but they are still limited by designs tied to specific applications, poor scalability, weak portability, the need for user-specific adaptation, and privacy concerns. We present BELT, a modular Bayesian Edge–Cloud architecture based on three principles: (i) Bayesian priors and posteriors to balance generalization and subject-specific learning, (ii) lightweight classifiers suitable for embedded devices, and (iii) task-aware compression to reduce bandwidth and improve privacy in edge–cloud communication. To show feasibility, we implement BELT-lite as an instantiation of BELT, a lightweight version built only from linear time-invariant operations, making it directly compatible with digital signal processing hardware. Using the BCI Competition IV-2a and IV-2b motor imagery datasets (18 subjects total, ten-fold cross-validation), BELT-lite achieved strong posterior performance after subject-specific fine-tuning: mean accuracy of on Dataset B and
on Dataset A with data augmentation. After adaptation, four subjects from Dataset B and two from Dataset A exceeded 90% accuracy. On ARM Cortex-A7 hardware, BELT-lite achieved a mean latency of 6.75 ms per sample, significantly faster than EEGNet’s 8.36 ms (p < 10-17)—a 21% speed improvement—at the cost of a modest but statistically significant accuracy reduction of approximately 2.7 percentage points compared to EEGNet. Network Tuning Blocks allowed partial parameter freezing: classifier-only fine-tuning incurred a modest 2–5% accuracy drop while substantially reducing training cost. Compression via the task-unaware autoencoder reduced data size by
while maintaining high accuracy: prior-model performance stayed within
of the uncompressed baseline (with slight improvements in some configurations), full posterior fine-tuning showed a
drop, and classifier-only fine-tuning incurred a
drop—an acceptable trade-off for privacy-preserving edge–cloud communication, where only a compressed latent representation is transmitted instead of raw EEG. Notably, this task-unaware autoencoder (trained solely to reconstruct the input) consistently outperformed autoencoders that also incorporated classification objectives (task-aware or task-only), providing the best accuracy–compression trade-off across all fine-tuning scenarios. These findings show that BELT provides a principled design for modular and scalable BCIs, while BELT-lite demonstrates that the approach supports accurate, efficient, and portable implementations. Together, they point toward BCI systems that are more practical, mass-producible, and privacy-aware, enabling wider use in real-world settings.
Citation: Danayi A, Soltanian-Zadeh H (2026) Improved motor imagery BCI performance via task-unaware compression in the BELT Bayesian Edge-Cloud architecture. PLoS One 21(8): e0354976. https://doi.org/10.1371/journal.pone.0354976
Editor: Onder Aydemir, Karadeniz Technical University: Karadeniz Teknik Universitesi, TÜRKIYE
Received: October 2, 2025; Accepted: July 15, 2026; Published: August 21, 2026
Copyright: © 2026 Danayi, Soltanian-Zadeh. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All code underlying the findings is available at: https://github.com/adanayi/BELT, in the “research” folder. The repository will be made public upon acceptance. The dataset used in this study is the publicly available BCI Competition IV Dataset 2b, which can be accessed at: http://www.bbci.de/competition/iv/.
Funding: NA.
Competing interests: The authors have declared that no competing interests exist.
Introduction
Since Hans Berger’s first scalp EEG recordings in the 1920s and Jacques J. Vidal’s coining of the term Brain-Computer Interface (BCI) in 1973 [1,2], the ambition to directly link the human brain to external devices has driven decades of research. Today, affordable consumer-grade EEG headsets such as the Emotiv EPOC are widely used in BCI studies [3,4], yet BCIs have not approached the ubiquity of conventional human–computer interaction (HCI) devices like the mouse or keyboard. Persistent challenges to BCI development have been reported, including biological variability, ethical and privacy concerns, and constraints of real-time portable systems [5–7]. However, limited integration of BCIs into everyday human–computer interaction cannot be attributed solely to deficiencies in processing power or hardware: as early as 1991, Wolpaw et al. demonstrated reliable cursor control using spectral analysis on hardware with minimal computational resources [8], while modern portable systems are orders of magnitude more capable. Deeper architectural and practical obstacles remain.
An underexplored challenge in BCI research is the tight coupling between BCI systems as information-transfer media and their specific end applications. In many studies, task-specific goals dominate system design to the extent that general communication components—potentially reusable across applications—are subordinated to application logic, leading to ad-hoc solutions [9,10]. Such designs hinder generalization, reuse, and broader deployment. Modular design strategies have been proposed to address this issue [11]; notably, Wolpaw advocated separating goal selection from process control to enhance architectural modularity in BCIs [12]. Adopting this approach, we propose a general-purpose BCI architecture that emphasizes modularity beyond signal processing while accommodating task-specific requirements through a dedicated Network Tuning Block (NTB). The NTB provides a structured interface for incorporating neurological and physiological task-specific findings, enabling transparent intention decoding at the architectural level [13].
Another key challenge in BCI systems is the pronounced inter- and intra-subject variability of neural signals, which necessitates user adaptation and persists even across sessions in non-invasive EEG [5,14]. Deep learning (DL) approaches have shown strong potential in addressing both inter-subject and within-subject day-to-day variability and are increasingly adopted in BCI research [15–18]. Our architecture therefore explicitly accommodates DL methods. However, the use of DL increases the computational demands on end devices, which are not only limited in processing power but are also preferred to be simple, low-cost, and energy-efficient. A promising approach to maintaining affordable end devices while preserving decoding performance is the use of cloud computing, where on-demand processing resources are accessed over the internet. However, cloud-based solutions introduce several challenges, including data transfer overhead, latency, privacy concerns, and reliance on stable internet connectivity [19–21]. Moreover, offloading all processing tasks to the cloud places additional demands on cloud-specific mechanisms such as task allocation and automatic scheduling [22]. Therefore, Edge–Cloud architectures present a more viable alternative to purely cloud-based BCI systems by introducing an intermediate tier closer to the user. This edge tier can perform selected processing tasks to reduce cloud load while also improving latency and privacy.
These observations lead to three core design rules for a practical BCI architecture:
- Bayesian Setup: The system should operate effectively for a general user (prior) while also supporting subject-specific fine-tuning (posterior) to boost accuracy.
- Lightweight Models: Classification models must run efficiently on mass-produced embedded microprocessors.
- Efficient Compression: Data compression is essential to optimise edge-to-cloud communication in terms of bandwidth and latency, while also providing a degree of data privacy.
Together, these rules define the Bayesian Edge-Cloud architecture with Lightweight classification and Task-aware compression (BELT). We also present BELT-lite, a lightweight deep learning model designed for Motor Imagery (MI) tasks within the BELT framework, optimised for embedded deployment.
Main contributions
- We introduce the BELT architecture, a modular BCI design paradigm that separates general-purpose communication decoding from application-specific logic, enabling broader reusability.
- We propose a Bayesian two-phase decoding strategy that combines a general prior model with user-specific posterior adaptation, improving accuracy while reducing the need for extensive individual training.
- We emphasise practical deployment by enforcing strict design rules: lightweight classification for embedded hardware, task-aware data compression, and an Edge-Cloud infrastructure to balance computation, bandwidth, and privacy.
- We present BELT-lite, a deep learning-based model for MI tasks within the BELT framework, tailored for resource-constrained environments and demonstrating the feasibility of our approach in real-world settings.
Related work and current challenges
The challenges facing portable BCI systems are well documented and directly motivate the design choices in BELT. We organise our review around four key areas: signal variability and adaptation, embedded deployment constraints, edge–cloud communication, and data privacy. For each area we briefly survey relevant literature and indicate how BELT addresses the identified challenge—fully or partially.
Variability and deep learning adaptation.
EEG signals are inherently non-stationary, with pronounced inter- and intra-subject variability that persists across sessions [5,14,23]. Deep learning (DL) has proved effective at learning such variability, and transfer learning—pre-training on large multi-subject datasets followed by fine-tuning on a small amount of target-subject data—significantly improves accuracy and reduces calibration time [24–27]. Multi-task training can further enhance generalisation [28], although it introduces additional training complexity. The BELT architecture directly addresses this challenge through its Bayesian two-phase design: a prior model is pre-trained on population data (the equivalent of the pre-training stage), while posterior fine-tuning on the target user performs the adaptation step. Our experiments confirm that this approach yields substantial accuracy gains, fully realising the benefits demonstrated in the transfer-learning literature.
Embedded deployment and portable hardware.
Developing portable BCI systems still presents several reported challenges such as the high cost of sensors, reimplementation difficulties due to hardware differences, reduced number of effective sensors, lower sampling rates, and narrower effective frequency ranges compared to non-portable BCI devices [29]. These factors make it challenging to run complex DL models directly on the device, and they also affect the quality of the recorded EEG. BELT-lite is designed specifically for this regime: with only 1.65 k parameters and exclusively FIR-based operations, it runs efficiently on embedded ARM processors while maintaining competitive accuracy. The latency and parameter-count benchmarks reported in this paper demonstrate that lightweight, mass-producible BCI decoders are feasible. Sensor cost and hardware miniaturisation, however, remain beyond the scope of the present architectural contribution (partially solved).
Edge–Cloud architectures and connectivity.
Offloading model adaptation to the cloud reduces the computational burden on the portable device but introduces latency, bandwidth, and connectivity dependencies [30]. Two-tier architectures, in which the portable device communicates directly with a cloud server, require continuous internet access, which is unrealistic in many everyday BCI scenarios. Three-tier architectures insert an intermediate edge server, improving robustness and real-time performance [31]. BELT explicitly adopts a three-tier Edge-Cloud model: the lightweight BELT-lite model runs on the edge device, while more intensive processing—including fine-tuning—can be offloaded to a nearby edge server or the cloud. Moreover, because BELT-lite is capable of performing inference entirely locally, the system can continue to operate during connectivity interruptions, a feature that directly mitigates the risk of “always-online” dependence. Seamless fallback between cloud and local modes, however, is not fully automated in our current implementation (partially solved).
Privacy and data exposure.
BCI technologies collect highly sensitive neural data—such as emotional states, mental intentions, and identity cues—which, if intercepted or misused, pose serious privacy and security concerns. Data transmission channels and cloud/edge storage are potential targets for eavesdropping, man-in-the-middle attacks, and insider threats, putting neural confidentiality, integrity, and availability at risk [9,32]. Minimizing data transfer through compression reduces exposure by limiting the amount of neural data communicated across insecure channels, reducing the attack surface and helping to preserve user privacy and data sovereignty [30,33]. BELT’s task-aware compression is designed precisely for this purpose: it reduces the bandwidth needed for cloud communication while transmitting only a compressed latent representation, not the raw EEG. Although this does not constitute a complete end-to-end security protocol, it provides a meaningful privacy-by-design measure that significantly limits the exposure of neural information (partially solved).
Remaining challenges.
Several issues that have been highlighted in the literature are only indirectly addressed by BELT. These include the management of large-scale user data in the cloud [34,35], the integration of multi-task training schemes [28], and the broader commercialisation hurdles identified in systematic reviews [5,36]. While BELT’s modular design and Edge-Cloud infrastructure provide a foundation upon which such extensions could be built, these topics remain open directions for future work.
Materials and methods
Architecure
The proposed pipeline is illustrated in Fig 1 and consists of eight steps. In this section of the paper, the description and mathematical definition of steps are given. All symbols used in the equations throughout this section are summarized in Table 1, along with their corresponding types.
The framework consists of eight steps organized into three phases: (1) Prior phase (Steps 1-3): Prior data collection, prior model training, and compression–decompression pair training. These components are embedded in the device during production. (2) Adaptation phase (Steps 4-7): New EEG data are compressed and transmitted to the cloud (Step 4), stored and combined with existing user history (Step 5), used for posterior model training (Step 6), and the personalized posterior model is transferred back to the device (Step 7). (3) Update phase (Step 8): Optional continuous updates with explicit user consent, balancing personalization with privacy and scalability. Mathematical definitions for each step are provided in the accompanying text.
The first step involves collecting prior data. This is a critical stage, and we emphasize its importance as fundamental to the realization of BCI technologies. Therefore, we dedicate a distinct step exclusively to this process. We denote EEG signals as and the user’s target intention—referred to as the symbol or message in telecommunication terminology—as y. The complete set of prior data is represented by
and is defined in (1) where N is the total number of signal segments in prior dataset.
With the prior data collected, the next step is to construct the prior model. However, before model training, we emphasize the importance of prior data augmentation, as it has been shown to yield a non-negligible improvement in final classification accuracy. For example, Fahimi et al. used Deep Convolutional Generative Adversarial Networks (DC-GANs) to improve classification accuracy by 3.57% in motor imagery (MI) tasks [37]. Similarly, Al-Saegh et al. applied CutCat [38] —a technique that cuts and concatenates EEG signals from inter- and intra-subject trials—and demonstrated improved performance with smaller datasets. Another study adapted SpecAugment, a data augmentation technique originally developed for speech recognition, to steady-state visually evoked potentials (SSVEP) and reported improved classification performance [39]. Therefore, we incorporate data augmentation into the framework and denote the augmented dataset as .
Using the augmented data, we train the prior model. This model receives EEG input and estimates the corresponding target symbol
. Following telecommunication terminology, we refer to this model as the detector, denoted by D, as defined in (2):
Accordingly, the optimization objective to find the optimal prior model is expressed in (3). This is a probabilistic minimization problem, where denotes the parameter space of the detector D. The term
as condition implies that
, and this abstraction is used for readability and brevity.
The next step is to find the compression pair denoted by (Comp, Decomp). Comp will be applied over EEG data and gives us the compressed data
as shown in (4) and later by applying the decompressor on
, we get the decompressed signal
depicted in (5). However, for
, we will prefer to use the reconstructed term instead of decompressed, for better mathematical formulation.
The detector plays a crucial role in the development of the task-aware compression and decompression pair, as it is required for computing the task-aware penalty. The overall optimization objective is shown in (6). Solving this optimization problem gives us Comp and Decomp by simultaneously minimizing and
which represent the data reconstruction loss and the task-specific compression penalty, respectively. The scalar j serves as a trade-off parameter between reconstruction fidelity and task relevance.
and
are compressor and decompressor model parameters to be found.
We expect to encourage the compressor to act as a form of task-oriented preprocessing. We expect the optimization to result in a compression pair that preserves task-relevant information (via
) while reconstructing a signal as close as possible to the original in the mean squared error (MSE) sense (via
).
We define the reconstruction loss as the mean squared error (where E denotes the expectation operator), given in (7), and the compression task penalty as the detector’s error when given the reconstructed EEG signal, shown in (8).
In the third step, once the prior model and compression–decompression pair are trained, the device can be programmed accordingly in the production pipeline. Steps 4–7 constitute the user adaptation phase.
In Step 4, the user’s EEG signal is acquired, compressed, and transmitted to the cloud via the internet. In Step 5, the cloud first stores the received data in a dedicated cloud storage space. However, performing posterior training on this newly received data alone may be insufficient and result in overfit due to its limited size. Therefore, the second operation in this step is to query all previously stored data belonging to the same user from the cloud storage database (DB).
It is important to note that all stored data is maintained in compressed format. This design reduces storage costs and enhances data privacy, as the decompressor—required to reconstruct the raw EEG signal—is not deployed on user devices. Additionally, the task-aware penalty is expected to discard redundant and user-agnostic features, thereby improving privacy and promoting a more ethical data-handling approach.
Step 6 involves posterior training, which is performed on the cloud. First, the compressed posterior data is decompressed into reconstructed signals . Then, the posterior model is trained according to the objective in (9). The first term on the right-hand side represents the direct posterior training loss, where the condition
is a shorthand notation for
. However, training exclusively on this limited posterior data may lead to overfitting, potentially resulting in degraded performance—even for that specific user.
To address this, a second regularization term is introduced. This term acts as a constraint by referencing the prior dataset, preventing the model from deviating too far from generalizable features. The scalar is a balancing factor; when the user-specific dataset
is sufficiently large, a smaller value of
may lead to improved personalization without overfitting.
Once trained, the resulting personalized model is denoted as .
It is important to note that the prior model is trained on augmented data and is also evaluated on raw EEG signals
. In contrast, the posterior model is fine-tuned using decompressed data and thus is optimized for evaluation on reconstructed signals
, rather than raw data. This distinction justifies the use of
instead of
in the left-hand side of the optimization objective in (9).
There are two approaches for deploying the posterior detector on the device:
- Evaluate on raw data
: Since the reconstruction loss
in (6) forces the decompressed data to resemble the raw input, it is feasible to apply the posterior detector directly on raw signals. The trade-off between reconstruction fidelity and task-specific alignment is controlled by the factor j. In this scenario, the device uses
as a suboptimal approximation of the posterior detector.
- Evaluate using the optimal posterior detector
: This approach resolves the sub-optimality by explicitly passing the raw input through the learned compression–decompression pipeline before detection. The formulation is given in (10). Here, the task-aware penalty
effectively acts as a preprocessing objective, which may improve classification accuracy. However, this setup requires deploying the decompressor on the device, thereby revealing its parameters and compromising the privacy benefits discussed earlier.
Therefore, we recommend adopting the first approach for public applications, where privacy and scalability are priorities. In contrast, the second approach is more suitable for private, controlled, and limited-use cases where maximizing accuracy is critical. This distinction mirrors the paradigm of public cloud versus private cloud in conventional cloud computing frameworks.
Finally, the trained posterior model weights are transferred to the device and stored in its persistent memory. As a result, by the end of Step 7, the personalized posterior model becomes available locally on the device for real-time inference.
Even with the posterior model deployed, further improvements remain possible. However, to uphold ethical and privacy standards, explicit user consent is required before initiating additional updates, as illustrated in Step 8 of Fig 1. If the user agrees to participate, the system re-enters the adaptation cycle starting from Step 4, enabling continuous refinement of the posterior model.
The key characteristics of the proposed architecture are outlined below:
- The architecture adopts a Bayesian perspective, emphasizing the importance of both the prior and posterior models. The prior model is not merely a pre-training artifact—it plays a vital role in device setup, connectivity, and post-factory deployment.
- A Cloud-Edge architecture is targeted, which we consider a promising paradigm for BCI systems. In this design, the cloud handles computation-heavy and storage-intensive tasks, while the edge device is responsible for data compression and real-time model evaluation.
- The use of lightweight models with transferrable weights is emphasized, considering that the evaluation is performed on embedded systems with limited computational resources.
- Task-aware data compression is a key component, both for enhancing efficiency and for offering a degree of privacy by minimizing exposure of user-specific raw data—thereby contributing to the resolution of ethical challenges.
Therefore, we designate this architecture as Bayesian Edge-cloud architecture with Lightweight classification and Task-aware compression (BELT).
Model
Although the BELT architecture provides a conceptual framework for addressing key challenges in current BCI systems, it is not directly deployable without practical instantiation. In this section, we present our proposed implementation within the BELT architecture, built upon deep learning principles. Given the emphasis on lightweight design, we refer to this model as the BELT-lite model.
Despite being deep-learning-based, the BELT-lite model is optimized for embedded systems and is suitable for resource-constrained environments. An overview of the model is provided in Fig 2. As illustrated, we adopt an autoencoder architecture for data compression. The detector module consists of four core components: LTI time filters, linear spatial filters, a Network Tuning Block (NTB), and a dot-product classifier. The remainder of this section provides a detailed explanation of the detector design.
The model consists of two main subsystems: a detector (bottom) for classification and an autoencoder (top) for data compression. The detector is optimized for embedded deployment and comprises four components: (i) linear time-invariant (LTI) temporal filters that extract frequency-specific features, (ii) linear spatial filters that combine information across channels, (iii) a Network Tuning Block (NTB) that computes log-power features and enables efficient two-phase training, and (iv) a lightweight dot-product classifier. The autoencoder compresses EEG signals for efficient edge–cloud transmission and can be used independently when compression is required. Together, these components realize a lightweight instantiation of the BELT architecture suitable for resource-constrained environments.
Detector.
The detector is implemented as a convolutional neural network with a dense (perceptron) tail and a nonlinear block between them. As illustrated in Fig 2, the detector is composed of four main subsystems:
- 1. LTI Time Filters: The multi-channel EEG input signal
is first passed through a set of Linear Time-Invariant (LTI) time filters, responsible for core time-domain signal processing. In the BELT-lite model, we adopt single-channel filtering; that is, each kernel operates exclusively on one specific channel of
, with no cross-channel filtering at this stage.
The filters are implemented as Finite Impulse Response (FIR) filters of identical kernel size. Crucially, these kernels are not fixed or pre-designed—rather, their impulse responses are learned during prior model training and can be fine-tuned during the posterior training phase.
To implement LTI behavior within a neural framework, we employ one-dimensional convolutional (Conv1D) layers with the following constraints: linear activation, no bias term, and a stride of 1. This setup guarantees that the operation corresponds to a pure convolution with trainable, linear FIR filters.
The motivation for using LTI structures is rooted in hardware compatibility: LTI systems are natively supported by the Digital Signal Processing (DSP) cores often included in ARM Cortex-M microcontrollers and ARM Cortex-A processors, making this design highly suitable for embedded deployment [40].
- 2. Linear Spatial Filters: Multi-channel EEG signals contain valuable spatial information that is critical for effective classification [41,42]. To capture this, the second subsystem applies a set of linear spatial filters to the output of the time-filtered signals.
These spatial filters are implemented using Conv1D layers with the following constraints: linear activation function, kernel size of 1, stride of 1, and no bias term—ensuring strict linearity. The filters operate across all time-filtered channels simultaneously, allowing the model to extract spatial features through channel-wise mixing while preserving temporal alignment.
- 3. Network Tuning Block (NTB): In standard deep learning pipelines, convolutional layers are typically followed by a feature extractor (FE) block. In our architecture, we extend the role of this block by introducing additional objectives, renaming it to the Network Tuning Block (NTB). The NTB is designed to fulfill the following purposes:
- (a) As highlighted by Yadav and Maini [6], BCI system design should incorporate insights from neurology, psychology, and physiology. Even in the context of deep learning—which traditionally offers a black-box approach to feature extraction—these domain-specific insights should be leveraged through informed network design, architectural choices, and hyperparameter tuning.
- (b) The NTB facilitates the separation of optimization responsibilities between the prior and posterior training phases. Specifically, posterior training is intended to fine-tune primarily the final classifier, while leaving earlier layers (e.g., LTI time filters and linear spatial filters) relatively unchanged. Conversely, the prior training phase focuses on optimizing these earlier components. Enforcing this behavior requires careful formulation, which is handled internally by the NTB.
Ultimately, the NTB functions as the main feature extractor. However, unlike standard FE blocks, it is designed with the aforementioned objectives in mind. Its output is a task-relevant feature vector passed to the final classification stage.
- 4. Classifier: Given the extracted feature vector, the symbol decoding task is framed as a classification problem. To ensure efficiency and compatibility with embedded systems, we adopt a minimalist yet expressive design: a domain transform followed by a correlation-based classification per target symbol.
The domain transform is implemented via a dense (fully connected) layer. Subsequently, each symbol is associated with a dedicated dot product operation, forming a lightweight linear classifier. This structure not only reduces computational overhead but also offers flexibility for adaptation during posterior training.
This two-layer structure strikes a balance between expressive power and efficiency. From a neural network perspective, this architecture is justified as two-layer perceptrons are known to be universal function approximators. From a telecommunications perspective, the first layer performs a transformation to a symbol space, while the second layer performs a distance-like operation. Although this is not a strict Euclidean (l2) distance as used in classical telecommunication systems, the dot product serves as a generalized similarity measure and is compatible with signal-space interpretations.
Implementation
To support reproducibility and address the well-documented challenge of re-implementation in BCI research, we provide the complete source code for the BELT framework. The implementation is archived and publicly available at: https://github.com/adanayi/BELT.
EEG dataset and task framing.
We used EEG recordings from the BCI Competition IV-2b and BCI competition IV-2a datasets which are both widely adopted benchmarks for MI-based brain–computer interface research [43,44].
The BCI Competition IV-2b dataset includes data from nine healthy subjects, each performing two-class MI tasks (left hand vs. right hand) across five sessions, with 120 trials per session—resulting in a total of 600 trials per subject. The recordings comprise three bipolar EEG channels (C3, Cz, C4) positioned over the sensorimotor cortex, along with three monopolar EOG channels used for artifact monitoring. In this study, only the EEG channels were used, in line with our focus on developing methods suitable for low-channel, EEG-only headsets that are more practical for real-world deployment.
The BCI Competition IV-2a dataset similarly includes recordings from nine healthy subjects, but involves four-class MI tasks (left hand, right hand, both feet, and tongue) [44]. Each subject participated in two sessions conducted on different days, with each session consisting of 288 trials (72 per class). Although the original recordings used 25 EEG channels and three EOG channels, we selected only the three sensorimotor cortex channels (C3, Cz, C4) to maintain consistency with our low-channel configuration and also used two classes (left hand and right hand) to align with the IV-2b experimental setup.
To create a larger and more diverse subject pool, we combined both datasets. Subjects 1–9 correspond to the original subjects from the BCI Competition IV-2b dataset, while subjects 10–18 correspond to the nine subjects from the BCI Competition IV-2a dataset. This combined cohort enables cross-dataset evaluation and increases the statistical power of our analysis.
The BCI Competition IV datasets include trial rejection flags indicating segments affected by artifacts or acquisition errors. According to the dataset documentation, trials were marked as rejected if the EEG signal contained visible muscle artifacts, eye movements, or technical disturbances identified through visual inspection by experienced annotators. We adhered to these provided rejection flags and applied no additional artifact rejection or trial removal beyond the dataset’s own annotations, ensuring consistency with prior benchmarks. After removing rejected trials, we retained 7613 valid segments from a combined pool of 9112 total trials, representing a retention rate of approximately 83%. Each segment spans the active motor imagery period from t = 3 s to t = 7 s post-cue onset. With a sampling rate of Fs = 250 Hz, each segment contains 1000 time-domain samples.
Modern deep learning frameworks—including those incorporating recurrent architectures—typically assume pre-segmented inputs. Yet, our literature review revealed that segmentation procedures are rarely described in sufficient detail, hindering reproducibility. To address this, we provide both the pre-segmented datasets and the segmentation code in the GitHub repository accompanying this work. All code uses fixed random seeds, ensuring that all stochastic operations are fully reproducible.
Cross validation strategy.
To ensure statistical reliability and reproducibility, we fixed the random seed before any data splitting. Shuffling is essential in this dataset because each subject’s recordings span five sessions, and later segments may be more informative as subjects improve with visual feedback. Standard k-fold splits that preserve session order could unintentionally bias certain folds; shuffling yields k independent realizations of the MI-EEG process and mitigates this risk.
We employ two complementary cross-validation (CV) strategies, each serving a distinct evaluation goal.
Subject-dependent 10-fold CV (full prior training): All 9112 segments from all 18 subjects are pooled, shuffled, and randomly split into 10 folds, each containing approximately 90% training and 10% validation segments. This procedure is repeated identically for every experiment, using the same pre-computed fold assignments. Per-subject accuracy is then computed on the validation segments belonging to each subject. Because training and validation folds may contain different segments from the same subject, this strategy evaluates the model’s capacity to fit the population under identical training conditions, not its ability to generalise to completely unseen subjects. It is used for all comparisons of architectures, augmentation levels, and compression methods, where the primary interest is relative performance.
Leave-one-subject-out with repeated folds (new-subject prior training): To explicitly measure generalisation to new users, we conduct a separate experiment in which one subject is held out entirely. The prior model is trained on data from the remaining 17 subjects, and the held-out subject serves exclusively as the validation set. To obtain robust performance estimates despite the small per-subject sample size, this training-validation split is repeated 10 times for each held-out subject, using different random shuffles of the 17 subjects’ data (still under the fixed random seed for consistency). This yields a mean and standard deviation of the prior accuracy for each subject when treated as unseen. Posterior fine-tuning is subsequently performed using only the held-out subject’s data, mirroring a real-world onboarding scenario.
In both strategies, the validation segments are strictly excluded from the training set in each fold, so there is no data leakage. The term validation accuracy throughout the paper refers to the metric computed on these held-out segments.
Fig 3 summarises the complete analysis pipeline from raw data to statistical inference, highlighting both CV branches.
The flowchart illustrates the end-to-end experimental workflow from raw data to statistical inference, including dataset combination, segmentation, cross-validation, evaluation scenarios (full training and new-subject testing), posterior fine-tuning, and statistical testing methodology. Details of each stage are provided in the accompanying text.
Statistical tests methodology.
For statistical analysis, per-subject mean accuracies and standard deviations are computed across the 10 folds. These subject-level means serve as repeated measures for hypothesis testing: Wilcoxon signed-rank tests are used for pairwise comparisons (two conditions), and Friedman tests followed by Nemenyi post-hoc analysis are used for comparisons involving three or more conditions. All tests are applied to the 18 subject-level means, properly accounting for inter-subject variability.
Detector.
The detector was implemented using the Keras framework [45]. The network input is a tensor of shape , where
denotes the variable batch size. The first layer applies LTI time filtering, implemented as a grouped Conv1D layer with 9 kernels and a groups parameter of 3. This configuration yields 3 filters per EEG channel (3 channels total). The kernel size is 25 samples, corresponding to
at a sampling frequency of
. Using ‘same’ padding, this layer outputs a tensor of shape
.
Following this, the linear spatial filtering block is another Conv1D layer with 16 kernels of size 1 sample. Both the LTI time and spatial filter layers have no bias terms and employ linear (identity) activation functions. Consequently, the output of the spatial filtering block has shape , which is then passed to the Network Tuning Block (NTB).
The NTB begins with an element-wise square operation defined as
followed by a 1D average pooling layer, and finally a logarithmic transform given by
where is set to 10−8 to ensure numerical stability.
The average pooling layer uses a window size of 20 samples with a stride of 13 samples, resulting in smoothed power estimates over approximately frames with
overlap.
The choice of signal power as a classification feature is motivated by findings that the power in the mu rhythm and central bands conveys MI information [8,46].
As shown in our prior work [13], this log-power structure enables a two-phase training procedure: during early stages with larger errors, backpropagation modifies the weights of preceding layers (prior training phase), whereas in later stages with smaller errors, backpropagation is effectively suppressed to minimize changes in these layers and focus training on the subsequent classifier layers (posterior training phase). This behavior aligns well with the intended training regime of the BELT-lite model.
This log-power structure fulfills the two additional objectives outlined for the NTB. While the use of log power is common in MI-BCI literature, its effectiveness is often empirically noted without a clear explanation. Our analysis clarifies that the superior performance stems from the fulfillment of these specific training objectives. Although integrating more recent physiological insights into the NTB may further enhance performance, this work focuses on emphasizing the importance of these objectives rather than exploring alternative architectures.
It is worth mentioning that allocating three LTI filters per channel is also motivated by findings regarding the rhythm [8] and central
sub-bands [46] in MI classification. Accordingly, two of the filters are expected to approximate bandpass filters for the
and
frequency bands, while the third filter provides an additional degree of freedom for data-driven adaptation.
The use of overlapping frames for power smoothing is motivated by the need to reduce the number of classifier parameters in small-dataset scenarios—such as ours—to mitigate overfitting during training.
The output of the NTB is a tensor of shape , which is then flattened into a vector of shape
before being fed into the classifier’s first layer. Through the combined processing of the LTI filters, spatial filters, and NTB, the input signal size is effectively reduced to approximately 40.5% of its original dimensions (
).
The classifier itself is a two-layer perceptron comprising 4 neurons in the first layer and 2 neurons in the second. The first layer uses a ReLU activation function, while the second layer employs a sigmoid activation, making it suitable for one-hot encoded classification tasks.
Given the limited size of the dataset, we employed several strategies to mitigate overfitting. Batch normalization layers were applied both before and after the NTB. Additionally, an l2 regularization term with a penalty coefficient of 0.01 was applied to the first dense layer of the classifier. A dropout layer with a dropout probability of 0.2 was inserted between the classifier’s dense layers.
We contend that the most complex layer in the model is the first dense layer of classifier, where each neuron connects to 1216 inputs from the previous layer. This high connectivity increases the risk of overfitting given the limited dataset. However, as discussed earlier, this layer is intended to learn the signal space or domain transformation; thus, we allow it substantial representational capacity while relying on l2 regularization to control overfitting.
Since the final classifier layer performs a distance-like measurement in the transformed space, we prefer the preceding layer to maintain expressive power rather than excessive compression to preserve generalization. Consequently, the dropout layer placed between the classifier layers plays a critical role in balancing expressiveness and regularization.
The structure of the detector is summarized in Table 2. The layers are listed in order, along with their Keras naming conventions, to facilitate reproducibility and ease of reimplementation by the reader.
For prior detector training, we used batch size 32, learning rate 10−3, and 100 epochs with 10-fold cross-validation (the same folds were used across all levels).
Data augmentation.
To enhance training, we developed a conditional GAN (cGAN) to synthesise realistic EEG signals. The generator takes a 100-dimensional latent vector concatenated with a one-hot class label, passes it through three dense layers (32 units, ReLU), then a dense layer (3000 units, tanh) reshaped to (three EEG channels). The class label is repeated across time and concatenated, yielding a
output.
The discriminator processes a input. EEG channels go through two convolutional layers (18 filters, kernel 25; then 16 filters, kernel 1; linear, no bias), batch norm, custom squaring, average pooling (20, stride 13), custom logarithm, flattening and batch norm. Class channels are flattened separately. Both are concatenated and fed through dense layers (256
4 units) with leaky ReLU (
) and dropout (0.2), ending with a sigmoid unit.
The cGAN was trained per fold on training splits only, using Adam (lr=,
) and binary cross-entropy for 300 epochs. Batch size was one-fifth of the training set (300 samples). All models were implemented in TensorFlow/Keras and trained on an RTX 2060 GPU running Ubuntu 24.04. For prior detector training, we used batch size 32, learning rate 10−3, and 100 epochs with 10-fold cross-validation.
The augmentation parameter controls the number of synthetic samples generated per real training sample (e.g.,
triples the dataset size). Within each cross-validation fold, we trained five BELT-lite models using
, resulting in five models per fold, each with a different augmentation level. Augmented data were used only for prior model training, not for posterior fine-tuning, reflecting real-world constraints where subject-specific GANs are infeasible at scale.
Compressor.
We have used an AutoEncoder for the compression task. While AutoEncoders are already widely adopted in EEG signal processing, the value of our approach lies in its alignment with the practical-friendly architecture of BELT via BELT-lite. Specifically, we rely on a convolution-only structure, which, as discussed earlier, is well-suited for embedded systems and real-time cloud applications. We emphasize that the current AutoEncoder design is not intended as an optimal solution, but rather as a functional and extensible starting point within the scope of this work.
The Encoder network consists of three Conv1D layers. The first layer uses 32 kernels of size 3 and stride 1, enabling it to extract 32 short temporal-spatial patterns without compressing the time dimension. The second layer has 16 kernels of size 25 (i.e., ) and a stride of E1, introducing compression in the time domain. The third layer applies N kernels of size 2E2 with stride E2, further compressing the temporal axis. Notably, the number of parameters in this final layer grows with N, allowing greater expressivity when compression is high.
Letting C denote the number of EEG channels, the overall compression ratio CR is calculated as:
For instance, with C = 3, N = 9, E1 = 5, and E2 = 2, we achieve a compression ratio of CR = 3.33. In contrast, we checked the ZIP standard compression and it yields a much lower ratio of 1.04 for this dataset while being unsuitable for real-time use, and being inefficient for implementation on low-cost embedded systems. Although our method is lossy, unlike ZIP, this is not inherently a drawback—it necessitates evaluating the impact of compression on final task performance.
The Decoder consists of two deconvolution (Conv1DTranspose) layers. The first layer uses 32 kernels of size and stride
, effectively upsampling the compressed representation back to the original temporal resolution. The second layer applies C kernels of size 3 to reconstruct the multi-channel EEG signal. The first layer performs the main decompression, while the second maps the output to the original channel dimensionality.
Kernel size in the first layer is deliberately set proportional to the compression parameters, as higher compression typically demands greater capacity for accurate reconstruction. All encoder and decoder layers use linear activation, and unlike the classifier, we allow bias terms in all layers. This added complexity is acceptable because (1) compression is not always required in BELT, and (2) when compression is active, classification is bypassed, allowing us to tolerate this trade-off for improved reconstruction quality.
Comparative baseline model: EEGNet
To evaluate the computational efficiency and accuracy of BELT-lite, we selected EEGNet [47] as a baseline model. EEGNet is a compact convolutional neural network specifically designed for EEG-based brain–computer interfacing. It employs depthwise and separable convolutions to achieve high classification performance with a minimal parameter count ( parameters), making it a widely adopted benchmark for lightweight BCI decoding architectures. Its balance of accuracy and efficiency makes it an appropriate reference point for assessing BELT-lite’s suitability for embedded deployment.
While EEGNet’s inference latency is acceptable for many laboratory setups, on ultra-low-power platforms such as the ARM Cortex-A7 it still consumes significant CPU time; further reduction is desirable for prolonged battery-operated use.
For all pairwise comparisons between BELT-lite and EEGNet, we employed the Wilcoxon signed-rank test as the primary statistical measure. This nonparametric test was chosen because it makes no assumptions about the normality of the underlying data distribution and is appropriate for paired observations (same subjects or same experimental runs). For accuracy comparisons, the test was applied to the mean accuracies of each subject across 10 cross-validation folds. For runtime comparisons, we performed 100 independent measurement runs, each consisting of 100 consecutive inferences, and used the Wilcoxon test to compare the resulting latency distributions. All tests were two-tailed with a significance threshold of . Results are reported as mean
standard deviation unless otherwise noted, and effect sizes are discussed in the context of practical significance.
Results
Prior detector
We trained the prior detector on all 18 subjects using the augmentation scheme described in the Data Augmentation subsection. Table 3 reports the per-subject accuracy (mean std) for each augmentation level.
To assess whether augmentation significantly influences performance, we conducted a Friedman test on the mean accuracies across all subjects, treating each fixed level (0–4) as repeated measures. The test indicated a significant overall effect of augmentation intensity (
, p = 0.017). A Nemenyi post-hoc test was then performed to identify which specific conditions differed.
The pairwise comparisons revealed that significantly outperformed the baseline
(adjusted p = 0.019), and
showed a borderline significant improvement (p = 0.048). No other fixed augmentation level differed significantly from the baseline (all p > 0.05), and none of the non-zero levels (
) differed significantly from each other (adjusted
in all cases).
These findings lead to two nuanced conclusions:
- Simply applying a fixed augmentation level across all subjects does not guarantee a statistically significant improvement over using only real data. While levels
(and, to a marginal extent,
) provided reliable gains, other intensities – particularly
and
– did not reach significance. The variability across folds and subjects dampens the effect of many augmentation strengths, so the choice of intensity matters.
- There is no evidence that any single fixed augmentation level is universally superior; the optimal intensity likely varies per subject. The significant improvement seen with
suggests that moderate augmentation is beneficial, and subject-specific tuning remains a promising direction for future work.
Notably, even the best fixed augmentation level () remained below the highest single-subject accuracy observed in this study (e.g., subject S4 achieved
). This underscores that inter-subject variability remains a more fundamental challenge than the choice of augmentation intensity, and that real-world BCI systems will still require careful per-subject calibration.
Posterior detector
The prior detector is then fine-tuned individually on each subject’s own data to get the posterior detector. While this follows the standard train-then-fine-tune paradigm in transfer learning and operates on point estimates rather than full probability distributions, we retain the terminology of prior and posterior to suggest the possibility of extending this framework into a fully Bayesian formulation in future work. Although this is not true Bayesian inference, the terminology anticipates the integration of Bayes’ rule as envisioned in the BELT architecture.
Please note that this fine-tuning approach does not explicitly implement the optimization defined in (9). However, the selection of training epochs and learning rates during the prior and posterior phases can be interpreted as implicit controls similar to the factor, balancing the influence of subject-specific data against general prior knowledge. Accordingly, no fixed numeric value is assigned to
in our experiments. In our setup, the prior model is trained with a learning rate of 10−3 on data from all 18 subjects (or 17, depending on the experiment), whereas posterior fine-tuning uses a higher learning rate of
on a single subject’s data. The drastically reduced dataset size inherently limits the influence of the subject-specific loss and, together with the learning rate, provides a regularising effect analogous to a small
.
Table 4 reports the posterior model accuracies for all 18 subjects under two prior augmentation conditions: no augmentation () and moderate augmentation (
). Fine-tuning used the same fixed prior checkpoint obtained from training with the respective augmentation level. To assess whether augmentation during prior training influences posterior performance, we applied a Wilcoxon signed-rank test to the per-subject accuracies. The test revealed a significant difference between the two conditions (W = 30.0, p = 0.0139). Concretely, fine-tuning from the moderately augmented prior yielded a mean posterior accuracy of 84.3% across all subjects, compared to 82.6% for the no-augmentation prior — an average improvement of approximately 1.7 percentage points. On Dataset A the benefit is more pronounced: mean accuracy rose from 77.4% to 80.6%, while on Dataset B the means were identical (87.9%). This result shows that even a modest amount of synthetic prior data can provide a statistically reliable benefit for subject-specific adaptation, although the effect varies by dataset.
Once again, we emphasize that our use of the term posterior does not refer to Bayesian posterior in the strict sense. However, we argue that a two-stage approach—either explicitly Bayesian or inspired by Bayesian reasoning—is essential. Both models serve distinct purposes: the prior model is useful for initial deployment or onboarding new users, while the posterior model is crucial for long-term use, as subject-specific fine-tuning significantly boosts accuracy.
Comparing prior and posterior results (Table 3 vs. Table 4) confirms that posterior training is essential for achieving high accuracy and should not be omitted in practical applications. The substantial gap between prior and posterior accuracies across all subjects underscores the necessity of user-specific adaptation. This is also shown in Fig 4.
Bars represent mean accuracy across 10 cross-validation folds, with error bars indicating standard error of the mean (SEM). Results are shown for all 18 subjects (Subjects 1–9 from Dataset B, Subjects 10–18 from Dataset A). Posterior fine-tuning consistently improves accuracy across every subject, with gains ranging from approximately 5 to 25 percentage points. Notably, Subject 4 (Dataset B) approaches near-perfect accuracy () after adaptation, while Subject 12 (Dataset A) reaches
, demonstrating the effectiveness of subject/user training. The substantial gap between prior and posterior accuracies across all subjects underscores the necessity of user-specific adaptation in practical BCI deployment.
To formally assess the value of posterior training relative to prior models, we conducted a Friedman test across four conditions:
- Prior (
)
- Prior (
)
- Posterior (
)
- Posterior (
)
The test revealed a highly significant overall difference (,
). Fig 5 presents the Nemenyi post-hoc results as a significance heatmap. Three key findings emerge:
- Both posterior conditions significantly outperform both prior conditions (all adjusted p < 0.01, see heatmap). This confirms that subject-specific fine-tuning is essential for maximizing accuracy, regardless of the prior augmentation level.
- The two prior conditions (
and
) do not differ significantly from each other (p > 0.05). While the dedicated augmentation analysis in previous subsection indicated that some augmentation levels (e.g.,
) can significantly improve prior performance, the more limited difference between
and
is not detectable in this four-condition comparison after correction for multiple testing.
- The two posterior conditions (
and
) did not differ significantly in the Nemenyi post-hoc test (p > 0.05). This appears to contradict the earlier Wilcoxon test restricted to the two posterior groups (which gave p = 0.0139), but the discrepancy arises because the Nemenyi test applies a conservative correction for all pairwise comparisons across the four conditions. The effect of prior augmentation on posterior performance, while detectable in a focused pairwise comparison, is modest and does not remain significant under this broader correction. We therefore conclude that once fine-tuning is applied, the choice of prior augmentation level has at most a small benefit, which should be weighed against the simplicity of using no augmentation.
The heatmap compares four conditions: Prior (), Prior (
), Posterior (
), and Posterior (
). Each colored cell indicates that the row condition does not significantly outperform the column condition (p < 0.05) based on the Nemenyi test following a significant Friedman test (
,
). Key findings: (i) both posterior conditions significantly outperform both prior conditions, confirming that subject-specific fine-tuning is essential; (ii) the two prior conditions do not differ significantly; (iii) the two posterior conditions do not differ significantly after correction for multiple comparisons, though a direct pairwise Wilcoxon test indicated a modest significant difference (p = 0.0139); thus the effect of prior augmentation on posterior accuracy is small and not robust in all statistical contexts.
To illustrate the findings, Fig 6 shows the mean prior and posterior accuracies across all 18 subjects for the two augmentation levels and
, with error bars representing the standard error of the mean (SEM). The figure confirms that posterior accuracies consistently exceed prior accuracies for both augmentation levels, consistent with the significant effect of fine-tuning reported above.
Error bars indicate standard error of the mean (SEM). Posterior accuracies substantially exceed prior accuracies for both conditions, while the difference between the two augmentation levels is small and discussed in the text.
Training optimization
In order to reduce the computational load on the cloud, we propose to partially limit fine-tuning by freezing parts of the model. This section presents the implementation of this approach along with its results. Before presenting the results, we highlight the potential advantages of freezing parts of the model during training:
- Reduced computational load: Fewer parameters are updated, leading to lower back-propagation overhead, which reduces processing demand on cloud infrastructure.
- Lower memory requirements: The end device requires less programmable memory, as it no longer needs to store the coefficients of the LTI filter layers.
- ASIC compatibility: Fixed LTI filter coefficients allow for hardware implementation using ASICs, which can significantly improve efficiency.
- Improved generalization with limited data: A simpler model, resulting from partial freezing, is less prone to overfitting when the posterior training data is scarce. While this advantage may diminish with larger datasets, in practice, the posterior data must be collected during the initial user setup. Therefore, minimizing the required data collection enhances the user experience.
Frozen LTI filter layers.
As a first step, we freeze only the LTI filters layer of the model, allowing the spatial and classifier layers to be fine-tuned. This choice is motivated by the fact that LTI filters are generic task-dependent temporal feature extractors and may not require subject-specific adaptation, whereas spatial and classifier layers can benefit from personalization. By freezing only the LTI layers, we aim to balance model adaptability with computational efficiency.
The results are shown in Table 5. A Wilcoxon signed-rank test comparing the two prior augmentation levels ( vs.
) revealed a significant improvement when fine-tuning from the augmented prior (W = 7.0,
). Concretely, the dataset-wise means increased from 86.4% to 87.2% on Dataset B and from 75.5% to 78.8% on Dataset A.
Classifier only.
In the next step, both the LTI filters and the spatial linear filters are frozen during posterior training, allowing only the classifier layers to adapt. This configuration aims to further reduce the computational load while evaluating whether the remaining trainable layers can compensate for reduced flexibility. The results are presented in Table 6.
A Wilcoxon signed-rank test between the two prior augmentation levels ( vs.
) revealed a significant improvement when fine-tuning from the augmented prior (W = 7.0,
). Concretely, the dataset-wise means increased from 85.9% to 86.3% on Dataset B and from 74.5% to 76.2% on Dataset A.
Summary of fine-tuning depth
To compare the three posterior adaptation strategies, we fixed the prior augmentation level at —the intensity that yielded the highest mean accuracy in the previous analyses—and evaluated each subject’s accuracy after full fine-tuning, frozen LTI, and classifier-only training. Fig 7 shows the mean accuracy for Dataset B and Dataset A under all four conditions, including the prior model for reference. Error bars denote the standard error of the mean (SEM) across subjects.
Paired bars show mean accuracy across 18 subjects for BCI Competition IV-2a and IV-2b datasets. All posterior results use the augmented prior (). The prior bar is included for visual reference. Error bars indicate SEM. A Friedman test on the three posterior conditions reveals a significant effect of fine-tuning depth (
,
); full fine-tuning significantly outperforms classifier-only training, while frozen LTI does not differ significantly from full fine-tuning (see Fig 8).
A Friedman test on the three posterior conditions across all 18 subjects confirmed a significant effect of fine-tuning depth (,
). Nemenyi post-hoc tests (Fig 8) revealed that full fine-tuning significantly outperforms classifier-only fine-tuning (adjusted
), while the frozen LTI configuration does not differ significantly from full fine-tuning (p = 0.16). Notably, frozen LTI is significantly better than classifier-only training (p = 0.013).
The heatmap compares three posterior conditions (all using ): full fine-tuning, frozen LTI layers, and classifier-only fine-tuning. Colored cells indicate that the row condition significantly outperforms the column condition (p < 0.05) after a significant Friedman test (
,
). Full fine-tuning significantly outperforms classifier-only (
); frozen LTI is not significantly different from full (p = 0.16) but significantly better than classifier-only (p = 0.013).
These results indicate that freezing only the LTI filters preserves most of the accuracy of full fine-tuning, whereas restricting adaptation to the classifier alone incurs a statistically significant but practically modest penalty of 2–5 percentage points. Given the substantial computational savings—classifier-only fine-tuning updates only a fraction of the network parameters—this trade-off is acceptable for resource-constrained deployment scenarios, while frozen LTI provides an intermediate configuration that is statistically indistinguishable from the full model.
New subject performance
In this experiment, we evaluate the architecture’s ability to generalize to new and unseen subjects. Due to limited data, we adopt a leave-one-subject-out approach: each time, one subject is excluded from the prior model training, and the system is later fine-tuned (posterior) using only the excluded subject’s data. Additionally, to better understand the generalization behavior, we measure the performance of subject 4 (as a good performing subject due to Fig 4) across all trained models. To reduce complexity and save time, we disable the data augmentation step and report results only for .
The performance of the prior model is reported in Table 7 and depicted in Fig 9. To quantify the cost of encountering a new subject, we compared each subject’s prior accuracy when treated as unseen (from the leave-one-subject-out procedure) against their own prior accuracy when they were part of the full prior training, as reported in Table 3 (column ). A Wilcoxon signed-rank test on these 18 paired observations revealed a significant drop in performance (W = 35.0, p = 0.027, N = 18). The mean accuracy decreases were 3.3 percentage points for Dataset B and 1.5 percentage points for Dataset A. This confirms that excluding a subject from the prior training introduces a small but statistically significant penalty, even though subsequent fine-tuning can partially compensate, as will be discussed.
Bars represent mean accuracy with error bars indicating standard error of the mean (SEM). “Seen” refers to models trained with the target subject’s data included (results from Table 3), while “Unseen” refers to leave-one-subject-out evaluation where the target subject was excluded during prior training. Results show a statistically significant accuracy drop for unseen subjects (Wilcoxon signed-rank test: W = 35.0, p = 0.027, N = 18), with mean decreases of 3.3% for Dataset B and 1.5% for Dataset A. This demonstrates the generalization limitations of BCI models and underscores the necessity of subject-specific data exposure even in the prior training phase.
We do not make a conclusion regarding the effect of each individual subject on the model at this point, but we strongly indicate the necessity of having larger prior datasets. We also expect that more generalized models with fewer parameters can reduce the dependency on certain subjects beyond the current level although they open the challenge of under-fitting.
The results for posterior training are presented in Table 8 and illustrated in Fig 10. On average, accuracy decreased by 1.1% for Dataset B and, surprisingly, increased by 0.8% for Dataset A when subjects were unseen during prior training and subsequently fine-tuned in the posterior phase. However, a Wilcoxon signed-rank test revealed that these differences are not statistically significant (W = 70.0, p = 0.523). This indicates that posterior training performance does not degrade significantly for new subjects—a desirable outcome that supports the robustness of the proposed approach.
Bars represent mean accuracy after posterior fine-tuning, with error bars indicating standard error of the mean (SEM). “Seen” refers to models where the target subject’s data was included in prior training before fine-tuning; “Unseen” refers to models where the target subject was excluded during prior training and fine-tuned only on their own held-out data. On average, unseen subjects showed a 1.1% decrease in accuracy for Dataset B and a 0.8% increase for Dataset A compared to seen subjects. A Wilcoxon signed-rank test revealed that these differences are not statistically significant (W = 70.0, p = 0.523), indicating that posterior fine-tuning is robust to new subjects and does not degrade significantly even when prior exposure is absent—a desirable outcome supporting the practical viability of the BELT architecture.
Compressor
We implemented the AutoEncoder with different architectural parameters. Denoting compression configuration as , we systematically varied N, E1, and E2 across (1, 5, 9, 13), (2, 5, 10, 20), and (2, 5), respectively, yielding 32 combinations in total. For each configuration, an AutoEncoder was trained with a learning rate of 10−3 for 50 epochs using MSE loss and the ADAM optimizer. The comparison evaluation metric is the classification accuracy of the reconstructed signal (
) using the prior detector, with the reported accuracy drop representing the average across all k-folds. Importantly, the AutoEncoder training was performed on data from all subjects, since the focus here is on the impact of compression rather than subject transferability.
As shown in Fig 11, configurations with N = 1 consistently result in severe accuracy degradation. This outcome is expected, as collapsing all spatial information into a single mixed channel eliminates task-relevant features, forcing the optimization to prioritize reconstruction quality under the MSE penalty irrespective of classification requirements. By contrast, configurations such as (N/2/2) and (N/5/2) show minimal or no accuracy loss for N = 9 and N = 13, with occasional slight improvements observed.
Positive values indicate accuracy drops (worse performance after compression), while negative values indicate accuracy improvements. An autoencoder was trained for each configuration , and the reconstructed signal
was evaluated using the prior detector. The accuracy drop is defined as the change in detector performance between the original signal
and the reconstructed signal
; all changes shown are therefore attributable to the compression–reconstruction process. Parameters
and
were varied, yielding eight configurations per N value (
).
Therefore, we adopt the (9/5/2) configuration (with CR = 3.3 and negligible accuracy gain) as the baseline for subsequent experiments. As discussed eailier, a parameter j was defined to control the trade-off between reconstruction fidelity and task accuracy. Based on this, we designed three model variants:
- Task-Unaware (TU): j = 0. The model focuses solely on signal reconstruction, without regard to the classification task.
- Task-Only (TO):
. The model disregards reconstruction and optimizes exclusively for classification accuracy during compression.
- Task-Aware (TA):
. The model balances reconstruction and classification objectives, with j determining the trade-off.
A 10-fold experiment was conducted per subject, and average accuracy drops are reported in Fig 12, with error bars representing the standard error of the mean (SEM) across subjects. Prior and posterior detectors without compression serve as baselines.
TA = Task Aware, TU = Task Unaware (MSE only). F = Full posterior training, C = Classifier-only fine-tuning. Error bars indicate standard error of the mean (SEM) across subjects. Prior models are compared to the detector-only system without compression; posterior models are compared to the posterior model without any compression and with full fine-tuning. Among posterior C models, TU achieves the smallest accuracy drop overall, with a mean reduction of only even under classifier-only fine-tuning—a statistically significant but practically modest penalty (W = 2.0,
).
Contrary to our initial expectations, the TU model consistently achieved the best overall performance. On prior data, TU outperformed both TO and TA, likely because the larger parameter count of TO (due to chaining the autoencoder and detector) increases overfitting risk, while the multi-objective optimisation of TA introduces additional complexity that may hinder reconstruction quality. For posterior models, TU with full fine-tuning exhibited a negligible accuracy drop relative to the no-compression baseline. Even under the more constrained classifier-only fine-tuning, TU maintained a small average drop of approximately 3%. A Wilcoxon signed-rank test confirmed that this drop is statistically significant (W = 2.0, ), yet the absolute decrease remains modest—about 3% on average—indicating that TU compression remains viable for resource-limited deployment scenarios, such as private clouds where only classifier-side fine-tuning is feasible.
In summary, the TU model demonstrates the following:
- Minimal degradation of prior model performance, and in some cases slight improvements.
- An average accuracy drop of less than 0.5% when used with full posterior fine-tuning.
- A statistically significant but practically small (
) drop under classifier-only fine-tuning, making it suitable for privacy-assured but resource-constrained private cloud deployments.
These findings highlight that for our experimental setting, a simple reconstruction-based compression (TU) is more effective than task-aware or task-only alternatives, offering an attractive trade-off between accuracy and computational efficiency.
Computational efficiency and embedded suitability
In addition to accuracy, practical deployment of BCI models depends critically on computational efficiency and hardware compatibility. To this end, we benchmarked BELT-lite—a constrained instantiation of the BELT architecture with only 1.65k parameters—against EEGNet [47], a widely adopted lightweight CNN for EEG decoding with
2.23k parameters. While EEGNet serves here as a strong compact baseline, it should be noted that the BELT framework is not tied to a specific feature extractor and could in principle integrate EEGNet-style blocks if desired.
Accuracy comparison.
Subject-level 10-fold cross-validation across all 18 subjects yielded mean accuracies of for BELT-lite and
for EEGNet. A Wilcoxon signed-rank test revealed that this difference is statistically significant (W = 20.0, p = 0.0028), indicating that EEGNet maintains a small but reliable accuracy advantage over BELT-lite on the tested cohort. The absolute difference of approximately 2.7 percentage points represents the accuracy cost of BELT-lite’s extreme architectural simplicity.
Runtime evaluation.
Inference latency was assessed on an OrangePi Zero single-board computer equipped with 512 MB RAM and an ARM Cortex-A7 CPU, using TensorFlow Lite models optimized for the target architecture. For each model, we performed 100 independent measurement runs, each averaging the latency over 100 consecutive inferences (10 000 inferences total). BELT-lite achieved a mean latency of ms per sample, while EEGNet required
ms. The difference was highly significant (Wilcoxon W = 0.0,
), corresponding to a
21% reduction in inference time with substantially lower variability. This speedup reflects the efficiency of BELT-lite’s FIR-style convolutions and pooling operations under resource-constrained ARM execution.
Embedded suitability.
The defining advantage of BELT-lite lies in its compatibility with embedded DSP pipelines. Every major computation can be reduced to FIR filtering plus a lightweight nonlinearity, enabling direct mapping to hardware primitives such as ARM Cortex-A NEON SIMD instructions. In contrast, while EEGNet is parameter-efficient, its reliance on depthwise-separable convolutions introduces more irregular memory access patterns, complicating fixed-function DSP implementation. From an embedded deployment perspective, BELT-lite thus offers a favorable trade-off: a modest (2.7 percentage point) accuracy loss is offset by significantly lower latency, lower variance, and superior structural alignment with severely resource-limited platforms.
The practical impact of this latency reduction is threefold. First, lower inference time directly translates to lower energy consumption per decision, which is critical for battery-powered wearable BCIs where every millijoule counts. Second, a 21% faster inference frees processor cycles that can be used for concurrent signal-processing tasks (e.g., artifact rejection, notch filtering) or for more frequent model updates in an online setting, improving overall system responsiveness without upgrading hardware. Third, although a 6.75 ms inference time is negligible relative to the 4 s segment length, real-world BCI pipelines often perform multiple inferences per second (e.g., sliding-window classification); the accumulated latency reduction can improve the perceived interactivity of the system. Moreover, because BELT-lite’s operations map directly onto FIR filters, the model can eventually be implemented on fixed-function DSP accelerators, which can further reduce power by an order of magnitude compared to general-purpose CPU execution — a path not available to EEGNet’s depthwise-separable convolutions.
These characteristics make BELT-lite particularly suitable for edge BCI applications where real-time performance and hardware simplicity are paramount.
Conclusion
Brain–computer interfaces have yet to achieve adoption levels comparable to conventional human–computer interaction devices. We have argued that this gap stems not from processing limitations, but from architectural choices that couple systems too tightly to specific applications, overlook portability, and inadequately address user adaptation, cloud dependence, and privacy.
We proposed BELT—a modular Bayesian Edge–Cloud architecture designed to accommodate deep learning’s computational demands while handling EEG signal variability. By separating general-purpose communication from application-specific logic, BELT enables reusable components with task-specific customization via the Network Tuning Block.
BELT-lite demonstrated practical feasibility: with only 1.65k parameters and FIR-style operations, it matched EEGNet’s accuracy closely while reducing inference latency by 21% on ARM hardware—a highly significant advantage for embedded deployment. Moreover, the low parameter count of BELT-lite also reduces the cloud compute required for subject-specific fine-tuning, which shortens calibration turnaround and lowers cost in pay-as-you-go cloud environments — an important practical advantage for scalable BCI services. Besides, although EEGNet maintained a small (2.7%) accuracy advantage, BELT-lite’s DSP-friendly design makes it particularly suitable for mass-produced devices.
The Bayesian prior–posterior formulation proved essential: posterior fine-tuning significantly improved accuracy across all subjects. Using the augmented prior (), the mean accuracy increased from 77.2% to 87.9% on Dataset B (+10.7 percentage points) and from 56.7% to 80.6% on Dataset A (+23.9 percentage points). Freezing LTI filters during fine-tuning yielded performance indistinguishable from full fine-tuning, while classifier-only fine-tuning incurred a modest but statistically significant penalty of 2–5%—acceptable for resource-limited cloud scenarios.
Signal compression achieved 3.3x bandwidth reduction with negligible accuracy loss in prior models and only a practically small () drop under classifier-only fine-tuning, enabling privacy-preserving edge–cloud communication through latent representations rather than raw neural data.
Together, these findings establish BELT as a principled foundation for scalable, portable, and privacy-aware BCI systems—a pathway toward broader adoption. Future work will focus on hardware-in-the-loop implementations and adaptive privacy mechanisms to accelerate the transition from laboratory demonstrations to everyday applications.
Acknowledgments
The author gratefully acknowledges the support of colleagues and the research community whose feedback and shared resources contributed to the development of this work.
References
- 1. Berger H. Über das Elektrenkephalogramm des Menschen. DMW. 1934;60(51):1947–9.
- 2. Vidal JJ. Toward direct brain-computer communication. Annu Rev Biophys Bioeng. 1973;2:157–80. pmid:4583653
- 3. Sabio J, Williams NS, McArthur GM, Badcock NA. A scoping review on the use of consumer-grade EEG devices for research. PLoS One. 2024;19(3):e0291186. pmid:38446762
- 4. Williams NS, McArthur GM, Badcock NA. 10 years of EPOC: a scoping review of Emotiv’s portable EEG device. BioRxiv. 2020;2020:2020–07.
- 5.
Jiping Z. Brain computer interface system, performance, challenges and applications. JCNS. 2023:46–57. https://doi.org/10.53759/181x/jcns202303005
- 6.
Yadav H, Maini S. Electroencephalogram based brain-computer interface: applications, challenges, and opportunities. Multimed Tools Appl. 2023;:1–45. https://doi.org/10.1007/s11042-023-15653-x pmid:37362726
- 7. Saha S, Mamun KA, Ahmed K, Mostafa R, Naik GR, Darvishi S, et al. Progress in brain computer interface: challenges and opportunities. Front Syst Neurosci. 2021;15:578875. pmid:33716680
- 8. Wolpaw JR, McFarland DJ, Neat GW, Forneris CA. An EEG-based brain-computer interface for cursor control. Electroencephalogr Clin Neurophysiol. 1991;78(3):252–9. pmid:1707798
- 9. Maiseli B, Abdalla AT, Massawe LV, Mbise M, Mkocha K, Nassor NA, et al. Brain-computer interface: trend, challenges, and threats. Brain Inform. 2023;10(1):20. pmid:37540385
- 10. Mridha MF, Das SC, Kabir MM, Lima AA, Islam MR, Watanobe Y. Brain-computer interface: advancement and challenges. Sensors (Basel). 2021;21(17):5746. pmid:34502636
- 11. Schalk G, McFarland DJ, Hinterberger T, Birbaumer N, Wolpaw JR. BCI2000: a general-purpose brain-computer interface (BCI) system. IEEE Trans Biomed Eng. 2004;51(6):1034–43. pmid:15188875
- 12. Wolpaw JR. Brain-computer interfaces as new brain output pathways. J Physiol. 2007;579(Pt 3):613–9. pmid:17255164
- 13.
Danayi A, Soltanian-Zadeh H. An efficient motor imagery BCI classification architecture using non-linear network tuning suitable for cloud-edge environments. 2024 11th International Symposium on Telecommunications (IST). IEEE Xplore Digital Library; 2024. p. 583-–8.
- 14. Christensen JC, Estepp JR, Wilson GF, Russell CA. The effects of day-to-day variability of physiological data on operator functional state classification. Neuroimage. 2012;59(1):57–63. pmid:21840403
- 15. Hameed I, Khan DM, Ahmed SM, Aftab SS, Fazal H. Enhancing motor imagery EEG signal decoding through machine learning: a systematic review of recent progress. Comput Biol Med. 2025;185:109534. pmid:39672015
- 16. Geng Y, Shi S, Hao X. Deep learning-based EEG emotion recognition: a comprehensive review. Neural Comput Appl. 2024;37(4):1919–50.
- 17. Alshehri H, Al-Nafjan A, Aldayel M. Decoding pain: a comprehensive review of computational intelligence methods in electroencephalography-based brain-computer interfaces. Diagnostics (Basel). 2025;15(3):300. pmid:39941230
- 18. Chen H, Li J, He H, Zhu J, Sun S, Li X, et al. Toward the construction of affective brain-computer interface: a systematic review. ACM Comput Surv. 2025;57(6):1–56.
- 19. Hussein AM, Alomari SA, Almomani MH, Zitar RA, Saleem K, Smerat A, et al. A smart IoT-cloud framework with adaptive deep learning for real-time epileptic seizure detection. Circuits Syst Signal Process. 2024;44(3):2113–44.
- 20. Prasanth LL, Uma E. Revolutionizing neurostimulator care: enhancing remote health monitoring through SDN-cloud networks. Telecommun Syst. 2025;88(1):12.
- 21. Uddin R, Koo I. Real-time remote patient monitoring: a review of biosensors integrated with multi-hop IoT systems via cloud connectivity. Appl Sci. 2024;14(5):1876.
- 22.
Danayi A, Sharifian S. Pess-mina: a proactive stochastic task allocation algorithm for faas edge-cloud environments. 2018 4th Iranian Conference on Signal Processing and Intelligent Systems (ICSPIS). IEEE; 2018. p. 27–31.
- 23. Raza H, Rathee D, Zhou S-M, Cecotti H, Prasad G. Covariate shift estimation based adaptive ensemble learning for handling non-stationarity in motor imagery related EEG-based brain-computer interface. Neurocomputing (Amst). 2019;343:154–66. pmid:32226230
- 24.
Wei X. Transfer learning for non-invasive BCI EEG brainwave decoding. In: Majeed APPA, editor. Transfer learning. Rijeka: IntechOpen; 2024. Available from: https://doi.org/10.5772/intechopen.115124
- 25. Li M, Xu D. Transfer learning in motor imagery brain computer interface: a review. J Shanghai Jiaotong Univ (Sci). 2022;29(1):37–59.
- 26. Zheng M, Lin Y. A deep transfer learning network with two classifiers based on sample selection for motor imagery brain-computer interface. Biomed Signal Process Control. 2024;89:105786.
- 27.
Sakhavi S, Guan C. Convolutional neural network-based transfer learning and knowledge distillation using multi-subject data in motor imagery BCI. 2017 8th International IEEE/EMBS Conference on Neural Engineering (NER); 2017. p. 588–91. https://doi.org/10.1109/NER.2017.8008420
- 28. Zhang R, Zong Q, Dou L, Zhao X, Tang Y, Li Z. Hybrid deep neural network using transfer learning for EEG motor imagery decoding. Biomed Signal Process Control. 2021;63:102144.
- 29.
Qin Z, Li Q. High rate BCI with portable devices based on EEG. Smart Health. 2018;9–10:115–28. https://doi.org/10.1016/j.smhl.2018.07.006
- 30. Kumar Y, Kumar J, Sheoran P. Integration of cloud computing in BCI: a review. Biomed Signal Process Control. 2024;87:105548.
- 31. Zao JK, Gan T-T, You C-K, Chung C-E, Wang Y-T, Rodríguez Méndez SJ, et al. Pervasive brain monitoring and data sharing based on multi-tier distributed computing and linked data technology. Front Hum Neurosci. 2014;8:370. pmid:24917804
- 32.
Tarkhani Z, Qendro L, Brown MO, Hill O, Mascolo C, Madhavapeddy A. Enhancing the security & privacy of wearable brain-computer interfaces. arXiv:220107711 [Preprint]. 2022.
- 33. Xia K, Duch W, Sun Y, Xu K, Fang W, Luo H, et al. Privacy-preserving brain–computer interfaces: a systematic review. IEEE Trans Comput Soc Syst. 2023;10(5):2312–24.
- 34.
Khalif AA, Mohamoud HM, Hirsi A, Jama M, Mohamud AH, Audah L, et al. Smart grid data management and analytics using cloud computing: trends and future directions. 2025 International Conference on New Trends in Computing Sciences (ICTCS). IEEE; 2025. p. 472–7.
- 35.
Battula M. A systematic review on a multi-tenant database management system in cloud computing. 2024 International Conference on Cognitive Robotics and Intelligent Systems (ICC-ROBINS). IEEE Xplore Digial Library; 2024. p. 890–7.
- 36. Värbu K, Muhammad N, Muhammad Y. Past, present, and future of EEG-based BCI applications. Sensors. 2022;22(9):3331.
- 37. Fahimi F, Dosen S, Ang KK, Mrachacz-Kersting N, Guan C. Generative adversarial networks-based data augmentation for brain-computer interface. IEEE Trans Neural Netw Learn Syst. 2021;32(9):4039–51. pmid:32841127
- 38. Al-Saegh A, Dawwd SA, Abdul-Jabbar JM. CutCat: an augmentation method for EEG classification. Neural Netw. 2021;141:433–43. pmid:34147756
- 39. Bassi PRAS, Rampazzo W, Attux R. Transfer learning and SpecAugment applied to SSVEP based BCI classification. Biomed Signal Process Control. 2021;67:102542.
- 40. Lorenser T. The DSP capabilities of arm cortex-m4 and cortex-m7 processors. ARM White Paper. 2016;29:1–19.
- 41. Wu H, Niu Y, Li F, Li Y, Fu B, Shi G, et al. A parallel multiscale filter bank convolutional neural networks for motor imagery EEG classification. Front Neurosci. 2019;13:1275. pmid:31849587
- 42. Lee HK, Choi Y-S. Application of continuous wavelet transform and convolutional neural network in decoding motor imagery brain-computer interface. Entropy. 2019;21(12):1199.
- 43. Leeb R, Brunner C, Müller-Putz G, Schlögl A, Pfurtscheller G. BCI Competition 2008–Graz data set B. Graz Univ Technol. 2008;16:1–6.
- 44. Brunner C, Leeb R, Müller-Putz G, Schlögl A, Pfurtscheller G. BCI Competition 2008–Graz data set A. Inst knowl Discov (Lab Brain-Comput Interfaces), Graz Univ Technol. 2008;16(1-6):1.
- 45.
Gulli A, Pal S. Deep learning with Keras. Packt Publishing Ltd; 2017.
- 46. Pfurtscheller G, Neuper C. Motor imagery and direct brain-computer communication. Proc IEEE. 2001;89(7):1123–34.
- 47. Lawhern VJ, Solon AJ, Waytowich NR, Gordon SM, Hung CP, Lance BJ. EEGNet: a compact convolutional neural network for EEG-based brain-computer interfaces. J Neural Eng. 2018;15(5):056013. pmid:29932424