Next Article in Journal
Application of the Mushroom-Picking Optimization Algorithm to the Optimal Control of Discrete-Time Deterministic and Stochastic Dynamical Systems
Previous Article in Journal
Vulnerability Detection Model Based on Clustering-Aware Heterogeneous Code Graphs
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimization of Low-Channel EEG Configurations and Temporal Segmentation for Motor Imagery Classification Using a Flexible EEGNet Framework

by
Yelnur Tuimebay
1,
Chingiz Alimbayev
1,*,
Zhadyra Alimbayeva
1,2,* and
Kassymbek Ozhikenov
1
1
Department of Robotics and Technical Means of Automation, Satbayev University, Almaty 050013, Kazakhstan
2
Department of Information Technology and Library Science, Kazakh National Women’s Teacher Training University, Almaty 050000, Kazakhstan
*
Authors to whom correspondence should be addressed.
Algorithms 2026, 19(7), 588; https://doi.org/10.3390/a19070588 (registering DOI)
Submission received: 19 May 2026 / Revised: 9 July 2026 / Accepted: 13 July 2026 / Published: 16 July 2026

Abstract

Motor imagery-based brain–computer interfaces (BCIs) have attracted significant attention due to their potential applications in assistive technologies, neurorehabilitation, and wearable human–machine interaction systems. However, practical implementation of EEG-based BCIs remains challenging because high-density EEG recordings increase hardware complexity, prolong setup time, and introduce substantial spatial redundancy. In addition, the performance of motor imagery classification strongly depends on preprocessing strategy and temporal segmentation parameters. Unlike previous studies that primarily focused on developing new deep learning architectures, this work proposes a systematic optimization framework for identifying practical low-channel EEG configurations by jointly analyzing channel selection, temporal segmentation, and preprocessing strategies for subject-independent motor imagery classification. This study investigates the influence of EEG channel reduction, temporal window segmentation, and baseline correction on motor imagery classification performance using EEGNet-based deep learning architectures. Experiments were conducted using the publicly available PhysioNet EEG Motor Movement/Imagery dataset under subject-independent evaluation conditions. Several EEG configurations were analyzed, including full-scale 64-channel recordings and reduced 15-, 6-, 3-, and 2-channel motor-cortex setups. The obtained results demonstrate that reduced-channel EEG configurations can achieve performance comparable to full-scale recordings. The best classification accuracy of 65.04% was achieved using a 15-channel motor configuration combined with 2 s sliding-window segmentation and baseline correction, achieving performance comparable to the conventional 64-channel setup (64.76%), while substantially reducing the number of electrodes and hardware complexity. Statistical analysis confirmed that the difference between the two configurations was not significant (paired t-test, p = 0.1684). Furthermore, compact 3-channel configurations maintained classification accuracy above 60%, supporting the feasibility of lightweight wearable EEG systems for practical BCI applications. The experiments additionally revealed that shorter temporal windows improve classification stability and reduce susceptibility to unrelated background EEG activity. Baseline correction significantly improved model generalization by compensating for inter-trial signal variability and slow EEG drift. Overall, the findings of this study demonstrate that careful optimization of electrode selection and preprocessing strategies can substantially improve the practicality of lightweight EEG-based motor imagery classification systems while reducing hardware complexity and preserving competitive performance.

1. Introduction

Brain–computer interfaces (BCIs) enable direct communication pathways between the central nervous system and external devices, bypassing the peripheral nervous system. In recent years, BCI technologies have attracted considerable attention due to their potential applications in neurorehabilitation, assistive technologies, prosthetic control, and human–machine interaction [1,2,3,4]. Among various BCI paradigms, motor imagery (MI)-based systems represent one of the most widely investigated approaches because they enable users to control external devices by imagining movements without generating actual muscle activity. Electroencephalography (EEG) is the most commonly used modality for MI-based BCIs due to its non-invasive nature, high temporal resolution, portability, and relatively low cost compared with other neuroimaging techniques such as functional magnetic resonance imaging (fMRI) or magnetoencephalography (MEG) [5,6].
During motor imagery tasks, characteristic modulations of neural oscillations occur in the sensorimotor cortex, particularly within the μ (8–13 Hz) and β (13–30 Hz) frequency bands [7]. These oscillatory changes manifest as event-related desynchronization (ERD) and event-related synchronization (ERS), providing discriminative information for decoding imagined movements such as left- and right-hand motor imagery [8,9].
Despite significant progress in MI-based EEG decoding, reliable classification of motor imagery signals remains challenging. EEG recordings are inherently noisy, exhibit low signal-to-noise ratios, and are susceptible to artifacts generated by eye movements, muscle activity, and environmental interference. Moreover, EEG signals demonstrate substantial inter-subject variability caused by differences in brain anatomy, neurophysiology, and cognitive strategies used during motor imagery tasks [10,11]. Many existing BCI systems therefore rely on subject-specific calibration sessions to achieve acceptable classification accuracy. However, such calibration procedures considerably limit the practical deployment of BCI systems, particularly in real-world scenarios where rapid setup and ease of use are essential [12].
Another important challenge concerns the number of EEG electrodes required for reliable motor imagery classification. High-density EEG systems typically employ dozens of electrodes distributed across the scalp, increasing hardware complexity, preparation time, computational requirements, and user discomfort. Consequently, reducing the number of EEG channels while preserving decoding performance has become one of the key objectives in the development of lightweight wearable BCI systems [13].
Traditionally, motor imagery decoding has relied on handcrafted feature extraction methods combined with conventional machine learning algorithms. Common Spatial Patterns (CSP) remains one of the most widely used approaches for extracting discriminative spatial features and is frequently combined with classifiers such as Linear Discriminant Analysis (LDA) or Support Vector Machines (SVM) [14,15]. Although CSP-based methods have demonstrated competitive performance under subject-dependent conditions, their ability to generalize across unseen subjects remains limited because handcrafted spatial filters cannot fully capture the large variability inherent in EEG recordings [16].
Recent advances in deep learning have significantly transformed EEG signal analysis by enabling automatic learning of hierarchical spatial–temporal representations directly from raw EEG signals. Convolutional neural networks (CNNs), including EEGNet, DeepConvNet, ShallowConvNet, TCNet, Transformer-based architectures, and attention-enhanced networks, have demonstrated promising performance in motor imagery classification while reducing the need for manual feature engineering [17,18,19,20,21]. Among these approaches, EEGNet has become one of the most widely adopted lightweight architectures due to its efficient use of depthwise and separable convolutions, allowing competitive classification performance with relatively few trainable parameters [20,21]. In parallel, calibration-less BCI approaches have been investigated to reduce or eliminate user-specific calibration requirements, particularly in rehabilitation applications [22].
Although considerable progress has been achieved in lightweight EEG architectures, channel reduction techniques, and cross-subject motor imagery classification, these research directions have largely been investigated independently. Most existing studies primarily focus on developing increasingly sophisticated neural network architectures or optimizing electrode selection separately, while comparatively little attention has been devoted to the combined influence of EEG channel reduction, temporal segmentation, and preprocessing strategies under subject-independent evaluation conditions. As a result, the practical optimization of the complete EEG processing pipeline for lightweight wearable BCI systems remains insufficiently investigated.
To address this limitation, the present study proposes a systematic optimization framework for subject-independent motor imagery classification based on a flexible EEGNet implementation. Unlike previous studies that primarily introduce new deep learning architectures, the proposed framework focuses on jointly optimizing EEG channel selection, temporal segmentation, baseline correction, and preprocessing strategies while preserving a unified lightweight neural network architecture throughout all experiments. This approach enables a systematic evaluation of the trade-off between classification performance, hardware complexity, and computational efficiency using identical learning conditions across multiple EEG channel configurations.
The proposed framework was evaluated using the complete PhysioNet EEG Motor Movement/Imagery dataset comprising 109 subjects under a leave-one-subject-out cross-validation protocol. Five EEG channel configurations, ranging from the conventional 64-channel montage to compact 15-, 6-, 3-, and 2-channel sensorimotor configurations, were systematically investigated together with different temporal segmentation and preprocessing strategies.
The main contributions of this study can be summarized as follows:
A systematic optimization framework is proposed that jointly integrates EEG channel selection, temporal segmentation, and preprocessing strategies within a unified EEGNet pipeline for subject-independent motor imagery classification.
It is demonstrated that substantial EEG channel reduction can be achieved while maintaining statistically comparable classification performance. The optimized 15-channel sensorimotor configuration achieved statistically comparable performance to the conventional 64-channel EEG system while substantially reducing hardware complexity.
The study identifies an effective combination of low-density electrode placement, baseline correction, and short sliding-window temporal segmentation that improves subject-independent motor imagery classification.
Experimental results demonstrate that compact EEG configurations containing only 2–6 sensorimotor electrodes maintain competitive classification accuracy, supporting the development of practical wearable BCI systems.
A comprehensive computational complexity analysis, including model size, trainable parameters, memory footprint, and inference time, demonstrates the suitability of the proposed framework for lightweight real-time brain–computer interface applications.
The remainder of this paper is organized as follows. Section 2 describes the dataset, preprocessing procedures, channel configurations, temporal segmentation strategies, the proposed optimization framework, and the flexible EEGNet architecture. Section 3 presents the experimental results and statistical analysis. Section 4 discusses the findings in relation to previous studies and outlines the limitations of the proposed framework. Finally, Section 5 concludes the paper and suggests directions for future research.

2. Materials and Methods

2.1. Dataset Description

This study was conducted using the publicly available PhysioNet EEG Motor Movement/Imagery dataset, which is widely used in brain–computer interface research for evaluating motor imagery classification methods. The dataset contains electroencephalographic recordings collected from healthy volunteers performing both real and imagined motor tasks under standardized experimental conditions.
For the present work, only motor imagery trials associated with left-hand and right-hand movements were considered. These tasks correspond to the T1 and T2 event markers provided in the original dataset annotations. The revised experiments were conducted using all 109 subjects available in the PhysioNet EEG Motor Movement/Imagery dataset. Only motor imagery trials corresponding to left-hand (T1) and right-hand (T2) tasks were included in the analysis. The complete dataset was processed using the same preprocessing pipeline and subject-independent evaluation protocol to eliminate potential selection bias and improve the generalizability of the experimental findings.
EEG signals were originally recorded using a 64-channel montage based on the international 10–20 electrode placement system. Since the primary objective of this study was to investigate the feasibility of low-density EEG configurations for practical wearable BCI systems, several electrode subsets were evaluated. In addition to the full 64-channel configuration, reduced-channel setups focusing on sensorimotor cortical regions were examined, including 15-channel, 6-channel, 3-channel, and 2-channel configurations.
The 15-channel motor configuration included electrodes located over frontal–central, central, and central–parietal regions (FC3, FC1, FCz, FC2, FC4, C3, C1, Cz, C2, C4, CP3, CP1, CPz, CP2, CP4), as these areas are strongly associated with motor planning and motor imagery activity. Additional reduced configurations were constructed using only the most informative motor-related electrodes, particularly C3, Cz, and C4.
The original EEG recordings were stored in European Data Format (EDF) files and sampled at approximately 160 Hz. Each recording contained continuous multichannel EEG signals together with event annotations indicating the timing and type of motor imagery tasks. Only trials with valid left- and right-hand imagery labels were included in the subsequent preprocessing and classification stages.
To evaluate the influence of spatial resolution on classification performance, all channel configurations were processed under identical preprocessing and training conditions. This allowed a direct comparison between full-scale and reduced-channel EEG setups while minimizing experimental bias. Table 1 summarizes the main characteristics of the dataset and the evaluated EEG configurations.
The evaluated EEG channel configurations are illustrated in Figure 1.
In addition to spatial channel reduction, different temporal segmentation strategies were investigated in order to analyze the effect of epoch duration and baseline correction on motor imagery decoding performance. These preprocessing procedures are described in detail in the following sections.

2.2. Channel Configurations

One of the primary objectives of this study was to investigate the relationship between EEG channel density and motor imagery classification performance. In practical brain–computer interface applications, reducing the number of electrodes is essential for improving portability, reducing setup complexity, and increasing user comfort. Therefore, several channel configurations with different spatial resolutions were systematically evaluated.
The initial configuration utilized the complete 64-channel EEG montage provided in the PhysioNet dataset. This setup covers the entire scalp surface and includes frontal, temporal, parietal, occipital, and central regions. Although full-scalp recordings provide high spatial coverage, they also introduce substantial redundancy and increase the influence of non-task-related neural activity and physiological artifacts.
To investigate whether equivalent classification performance could be achieved using fewer electrodes, a reduced 15-channel motor-cortex configuration was designed. This configuration focused specifically on frontal–central, central, and central–parietal regions that are strongly associated with motor planning and motor imagery activity. The selected channels included FC3, FC1, FCz, FC2, FC4, C3, C1, Cz, C2, C4, CP3, CP1, CPz, CP2, and CP4.
In addition to the 15-channel setup, further channel reduction experiments were performed using compact 6-channel, 3-channel, and 2-channel configurations. The 6-channel arrangement included C3, Cz, C4, CP3, CPz, and CP4, while the 3-channel configuration used only C3, Cz, and C4. The most minimal configuration consisted exclusively of C3 and C4 electrodes.
The rationale behind these reduced configurations is based on the neurophysiology of motor imagery. Electrodes positioned over the sensorimotor cortex are known to capture event-related desynchronization and synchronization patterns within the μ- and β-frequency bands during imagined hand movements. Consequently, concentrating on these regions may preserve the most informative EEG activity while minimizing irrelevant spatial information. The electrode positions corresponding to the evaluated channel configurations are shown in Figure 2.
Table 2 summarizes all electrode configurations evaluated in this study.
The evaluated channel configurations were selected to represent progressively reduced levels of spatial resolution commonly encountered in EEG-based BCI research. The 64-channel montage served as the conventional high-density reference configuration. The 15-channel configuration was designed to comprehensively cover the sensorimotor cortex while substantially reducing hardware complexity. The 6-channel and 3-channel configurations represent intermediate and compact sensorimotor montages frequently adopted in practical BCI systems, whereas the 2-channel configuration was included to investigate the feasibility of ultra-low-density EEG acquisition for highly wearable applications. This progressive reduction strategy enabled a systematic analysis of the trade-off between spatial resolution, classification performance, and hardware complexity under identical experimental conditions.
All channel configurations were evaluated using identical preprocessing, segmentation, and training procedures in order to ensure a fair comparison between full-scale and reduced-channel EEG systems.

2.3. EEG Preprocessing

EEG preprocessing was performed to improve signal quality, suppress physiological and environmental noise, and ensure consistency across all experimental configurations. Since motor imagery EEG recordings are characterized by low signal-to-noise ratio and substantial inter-subject variability, a standardized preprocessing pipeline was applied to all datasets prior to model training.
The preprocessing workflow consisted of channel selection, temporal filtering, baseline correction, normalization, and epoch segmentation. All preprocessing procedures were implemented identically for every channel configuration in order to maintain consistency during comparative analysis. The overall EEG preprocessing workflow is illustrated in Figure 3.
Initially, EEG recordings stored in EDF were inspected for channel consistency and annotation validity. Channel names were standardized to account for variations in electrode labeling across recordings. Only trials containing valid T1 (left-hand imagery) and T2 (right-hand imagery) event markers were retained for further processing.
To suppress power-line interference, a 50 Hz notch filter was applied to all EEG recordings. Subsequently, band-pass filtering was performed to isolate frequency components associated with motor imagery activity. For the primary preprocessing pipeline, finite impulse response (FIR) filtering within the 8–30 Hz range was applied in order to preserve μ- and β-band oscillations relevant to sensorimotor rhythm modulation. In the filterbank experiments, fourth-order Butterworth band-pass filters were additionally used to extract narrower frequency sub-bands.
Baseline correction was introduced as an additional normalization strategy for selected experimental configurations. In these cases, a pre-stimulus interval from −0.5 to 0 s relative to cue onset was incorporated into the extracted EEG epoch. The average baseline activity was then used to normalize the subsequent motor imagery segment. This procedure was intended to reduce inter-trial amplitude variability and compensate for slow signal drifts caused by physiological and recording-related factors.
Two temporal segmentation strategies were evaluated in this study. The first utilized conventional 4 s epochs beginning at cue onset, while the second employed shorter 2 s windows combined with sliding-window augmentation. For the 2 s configuration, overlapping windows were generated across the motor imagery interval in order to increase the number of training samples and improve model generalization. The sliding-window augmentation strategy used in this study is illustrated in Figure 4.
After segmentation, all EEG epochs underwent z-score normalization independently for each channel. Signal amplitudes were centered by subtracting the mean and scaled using the standard deviation of the corresponding epoch. This normalization procedure reduced amplitude variability across subjects and stabilized the optimization process during neural network training.
The final preprocessed EEG samples were represented as two-dimensional matrices consisting of channels and temporal samples. Depending on the selected channel configuration and epoch duration, these matrices served as input to the EEGNet-based classification models.
Table 3 summarizes the preprocessing procedures applied throughout the study.

2.4. Temporal Segmentation Strategy

Temporal segmentation plays a critical role in motor imagery EEG classification, as the duration and positioning of analysis windows directly influence the amount of discriminative neural information available to the model. In this study, two segmentation approaches were investigated in order to evaluate the effect of epoch duration on classification performance and training stability.
The first approach utilized conventional 4 s epochs beginning immediately after cue onset. This strategy preserves the complete motor imagery interval and is commonly applied in EEG-based BCI studies. However, long temporal windows may also include irrelevant neural activity, post-imagery relaxation phases, and additional noise components that can negatively affect classification robustness.
To address this limitation, a second strategy based on shorter 2 s windows was implemented. Instead of processing the entire motor imagery interval as a single segment, the EEG recordings were divided into multiple overlapping sub-windows using a sliding-window approach. This procedure substantially increased the number of available training samples while simultaneously allowing the neural network to focus on more localized temporal patterns associated with event-related desynchronization. A comparison of the two temporal segmentation strategies is presented in Figure 5.
For the 2 s configuration, overlapping windows were extracted sequentially across the motor imagery interval using a fixed stride. As a result, each original trial generated multiple partially overlapping EEG segments, effectively functioning as a data augmentation strategy. This approach increased the diversity of training samples without introducing synthetic signal modifications.
An additional advantage of shorter windows is the improved temporal localization of motor imagery activity. Early phases of imagined movement are typically characterized by stronger μ- and β-rhythm modulation, whereas longer windows may incorporate unrelated background activity and reduce feature discriminability. Experimental observations demonstrated that the 2 s segmentation strategy consistently produced more stable validation performance compared to the standard 4 s configuration.
For baseline-corrected experiments, temporal windows were shifted to include a pre-stimulus interval ranging from −0.5 to 0 s relative to cue onset. In these cases, the extracted epoch preserved the same total duration while incorporating baseline activity for normalization purposes.
All segmented EEG epochs were subsequently normalized and transformed into channel-by-time matrices prior to classification. The final input dimensions depended on both the selected channel configuration and epoch duration.
Table 4 summarizes the temporal segmentation strategies evaluated in this work.
The influence of these segmentation strategies on motor imagery classification accuracy is analyzed in detail in the Section 3.
The 2-s and 4-s window lengths were selected because they represent two of the most commonly used temporal segmentation strategies in motor imagery BCI research. The 4-s window corresponds to the conventional duration of the motor imagery task in the PhysioNet protocol, whereas the 2-s sliding window was selected to evaluate whether shorter task-focused segments can better capture ERD/ERS dynamics while increasing the number of training samples through overlapping segmentation.

2.5. EEGNet Architecture

To perform motor imagery classification under different channel-density conditions, this study employed the EEGNet architecture, a compact convolutional neural network specifically designed for EEG-based brain–computer interface applications. EEGNet was selected due to its lightweight structure, low computational complexity, and demonstrated effectiveness in extracting spatial–temporal EEG representations from relatively small datasets.
Unlike conventional deep convolutional networks originally developed for computer vision tasks, EEGNet incorporates depthwise and separable convolutions specifically adapted for multichannel electrophysiological signals. This design enables efficient learning of both temporal frequency-related features and spatial dependencies between EEG electrodes while maintaining a relatively small number of trainable parameters.
In the present study, a flexible implementation of EEGNet was developed to support different EEG channel configurations and temporal window lengths. Rather than modifying the network architecture or trainable parameters, the framework automatically adapts the input dimensions according to the selected channel configuration while preserving the same network structure across all experiments. The architecture of the proposed flexible EEGNet model is shown in Figure 6.
The first stage of the network performs temporal convolution using one-dimensional kernels applied across the time axis. This operation captures rhythmic EEG activity associated with motor imagery, particularly within the μ- and β-frequency bands. Subsequently, depthwise convolution is applied across spatial dimensions in order to learn channel-specific spatial filters corresponding to sensorimotor cortical activity.
Following spatial filtering, separable convolution layers are used to further refine the extracted features while significantly reducing the number of trainable parameters. Batch normalization and ELU activation functions were incorporated after convolutional operations to stabilize training and improve nonlinear feature representation. Average pooling layers were used for temporal dimensionality reduction, while dropout regularization was applied to mitigate overfitting.
The final classification stage consists of a fully connected dense layer with softmax activation producing probability estimates for binary motor imagery classification (left-hand versus right-hand imagery).
The implemented EEGNet model remained computationally lightweight throughout all experiments. The adaptive configuration contained approximately 810 parameters, including both trainable and non-trainable components. This compact design is particularly advantageous for practical wearable BCI systems operating under limited computational resources.
Table 5 summarizes the main architectural components of the implemented EEGNet framework.
In addition to the standard EEGNet implementation, lightweight and modified variants of the architecture were also evaluated during comparative experiments. These models incorporated reduced parameter configurations and alternative preprocessing strategies intended to improve performance under low-channel EEG conditions. However, all architectures retained the same general spatial–temporal learning principles inherent to the original EEGNet framework.
Among the evaluated variants, EEGNet_Lite_boosted represents an enhanced version of the lightweight EEGNet architecture specifically designed to improve feature extraction from motor imagery EEG signals. In contrast to the baseline EEGNet_Lite model, the boosted configuration incorporates a filterbank preprocessing stage consisting of five frequency bands (8–12 Hz, 12–16 Hz, 16–20 Hz, 20–24 Hz, and 24–30 Hz) extracted using fourth-order Butterworth band-pass filters. In addition, a band-attention mechanism was introduced to automatically estimate the relative importance of each frequency band through Softmax-based weighting. The extracted representations from all frequency bands were processed using a shared TimeDistributed feature extraction block and subsequently combined using weighted averaging. These modifications were introduced to improve frequency-specific feature learning while maintaining a lightweight network structure suitable for practical BCI applications.

2.6. Proposed Optimization Framework

Unlike previous studies that primarily concentrate on developing increasingly sophisticated deep learning architectures for motor imagery classification, the present study introduces a systematic optimization framework that addresses the entire EEG processing pipeline. The proposed methodology is based on the hypothesis that classification performance is determined not only by the neural network architecture itself but also by the joint optimization of spatial electrode selection, temporal segmentation, and signal normalization. Consequently, rather than modifying the internal structure of EEGNet, the proposed framework optimizes the information presented to the network while maintaining a unified classification architecture throughout all experiments.
The framework consists of three sequential optimization stages, each targeting a specific component of the EEG decoding pipeline (Figure 7).
Spatial optimization aims to determine the minimum electrode configuration capable of preserving discriminative motor imagery information. Five channel configurations (64, 15, 6, 3, and 2 channels) were systematically evaluated to quantify the trade-off between spatial resolution and classification performance. By progressively reducing the number of electrodes while maintaining identical training conditions, the framework identifies configurations that minimize hardware complexity without compromising decoding accuracy.
Temporal optimization investigates the influence of epoch duration on feature representation. Conventional 4 s motor imagery epochs are compared with a 2 s sliding-window segmentation strategy. The latter increases the number of informative training samples while emphasizing the temporal intervals where event-related desynchronization and synchronization are most pronounced. This stage therefore optimizes the temporal representation of motor imagery signals prior to feature extraction.
Signal normalization optimization incorporates baseline correction using a pre-stimulus reference interval to reduce inter-trial variability and compensate for slow signal drift. The normalization process improves signal consistency across trials and subjects, thereby enhancing the robustness and generalization capability of the subsequent classifier.
Following these optimization stages, the preprocessed EEG signals are processed using a unified EEGNet architecture under identical training and evaluation conditions. This design ensures that all observed performance differences arise exclusively from the proposed optimization strategy rather than modifications to the neural network itself.
The proposed framework can be expressed as a sequential optimization process:
Χ = F E E G N e t N T S X
where X denotes the raw EEG recording, S() represents spatial optimization through channel selection, T() denotes temporal optimization by segmentation, N() corresponds to signal normalization including baseline correction, and F E E G N e t denotes the EEGNet classifier. The optimized representation Χ   is subsequently used for motor imagery classification.
Unlike conventional EEGNet-based studies that primarily emphasize architectural modifications, the proposed framework treats EEG decoding as a multi-stage optimization problem. By jointly optimizing spatial, temporal, and preprocessing components within a unified classification pipeline, the proposed methodology provides a practical and computationally efficient solution for lightweight wearable brain–computer interface systems.
To further clarify the novelty of the proposed framework, Table 6 summarizes the methodological differences between representative EEGNet-based studies and the proposed approach, highlighting the distinct contributions of the present work.
Unlike previous EEGNet-based studies, which primarily improve classification performance through architectural modifications (e.g., convolutional enhancements, attention mechanisms, or Transformer integration), the proposed framework focuses on optimizing the entire EEG decoding pipeline while preserving the original lightweight EEGNet architecture. Specifically, the proposed methodology systematically investigates the combined effects of EEG channel configuration, temporal segmentation, and baseline correction under a unified subject-independent evaluation protocol. Therefore, the novelty of the proposed framework lies not in introducing a new network architecture, but in demonstrating that systematic optimization of the EEG processing pipeline can achieve statistically comparable classification performance while substantially reducing electrode density, hardware complexity, and computational cost.

2.7. Training Procedure

All classification models were trained and evaluated under identical experimental conditions in order to ensure a fair comparison between different channel configurations and preprocessing strategies. The training pipeline was implemented using the TensorFlow (v2.18.0) and Keras (v3.8.0) frameworks.
For all experiments, EEG data were divided into training, validation, and testing subsets using a subject-independent evaluation protocol. To assess model generalization across different individuals, Leave-One-Subject-Out (LOSO) validation was employed during comparative analysis. Under this scheme, EEG recordings from one subject were reserved for testing, while recordings from the remaining subjects were used for model training and validation.
The Adam optimization algorithm was used during network training with an initial learning rate of 0.001. The parameter update process can be expressed as
θ t + 1 = θ t α m ^ t v t ^ +
where θ t denotes model parameters at iteration t, α is the learning rate, m ^ t and v t ^ represent bias-corrected first and second moment estimates, and ϵ is a numerical stability constant.
For the final Flexible EEGNet model used to obtain the main reported results, mini-batch training was performed with a batch size of 64 samples, and the maximum number of training epochs was set to 50. EarlyStopping was employed to terminate training automatically when the validation loss did not improve for 10 consecutive epochs, thereby preventing overfitting and improving training efficiency.
To reduce overfitting and improve convergence stability, several regularization techniques were incorporated into the training procedure. A dropout rate of 0.5 was applied after the convolutional blocks to reduce overfitting and improve model generalization. The dropout operation can be represented as:
y i = 0 ,   w i t h   p r o b a b l y   p x i 1 p ,   o t h e r w i s e  
where p denotes the dropout probability and x i represents the input activation.
Batch normalization layers were additionally employed after convolutional operations to stabilize feature distributions during optimization. The normalized activation was computed as
x ^ = x μ σ 2 + ϵ
where µ and σ 2 correspond to batch mean and variance, respectively.
An example of the training and validation convergence curves is presented in Figure 8.
To further improve training robustness, EarlyStopping and ReduceLROnPlateau callbacks were incorporated into the optimization pipeline. Training was automatically terminated when validation performance ceased improving for a predefined number of epochs. Simultaneously, the learning rate was adaptively reduced during plateau phases in order to facilitate smoother convergence and avoid unstable oscillations.
For all EEGNet-based experiments, standard Glorot Uniform (Xavier) initialization was applied to convolutional and dense layers. This initialization strategy samples weights from the following distribution:
W ~ U 6 n i n + n o u t , 6 n i n + n o u t ,
where n i n and n o u t denote the numbers of input and output units.
The final classification layer employed the Softmax activation function to estimate posterior class probabilities for binary motor imagery classification:
P y i = e z i K j = 1 e z j
where z i represents the output logitcorresponding to class i, and K is the total number of classes.
The comparative experiments involving different EEGNet variants (including the baseline, lightweight, and modified models) were conducted using their respective training configurations while maintaining a consistent evaluation protocol. Table 7 summarizes the general training and optimization settings used across the comparative experiments.
All experiments were conducted under identical preprocessing and optimization conditions to ensure reproducibility and minimize potential bias during comparative evaluation.
Table 8 presents the final hyperparameter settings and implementation details of the proposed Flexible EEGNet framework used to obtain the main results reported in this study.
The same training configuration was used for the optimized 15-channel experiments to ensure reproducibility and to minimize variability caused by inconsistent implementation settings.

2.8. Evaluation Metrics and Statistical Analysis

Classification performance was evaluated using accuracy, F1-score, and ROC-AUC metrics. Accuracy was used as the primary indicator of overall classification performance and was calculated as
A c c u r a c y = T P + T N T P + T N + F P + F N
where TP, TN, FP and FN denote true positive, true negative, false positive and negative predictions.
Since motor imagery EEG classification is characterized by substantial inter-subject variability, the F1-score was additionally used to evaluate the balance between precision and recall:
F 1 = 2 × P r e c i s i o n × R e c a l l P r e c i s i o n + R e c a l l
Receiver Operating Characteristic (ROC) analysis and Area Under the Curve (AUC) values were also computed to assess the discriminative capability of the evaluated models under different classification thresholds. The ROC curves obtained for the evaluated EEGNet configurations are shown in Figure 9.
To evaluate model robustness under subject-independent conditions, Leave-One-Subject-Out (LOSO) validation was employed throughout all experiments. Table 9 summarizes the evaluation metrics used in this study.
Using the LOSO protocol provides a more realistic assessment of the quality of models, since it eliminates information leakage between training and test data and simulates the practical scenario of using a BCI system for a new user.
To determine whether the observed differences in classification performance between the evaluated EEG channel configurations were statistically significant, each experiment was independently repeated using 10 different random initialization seeds while maintaining identical preprocessing, training, and evaluation settings. The resulting classification accuracies were subsequently subjected to statistical inference.
The statistical significance of the performance difference between the proposed 15-channel configuration and the conventional 64-channel configuration was first evaluated using the paired Student’s t-test. Let d i = x i y i where x i and y i   denote the classification accuracies obtained from the 15-channel and 64-channel configurations during the iii-th experimental repetition, respectively. The paired t-statistic is computed as
t = d ¯ s d / n
where
d ¯ = 1 n i = 1 n d i
Is the mean paired difference,
s d = 1 n 1 i = 1 n ( d i d ¯ ) 2
is the standard deviation of the paired differences, and n = 10 denotes the number of repeated experiments.
To further verify the robustness of the statistical conclusions without assuming data normality, the Wilcoxon signed-rank test was additionally performed. This non-parametric test evaluates whether the median difference between paired observations is significantly different from zero.
Besides hypothesis testing, the practical significance of the observed performance differences was quantified using Cohen’s effect size, calculated as
d = d ¯ s d
According to Cohen’s criterion, effect sizes of approximately 0.2, 0.5, and 0.8 indicate small, medium, and large effects, respectively.
Furthermore, 95% confidence intervals (95% CI) were calculated for the mean accuracy difference to estimate the uncertainty associated with the observed performance improvement. Statistical significance was established at a significance level of α = 0.05. All statistical analyses were performed using the SciPy statistical package in Python (v3.11).

3. Results

3.1. Influence of Temporal Segmentation Strategy

One of the primary objectives of this study was to evaluate the effect of temporal window length on motor imagery classification performance. Two segmentation strategies were investigated: conventional 4 s epochs and shorter 2 s windows combined with sliding-window augmentation.
The experimental results demonstrated a clear advantage of the 2 s segmentation strategy across both full-scale and reduced-channel EEG configurations. In particular, the 15-channel motor configuration combined with baseline correction achieved the highest overall classification accuracy of 65.04%, outperforming all corresponding 4 s variants.
Table 10 presents the comparative results obtained using different temporal window lengths and preprocessing strategies.
The obtained results indicate that shorter EEG segments provide more stable and discriminative representations of motor imagery activity. Unlike conventional 4 s epochs, the 2 s sliding-window approach concentrates on the most informative portion of the motor imagery response while simultaneously increasing the number of training samples through overlapping augmentation.
Furthermore, shorter windows appear less susceptible to post-imagery noise and unrelated background activity, which may partially explain the improved validation stability observed during model training.

3.2. Effect of Baseline Correction

Baseline correction demonstrated a substantial influence on EEG classification performance, particularly for the 2 s segmentation strategy. Incorporating a pre-stimulus interval prior to cue onset significantly improved model generalization across both 64-channel and reduced-channel configurations.
For the 64-channel setup, baseline correction increased test accuracy from 55.84% to 64.76%. Similarly, in the 15-channel motor configuration, accuracy improved from 59.82% to 65.04%.
These findings suggest that baseline normalization effectively reduces inter-trial variability and compensates for slow amplitude drift commonly observed in EEG recordings. The influence of baseline correction on classification accuracy is illustrated in Figure 10.
The positive impact of baseline correction was especially noticeable in reduced-channel configurations, where minimizing signal variability becomes increasingly important due to limited spatial information. By normalizing EEG activity relative to the pre-stimulus resting state, the model becomes less sensitive to subject-specific amplitude fluctuations and recording artifacts.
However, baseline correction did not improve performance for all configurations. In particular, several 4 s baseline-corrected experiments demonstrated unstable convergence and near-random classification performance. This behavior suggests that excessively long baseline-integrated windows may introduce additional low-frequency variability that negatively affects temporal feature extraction.
These findings suggest that the effect of baseline correction depends strongly on the temporal structure of the EEG segment. In the 2 s sliding-window configuration, the pre-stimulus baseline appears to improve classification by normalizing trial-specific amplitude offsets and slow signal drift before the most informative motor imagery interval is analyzed. This interpretation is consistent with the observed increase in accuracy from 55.84% to 64.76% for the 64-channel 2 s configuration and from 59.82% to 65.04% for the 15-channel 2 s configuration. In contrast, for the 4 s baseline-corrected configuration, the inclusion of a longer post-cue interval may introduce additional non-task-related activity, low-frequency fluctuations, and post-imagery variability, which can reduce temporal feature consistency and destabilize training. This is supported by the observed decrease in accuracy from 64.44% to 50.37% for the 64-channel 4 s configuration and from 56.30% to 50.37% for the 15-channel 4 s configuration. These observations are consistent with previous studies showing that baseline normalization can improve the consistency of time–frequency EEG representations, but that the choice of baseline interval and analysis window can substantially influence ERD/ERS estimation in motor imagery-based BCI29,30].

3.3. Channel Reduction Analysis

To investigate the feasibility of lightweight EEG-based brain–computer interface (BCI) systems, a systematic channel reduction analysis was conducted using progressively smaller EEG channel configurations. Since the proposed 15-channel motor-cortex configuration achieved only a marginally higher average classification accuracy than the conventional 64-channel configuration (65.04% vs. 64.76%), additional statistical analyses were performed to determine whether the observed difference represented a statistically significant improvement or random experimental variation. The statistical analysis was performed using the results obtained from ten independent experimental runs with different random initialization seeds, following the procedure described in Section 2.8.
Table 11 summarizes the statistical comparison between the proposed 15-channel configuration and the conventional 64-channel configuration.
None of the statistical tests indicated a significant difference between the proposed 15-channel and conventional 64-channel configurations (p > 0.05), confirming that the observed accuracy improvement is within normal experimental variability.
The paired Student’s t-test indicated that the difference in classification accuracy between the 15-channel and 64-channel configurations was not statistically significant (p = 0.1684). Similar conclusions were obtained using the Wilcoxon signed-rank test (p = 0.2017). Furthermore, the small effect size (Cohen’s d = 0.29) together with the 95% confidence interval including zero indicates that both channel configurations achieved statistically comparable performance. Therefore, the principal advantage of the proposed framework lies not in achieving significantly higher classification accuracy but in maintaining equivalent decoding performance while substantially reducing the number of required electrodes.
To further investigate the influence of electrode density on motor imagery classification, additional experiments were conducted using progressively smaller EEG channel configurations. The corresponding classification results are summarized in Table 12.
The classification performance obtained for all evaluated channel configurations is illustrated in Figure 11.
As shown in Table 11 and Figure 11, reducing the number of EEG channels did not lead to a proportional decrease in classification performance. The proposed 15-channel motor-cortex configuration achieved the highest average classification accuracy while requiring approximately four times fewer electrodes than the conventional 64-channel EEG montage. These findings indicate that the most informative motor imagery features are concentrated within the sensorimotor cortex, whereas additional electrodes located over frontal, temporal, parietal, and occipital regions contribute relatively limited task-relevant information.
Further channel reduction to 6, 3, and 2 electrodes resulted in a gradual decrease in classification accuracy, reflecting the progressive loss of spatial information available for feature extraction. Nevertheless, the 3-channel configuration, consisting of electrodes C3, Cz, and C4, maintained classification accuracy above 60%, demonstrating that these sensorimotor electrodes preserve the essential cortical activity required for reliable motor imagery decoding. Although the 2-channel configuration achieved the lowest classification accuracy, its performance remained sufficient for applications where portability, low hardware complexity, and rapid system deployment are prioritized over maximal decoding accuracy.
Overall, these results demonstrate that appropriate electrode selection is more important than increasing channel density. By optimizing electrode placement over task-relevant cortical regions, the proposed framework substantially reduces hardware complexity, electrode preparation time, and computational requirements while maintaining classification performance statistically comparable to that of the conventional 64-channel EEG configuration. These characteristics make the proposed framework particularly suitable for practical lightweight wearable brain–computer interface applications.

3.4. Comparison of Classification Models

To further evaluate the effectiveness of the proposed preprocessing and channel optimization strategies, several classical machine learning and deep learning approaches were comparatively analyzed. The evaluated models included CSP-based methods combined with LDA and SVM classifiers, the original EEGNet architecture, and lightweight EEGNet variants (Figure 12).
Table 13 summarizes the overall classification performance obtained using the evaluated models.
The obtained results demonstrate that no single model consistently dominated across all evaluation metrics. Classical CSP-based approaches achieved relatively stable accuracy values, whereas deep learning models exhibited improved balance between precision and recall, reflected by higher F1-scores in several configurations.
The original EEGNet architecture achieved moderate overall performance, while lightweight and tuned variants demonstrated competitive F1-score values despite lower average accuracy. In particular, the EEGNet_Lite_boosted configuration achieved one of the highest F1-scores among all evaluated models, suggesting improved class balance under subject-independent conditions.
At the same time, several deep learning configurations demonstrated reduced accuracy variability compared to traditional CSP-based approaches. This behavior may indicate improved robustness against inter-subject differences and unstable EEG patterns.
However, the experimental results also reveal the inherent difficulty of motor imagery EEG classification under subject-independent evaluation protocols. Considerable variability between subjects was observed across all tested architectures, indicating that generalization remains a major challenge for practical BCI systems.

3.5. Evaluation on the Complete PhysioNet Dataset

To further evaluate the robustness and generalizability of the proposed framework, additional experiments were performed using all 109 subjects available in the PhysioNet EEG Motor Movement/Imagery dataset. The same optimized preprocessing pipeline was applied, including the 15-channel sensorimotor configuration, 2 s sliding-window segmentation, baseline correction, and the original EEGNet architecture. All training parameters and evaluation procedures remained identical to those used in the previous experiments to ensure a fair comparison.
The complete dataset generated 78,820 training windows and 19,720 testing windows. Under these conditions, the proposed framework achieved a classification accuracy of 67.40%, which is slightly higher than the 65.04% obtained using the initial 50-subject subset. This improvement demonstrates that the proposed optimization framework maintains stable performance when evaluated on a substantially larger subject population. More importantly, these results indicate that the reported performance is not influenced by subject selection bias and confirm the generalizability of the proposed lightweight EEG decoding framework. The performance comparison between the initial 50-subject subset and the complete 109-subject PhysioNet dataset is presented in Table 14.

3.6. Subject-Wise Performance

To investigate inter-subject variability and model generalization capability, subject-wise analysis was performed using Leave-One-Subject-Out validation. Classification accuracy was calculated independently for each subject across multiple EEGNet configurations (Figure 13).
Table 15 presents subject-wise classification results for the evaluated deep learning models.
Considerable variability between subjects was observed across all evaluated models. Certain subjects achieved relatively high classification accuracy, while others remained close to random-chance performance. This phenomenon is commonly observed in motor imagery EEG classification and reflects substantial differences in neurophysiological response patterns, signal quality, and subject-specific motor imagery strategies.
The results additionally demonstrate that lightweight EEGNet configurations maintain relatively stable performance despite substantial channel reduction. Although reduced-channel setups generally produced lower average accuracy, their performance remained sufficiently consistent for practical wearable BCI scenarios.
The observed inter-subject variability further highlights the importance of subject-adaptive training strategies and transfer learning approaches for future EEG-based brain–computer interface systems.

3.7. ROC and AUC Analysis

Receiver Operating Characteristic analysis was performed to further evaluate the discriminative capability of the evaluated EEGNet-based models. Table 16 summarizes the obtained AUC values. The ROC curves for the evaluated EEGNet-based models are presented in Figure 14.
Among the evaluated models, the tuned EEGNet configuration demonstrated the highest AUC value, indicating improved class separability compared to other lightweight variants. In contrast, the EEGNet_Lite and EEGNet_Lite_boosted models achieved AUC values close to 0.5, reflecting the difficulty of robust subject-independent motor imagery classification under limited-channel conditions.
Despite moderate AUC values, the obtained results remain consistent with the overall trends observed in the accuracy and F1-score analysis. The experiments confirm that lightweight architectures can maintain competitive performance while substantially reducing model complexity and electrode density.

3.8. Training Stability and Overfitting Analysis

An additional objective of this study was to investigate the training stability of EEGNet-based models under different preprocessing and segmentation strategies. Due to the relatively limited size of motor imagery EEG datasets and substantial inter-subject variability, deep learning models are highly susceptible to overfitting during optimization.
During preliminary experiments, configurations without baseline correction frequently demonstrated unstable validation behavior. In several cases, training accuracy continued increasing while validation performance stagnated or deteriorated, indicating progressive memorization of subject-specific signal characteristics rather than robust feature extraction (Figure 15).
This phenomenon was particularly noticeable for long 4 s EEG epochs, where extended temporal windows introduced additional background activity and low-frequency signal fluctuations unrelated to motor imagery processing. As a consequence, the network tended to overfit noise components instead of learning stable sensorimotor representations.
In contrast, the 2 s sliding-window strategy produced substantially more stable convergence patterns. The increased number of augmented training samples improved feature diversity and reduced the risk of memorization during optimization. Baseline correction further stabilized the learning process by reducing inter-trial amplitude variability and compensating for slow EEG drift.
The effectiveness of early stopping was also confirmed experimentally. In several configurations, training was automatically terminated after validation performance ceased improving, thereby preventing catastrophic overfitting. For example, the 64-channel 2 s configuration without baseline correction reached training accuracy values close to 80%, while validation accuracy remained significantly lower. The convergence behavior observed across different experimental configurations is summarized in Table 17.
The obtained findings indicate that preprocessing strategy plays a critical role not only in classification accuracy but also in optimization stability and model generalization. Shorter EEG windows combined with baseline correction consistently produced more reliable convergence behavior across both full-scale and reduced-channel configurations.
Overall, the experimental observations suggest that compact EEGNet-based architectures can achieve stable performance under low-channel conditions when appropriate preprocessing and regularization strategies are applied.

3.9. Computational Complexity Analysis

Since the proposed framework is intended for lightweight wearable brain–computer interface applications, its computational efficiency was quantitatively evaluated. In addition to classification performance, practical deployment requires low memory consumption, a compact model size, and fast inference speed. Therefore, the proposed EEGNet-based framework was analyzed in terms of the number of trainable parameters, storage requirements, memory footprint, and inference time.
The computational complexity evaluation was performed using the optimal experimental configuration consisting of the 15-channel motor-cortex montage, 2 s sliding-window segmentation, and baseline correction. All measurements were conducted using the same hardware and software environment employed for model training. The computational complexity of the proposed EEGNet framework is summarized in Table 18.
The proposed EEGNet framework contains only 810 trainable parameters and occupies approximately 51 KB of storage, making it substantially smaller than conventional deep convolutional neural networks used for motor imagery classification. Furthermore, the average inference time of 12.85 ms per EEG sample enables real-time processing, as EEG windows are typically updated every 100 ms or longer in practical BCI systems.
An additional computational advantage is achieved through channel reduction. Using the proposed 15-channel motor-cortex configuration instead of the conventional 64-channel EEG montage decreases the input dimensionality by approximately 4.3 times, thereby reducing data acquisition, transmission, and preprocessing requirements while maintaining classification performance comparable to the full-channel configuration.
These results confirm that the proposed framework is suitable for resource-constrained wearable and embedded BCI platforms, where computational efficiency is as important as classification accuracy. A comparison of the computational complexity of different deep learning models is presented in Table 19.
The obtained computational results further demonstrate that reducing the number of EEG channels not only preserves statistically comparable classification performance but also substantially decreases computational requirements. Consequently, the proposed lightweight EEGNet framework is well suited for real-time wearable brain–computer interface applications operating under limited computational resources.

4. Discussion

The experimental results demonstrate that the proposed optimization framework successfully identifies an efficient trade-off between classification performance and hardware complexity for subject-independent motor imagery classification. Although the proposed 15-channel configuration achieved only a marginally higher average classification accuracy than the conventional 64-channel EEG setup, the statistical analysis confirmed that this difference was not statistically significant (p > 0.05). Consequently, the principal contribution of this work should not be interpreted as improving classification accuracy, but rather as maintaining statistically comparable decoding performance while substantially reducing the number of required EEG electrodes.
One of the most important observations is that the majority of discriminative motor imagery information is concentrated within the sensorimotor cortex. The optimized 15-channel configuration, which primarily covers the frontal–central, central, and centro-parietal regions, preserved nearly the same decoding performance as the full 64-channel montage. In contrast, further reduction to 6-, 3-, and 2-channel configurations resulted in a gradual decrease in classification accuracy due to the progressive loss of spatial information. Nevertheless, the 3-channel configuration maintained classification accuracy above 60%, indicating that reliable motor imagery decoding remains feasible using only a minimal set of sensorimotor electrodes. These findings are consistent with the well-established neurophysiological characteristics of motor imagery, where event-related desynchronization and synchronization predominantly occur over the primary motor cortex.
A plausible explanation for this observation is the spatial organization of motor imagery-related cortical activity. This finding is consistent with the neurophysiology of motor imagery, where the most pronounced event-related desynchronization/synchronization (ERD/ERS) patterns are generated over the primary sensorimotor cortex, while cortical regions outside the frontal–central, central, and centro-parietal areas contribute relatively little task-specific information [26,27]. Consequently, although a 64-channel montage provides broader spatial coverage, it also incorporates a larger proportion of non-task-related cortical activity and physiological noise, which may reduce the effective signal-to-noise ratio without increasing the discriminative content available to the classifier [27,28]. The superior performance observed with the 2 s sliding-window strategy can likewise be interpreted in terms of the temporal evolution of motor imagery responses. ERD/ERS modulation is typically most prominent during the initial phase following cue presentation, whereas longer analysis windows increasingly include post-task activity and low-frequency fluctuations that are less informative for classification [26,27]. Baseline correction further reduces inter-trial variability by compensating for slow amplitude drift and differences in resting-state activity, thereby improving the consistency of the extracted neural representations [29,30]. These observations indicate that optimizing the spatial and temporal representation of EEG signals is more important for practical motor imagery decoding than simply increasing the number of recording channels, particularly in lightweight wearable BCI applications [28]. Therefore, the experimental findings are supported not only by quantitative evaluation but also by the established neurophysiological mechanisms underlying motor imagery, providing a theoretical explanation for the observed effectiveness of the proposed spatial and temporal optimization strategy.
Another important finding of this study is that optimizing the complete signal-processing pipeline has a considerable impact on decoding performance. The combination of optimized channel selection, 2 s sliding-window segmentation, and baseline correction consistently produced better results than the corresponding conventional preprocessing strategy. Rather than proposing a new neural network architecture, the present study demonstrates that careful optimization of preprocessing and data representation can improve the practical performance of an existing lightweight deep learning model while preserving its computational efficiency.
Recent studies have demonstrated that advanced deep learning architectures, particularly Transformer-based and attention-enhanced networks, have significantly improved motor imagery EEG decoding by learning more discriminative spatial–temporal representations and capturing long-range dependencies in EEG signals [23,24,25]. These models combine convolutional feature extraction with self-attention mechanisms or temporal attention modules, resulting in enhanced feature representation and improved decoding capability. However, these performance gains are often achieved at the expense of increased network complexity, a larger number of trainable parameters, and higher computational requirements. Moreover, many of these studies employ different datasets, preprocessing strategies, channel configurations, and subject-dependent or cross-subject evaluation protocols, making direct numerical comparison with the proposed framework inappropriate.
Representative examples include EEG-Conformer [23], Compact Convolutional Transformer [24], CTNet [25], ATCNet [31], FBCNet [32], EEGTCNet [33], and EEG-Transformer, which improve motor imagery classification through Transformer-based global feature learning, temporal attention mechanisms, frequency-specific feature extraction, and temporal convolutional modeling. Although these approaches generally achieve competitive decoding performance, they also introduce increased architectural complexity and computational requirements compared with the original EEGNet architecture. In contrast, the proposed framework deliberately preserves the lightweight EEGNet backbone and instead improves classification performance through systematic optimization of EEG channel configuration, temporal segmentation, and baseline correction. Therefore, the proposed approach complements recent deep learning architectures by emphasizing computational efficiency and practical deployment in wearable brain–computer interface systems.
In contrast, the objective of the present study was not to develop a more sophisticated deep learning architecture but to optimize the entire EEG decoding pipeline while preserving the lightweight characteristics of EEGNet. The proposed framework systematically integrates three complementary optimization stages, namely channel configuration optimization, temporal segmentation using sliding windows, and baseline correction, under a unified subject-independent evaluation protocol. Statistical analysis further confirmed that the proposed 15-channel configuration achieved classification performance statistically comparable to the conventional 64-channel EEG configuration while substantially reducing the number of required electrodes. Therefore, the principal contribution of this work lies in providing a practical optimization framework that effectively balances decoding performance, hardware complexity, and computational efficiency, making it well suited for lightweight wearable brain–computer interface applications.
From a practical perspective, the proposed framework has considerable potential for next-generation wearable brain–computer interface systems intended for daily use outside laboratory environments. By maintaining statistically comparable decoding performance with only 15 EEG channels, the proposed approach may facilitate the development of compact, lightweight, and energy-efficient EEG acquisition systems with improved user comfort and reduced hardware complexity. Such characteristics are particularly important for long-term monitoring and home healthcare applications, where ease of use and portability are essential. Furthermore, reliable motor imagery decoding using reduced-channel EEG may support a broad range of assistive technologies, including intelligent neuroprostheses, rehabilitation robots, upper- and lower-limb exoskeletons, and home-based neurorehabilitation platforms, thereby promoting the practical translation of wearable BCI technology into real-world clinical and rehabilitation settings.
Despite these promising results, several limitations should be acknowledged. The proposed framework was evaluated using the PhysioNet motor imagery database under a binary left- versus right-hand classification paradigm. Future work will investigate multi-class motor imagery decoding, cross-dataset validation, and real-time online evaluation. In addition, integrating adaptive attention mechanisms or Transformer-based feature extraction within the proposed optimization framework may further improve decoding robustness while preserving the lightweight characteristics required for wearable BCI applications.
Overall, the proposed optimization framework demonstrates that appropriate optimization of EEG acquisition and preprocessing is more beneficial than simply increasing channel density or network complexity. By maintaining statistically comparable classification performance using only 15 EEG channels, the proposed framework provides a practical foundation for next-generation lightweight wearable brain–computer interface systems suitable for real-world neurorehabilitation and human–computer interaction applications.
To further verify the robustness of the proposed framework, additional experiments were conducted using the complete PhysioNet dataset comprising 109 subjects. The obtained results remained consistent with the initial experiments and achieved a slightly higher classification accuracy. These findings demonstrate that the proposed optimization framework generalizes well across a larger and more diverse subject population while eliminating potential selection bias associated with using only a subset of the available data.
Although the present study demonstrates promising subject-independent motor imagery classification performance on the PhysioNet EEG Motor Movement/Imagery dataset, the proposed framework has not yet been evaluated on additional public benchmark datasets. Therefore, future work will investigate cross-dataset validation using datasets such as the BCI Competition IV Dataset 2a to further assess the robustness, and generalizability of the proposed optimization framework across different EEG acquisition protocols, electrode configurations, and experimental paradigms.
The present study employed manual channel selection based on established neurophysiological knowledge of motor imagery, focusing on electrodes located over the sensorimotor cortex. Although this strategy provides a physiologically interpretable and consistent electrode configuration for comparative analysis, several automated channel selection methods, such as minimum Redundancy Maximum Relevance (mRMR), Recursive Feature Elimination (RFE), ReliefF, Sequential Forward Selection, and evolutionary optimization algorithms, have been proposed to identify subject-specific informative electrodes. Integrating these automated selection strategies with the proposed optimization framework may further improve classification performance while maintaining low-density EEG configurations and therefore represents an important direction for future research.

5. Limitations

Despite the encouraging results obtained in this study, several limitations should be acknowledged.
First, all experiments were conducted using a single publicly available EEG dataset. Although the PhysioNet Motor Movement/Imagery database is widely used in BCI research, relying on a single dataset may limit the generalizability of the obtained findings. EEG recordings acquired using different hardware systems, electrode layouts, or experimental paradigms may exhibit substantially different signal characteristics.
Second, the present work focused exclusively on binary motor imagery classification involving left-hand and right-hand imagery tasks. More complex multi-class motor imagery scenarios may introduce additional classification challenges and require more sophisticated feature extraction strategies.
Another important limitation is the relatively modest subject-independent classification performance observed across several experimental configurations. While reduced-channel EEG systems demonstrated promising feasibility, considerable variability between subjects remained evident throughout the experiments. Certain participants consistently produced highly discriminative EEG patterns, whereas others remained difficult to classify regardless of preprocessing strategy or network architecture.
Additionally, although lightweight EEGNet variants demonstrated stable behavior under reduced-channel conditions, deep learning performance remained constrained by the relatively limited dataset size. The observed variability in ROC-AUC values suggests that further improvements in model generalization may require larger datasets, transfer learning approaches, or subject-adaptive training strategies.
The present study also focused primarily on offline EEG analysis. Consequently, real-time implementation issues such as online adaptation, latency constraints, electrode displacement, and motion artifacts were not investigated. These factors may significantly influence practical BCI performance in real-world environments.
Finally, although reduced-channel configurations demonstrated promising results for wearable EEG systems, the study did not evaluate hardware-level optimization, wireless acquisition stability, or long-term usability aspects associated with portable brain–computer interface devices.
Future research will therefore focus on cross-dataset validation, transfer learning methods, real-time EEG processing, and subject-adaptive lightweight architectures designed specifically for practical wearable BCI applications. In particular, cross-dataset validation will be essential for evaluating the robustness and generalizability of the proposed framework across different EEG acquisition systems, electrode configurations, and experimental protocols. Furthermore, transfer learning techniques may facilitate the adaptation of the proposed model to unseen datasets and subject populations while reducing the need for extensive retraining. Such investigations will provide a more comprehensive assessment of the practical applicability of the proposed framework in real-world wearable BCI environments.
Another important direction for future research is the integration of explainable artificial intelligence (XAI) techniques to improve the interpretability of deep learning-based EEG decoding. Methods such as Gradient-weighted Class Activation Mapping (Grad-CAM), SHAP (SHapley Additive exPlanations), and attention visualization could provide valuable insights into the spatial and temporal EEG features contributing to motor imagery classification. Such analyses would enhance the transparency of the proposed framework, facilitate neurophysiological interpretation of the learned representations, and increase confidence in its application to practical wearable BCI systems.

6. Conclusions

This study presented a comprehensive investigation of EEG channel reduction, temporal segmentation strategies, and preprocessing techniques for motor imagery classification using EEGNet-based architectures.
The obtained results demonstrated that reducing the number of EEG electrodes does not necessarily lead to substantial degradation in classification performance. In particular, the proposed 15-channel motor-cortex configuration achieved the highest overall classification accuracy, achieving classification performance statistically comparable to the conventional 64-channel EEG setup while substantially reducing the number of required electrodes. These findings indicate that motor imagery-related information is primarily concentrated within sensorimotor cortical regions and that careful spatial channel selection may improve classification robustness while reducing system complexity.
The experiments additionally revealed that shorter 2 s EEG windows combined with sliding-window augmentation consistently outperformed conventional 4 s segmentation approaches. Baseline correction further improved classification stability by reducing inter-trial variability and compensating for slow signal drift.
Comparative analysis of classical machine learning and EEGNet-based deep learning models demonstrated that lightweight neural architectures can maintain competitive performance under reduced-channel conditions while substantially decreasing computational complexity. Furthermore, the obtained results support the feasibility of compact low-density EEG systems for portable and wearable brain–computer interface applications.
Although considerable inter-subject variability remains a major challenge for subject-independent EEG classification, the findings of this study demonstrate that preprocessing optimization and targeted channel selection can significantly improve the practicality of lightweight EEG-based BCI systems.
Future work will focus on cross-dataset validation, transfer learning, subject-adaptive architectures, and real-time implementation of wearable EEG-based brain–computer interfaces. Furthermore, validation on the complete PhysioNet dataset containing 109 subjects confirmed the robustness and generalizability of the proposed framework, supporting its applicability to practical lightweight wearable brain–computer interface systems.

Author Contributions

Conceptualization, C.A. and Y.T.; methodology, C.A., Z.A.; software, Y.T.; validation, Y.T. and Z.A.; formal analysis, Y.T.; investigation, K.O.; resources, K.O.; writing—original draft preparation, Z.A.; writing—review and editing, C.A.; visualization, Y.T.; supervision, C.A.; project administration, K.O.; funding acquisition, K.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Ministry of Science and Higher Education of the Republic of Kazakhstan (Grant No. BR24992820).

Data Availability Statement

The dataset used in this study is publicly available from the PhysioNet repository (EEG Motor Movement/Imagery Dataset). Processed data and code used for analysis are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BCIBrain–Computer Interface
EEGElectroencephalography
MIMotor Imagery
CSPCommon Spatial Patterns
CNNConvolutional Neural Network
ERDEvent-Related Desynchronization
ERSEvent-Related Synchronization
LOSOLeave-One-Subject-Out
LDALinear Discriminant Analysis
SVMSupport Vector Machine
ROCReceiver Operating Characteristic
EDFEuropean Data Format

References

  1. Tayebi, H.; Azadnajafabad, S.; Maroufi, S.F.; Pour-Rashidi, A.; Khorasanizadeh, M.; Faramarzi, S.; Slavin, K.V. Applications of brain-computer interfaces in neurodegenerative diseases. Neurosurg. Rev. 2023, 46, 131. [Google Scholar] [CrossRef] [PubMed]
  2. Mahmoudi, A.; Khosrotabar, M.; Gramann, K.; Rinderknecht, S.; Sharbafi, M.A. Using Passive BCI for Personalization of Assistive Wearable Devices: A Proof-of-Concept Study. IEEE Trans. Neural Syst. Rehabil. Eng. 2025, 33, 476–487. [Google Scholar] [CrossRef] [PubMed]
  3. Wang, X.; Lu, H.; Shen, X.; Ma, L.; Wang, Y. Prosthetic control system based on motor imagery. Comput. Methods Biomech. Biomed. Eng. 2022, 25, 764–771. [Google Scholar] [CrossRef] [PubMed]
  4. Asgher, U.; Ayaz, Y.; Taiar, R. Editorial: Advances in artificial intelligence (AI) in brain computer interface (BCI) and Industry 4.0 for human machine interaction (HMI). Front. Hum. Neurosci. 2023, 17, 1320536. [Google Scholar] [CrossRef] [PubMed]
  5. Zhao, L. Advances in functional magnetic resonance imaging-based brain function mapping: A deep learning perspective. Psychoradiology 2025, 5, kkaf007. [Google Scholar] [CrossRef] [PubMed]
  6. Uyulan, C. Design of Magnetoencephalography-based Brain–Machine Interface Control Methodology Through Time-Varying Cortical Neural Connectivity and Extreme Learning Machine. J. Neurobehav. Sci. 2022, 9, 96–106. [Google Scholar] [CrossRef] [PubMed]
  7. Zapała, D.; Augustynowicz, P.; Droździel, P.; Iwanowicz, P. Differences in Brain Oscillation Patterns During Motor-Related Sensory Imagery Creation and Recall. Eur. J. Neurosci. 2025, 61, e70159. [Google Scholar] [CrossRef] [PubMed]
  8. Dupont, W.; Poulin-Charronnat, B.; Madden-Lombardi, C.; Jacquet, T.; Pfister, P.; Dos Anjos, T.; Lebon, F. Exploring Dynamic Brain Oscillations in Motor Imagery and Low-frequency Sound. J. Cogn. Neurosci. 2025, 37, 2145–2159. [Google Scholar] [CrossRef] [PubMed]
  9. Duan, X.; Xie, S.; Cui, Y.; Ji, T.; Yan, H. A Neurophysiological Stratification Framework for Intermediate Motor Imagery-BCI Users Based on Independent Event-Related Brain Dynamics. Brain Sci. 2026, 16, 202. [Google Scholar] [CrossRef] [PubMed]
  10. Huang, G.; Zhao, Z.; Zhang, S.; Hu, Z.; Fan, J.; Fu, M.; Chen, J.; Xiao, Y.; Wang, J.; Dan, G. Discrepancy between inter- and intra-subject variability in EEG-based motor imagery brain-computer interface: Evidence from multiple perspectives. Front. Neurosci. 2023, 17, 1122661. [Google Scholar] [CrossRef] [PubMed]
  11. Perez-Velasco, S.; Santamaria-Vazquez, E.; Martinez-Cagigal, V.; Marcos-Martinez, D.; Hornero, R. EEGSym: Overcoming Inter-Subject Variability in Motor Imagery Based BCIs with Deep Learning. IEEE Trans. Neural Syst. Rehabil. Eng. 2022, 30, 1766–1775. [Google Scholar] [CrossRef] [PubMed]
  12. Wei, Q.; Ding, X. Intra- and Inter-Subject Common Spatial Pattern for Reducing Calibration Effort in MI-Based BCI. IEEE Trans. Neural Syst. Rehabil. Eng. 2023, 31, 904–916. [Google Scholar] [CrossRef] [PubMed]
  13. Saibene, A.; Caglioni, M.; Corchs, S.; Gasparini, F. EEG-Based BCIs on Motor Imagery Paradigm Using Wearable Technologies: A Systematic Review. Sensors 2023, 23, 2798. [Google Scholar] [CrossRef] [PubMed]
  14. George, O.; Dabas, S.; Sikder, A.; Smith, R.O.; Madiraju, P.; Yahyasoltani, N.; Ahamed, S.I. State-of-the-Art Versus Deep Learning: A Comparative Study of Motor Imagery Decoding Techniques. IEEE Access 2022, 10, 45605–45619. [Google Scholar] [CrossRef]
  15. Zhang, Y.; Shen, X. EEG Feature Extraction and Classification for Upper Limb Flexion and Extension Motor Imagery Based on Discriminative Filter Bank Common Spatial Pattern. Brain Sci. 2026, 16, 217. [Google Scholar] [CrossRef] [PubMed] [PubMed Central]
  16. Blanco-Diaz, C.F.; Antelis, J.M.; Ruiz-Olaya, A.F. Comparative analysis of spectral and temporal combinations in CSP-based methods for decoding hand motor imagery tasks. J. Neurosci. Methods 2022, 371, 109495. [Google Scholar] [CrossRef] [PubMed]
  17. Tarahi, O.; Hamou, S.; Moufassih, M.; Agounad, S.; Azami, H.I. Decoding brain signals: A convolutional neural network approach for motor imagery classification. e-Prime-Adv. Electr. Eng. Electron. Energy 2024, 7, 100451. [Google Scholar] [CrossRef]
  18. Tibrewal, N.; Leeuwis, N.; Alimardani, M. Classification of motor imagery EEG using deep learning increases performance in inefficient BCI users. PLoS ONE 2022, 17, e0268880. [Google Scholar] [CrossRef] [PubMed]
  19. Yu, S.; Wang, Z.; Wang, F.; Chen, K.; Yao, D.; Xu, P.; Zhang, Y.; Wang, H.; Zhang, T. Multiclass classification of motor imagery tasks based on multi-branch convolutional neural network and temporal convolutional network model. Cereb. Cortex 2024, 34, bhad511. [Google Scholar] [CrossRef] [PubMed]
  20. Park, D.; Park, H.; Kim, S.; Choo, S.; Lee, S.; Nam, C.S.; Jung, J.-Y. Spatio-Temporal Explanation of 3D-EEGNet for Motor Imagery EEG Classification Using Permutation and Saliency. IEEE Trans. Neural Syst. Rehabil. Eng. 2023, 31, 4504–4513. [Google Scholar] [CrossRef] [PubMed]
  21. Wang, Y.; Ju, X.; Sun, J.; Yu, Y.; Li, M.; Hu, D. Improved EEGNet with a Multilevel Spatial Feature Extraction Module for EEG Decoding. IEEE Trans. Instrum. Meas. 2025, 74, 2519512. [Google Scholar] [CrossRef]
  22. Sultana, M.; Reichert, C.; Sweeney-Reed, C.; Perdikis, S. Towards Calibration-Less BCI-Based Rehabilitation. In Proceedings of the 2023 IEEE International Conference on Metrology for eXtended Reality, Artificial Intelligence and Neural Engineering (MetroXRAINE), Milano, Italy, 25–27 October 2023; IEEE: New York, NY, USA, 2023; pp. 11–16. [Google Scholar] [CrossRef]
  23. Song, Y.; Zheng, Q.; Liu, B.; Gao, X. EEG Conformer: Convolutional Transformer for EEG Decoding and Visualization. IEEE Trans. Neural Syst. Rehabil. Eng. 2023, 31, 710–719. [Google Scholar] [CrossRef] [PubMed]
  24. Keutayeva, A.; Fakhrutdinov, N.; Abibullaev, B. Compact Convolutional Transformer for Subject-Independent Motor Imagery EEG-Based BCIs. Sci. Rep. 2024, 14, 25775. [Google Scholar] [CrossRef] [PubMed]
  25. Zhao, W.; Jiang, X.; Zhang, B.; Xiao, S.; Weng, S. CTNet: A Convolutional Transformer Network for EEG-Based Motor Imagery Classification. Sci. Rep. 2024, 14, 20237. [Google Scholar] [CrossRef] [PubMed]
  26. Pfurtscheller, G.; Lopes da Silva, F.H. Event-related EEG/MEG synchronization and desynchronization: Basic principles. Clin. Neurophysiol. 1999, 110, 1842–1857. [Google Scholar] [CrossRef] [PubMed]
  27. Pfurtscheller, G.; Neuper, C. Future prospects of ERD/ERS in the context of brain–computer interface (BCI) developments. Prog. Brain Res. 2006, 159, 433–437. [Google Scholar] [CrossRef] [PubMed]
  28. Lotte, F.; Congedo, M.; Lécuyer, A.; Lamarche, F.; Arnaldi, B. A review of classification algorithms for EEG-based brain–computer interfaces. J. Neural Eng. 2007, 4, R1–R13. [Google Scholar] [CrossRef] [PubMed]
  29. Hu, L.; Xiao, P.; Zhang, Z.G.; Mouraux, A.; Iannetti, G.D. Single-trial time–frequency analysis of electrocortical signals: Baseline correction and beyond. NeuroImage 2014, 84, 876–887. [Google Scholar] [CrossRef] [PubMed]
  30. Rimbert, S.; Trocellier, D.; Lotte, F. Impact of the Baseline Temporal Selection on the ERD/ERS Analysis for Motor Imagery-Based BCI. In Proceedings of the 45th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Sydney, Australia, 24–27 July 2023; IEEE: New York, NY, USA, 2023; pp. 1–4. [Google Scholar] [CrossRef] [PubMed]
  31. Altaheri, H.; Muhammad, G.; Alsulaiman, M.; Amin, S.U.; Bencherif, M.A.; Mekhtiche, M.A. Physics-Informed Attention Temporal Convolutional Network (ATCNet) for EEG-Based Motor Imagery Classification. IEEE Trans. Ind. Inform. 2023, 19, 2249–2258. [Google Scholar] [CrossRef]
  32. Mane, R.; Robinson, N.; Vinod, A.P.; Lee, S.W.; Guan, C. FBCNet: A Multi-View Convolutional Neural Network for Brain–Computer Interface. arXiv 2021, arXiv:2104.01233. [Google Scholar] [CrossRef]
  33. Ingolfsson, T.M.; Hersche, M.; Wang, X.; Kobayashi, N.; Cavigelli, L.; Benini, L. EEG-TCNet: An Accurate Temporal Convolutional Network for Embedded Motor-Imagery Brain–Machine Interfaces. In Proceedings of the 2020 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Toronto, ON, Canada, 11–14 October 2020; IEEE: New York, NY, USA, 2020; pp. 2958–2965. [Google Scholar] [CrossRef]
Figure 1. Evaluated EEG channel configurations used in this study.
Figure 1. Evaluated EEG channel configurations used in this study.
Algorithms 19 00588 g001
Figure 2. Visualization of the evaluated EEG channel configurations.
Figure 2. Visualization of the evaluated EEG channel configurations.
Algorithms 19 00588 g002
Figure 3. EEG preprocessing pipeline used for motor imagery classification.
Figure 3. EEG preprocessing pipeline used for motor imagery classification.
Algorithms 19 00588 g003
Figure 4. Sliding-window augmentation strategy for 2 s EEG segmentation.
Figure 4. Sliding-window augmentation strategy for 2 s EEG segmentation.
Algorithms 19 00588 g004
Figure 5. Comparison between 4 s epoch extraction and 2 s sliding-window segmentation.
Figure 5. Comparison between 4 s epoch extraction and 2 s sliding-window segmentation.
Algorithms 19 00588 g005
Figure 6. Architecture of the flexible EEGNet model used in this study.
Figure 6. Architecture of the flexible EEGNet model used in this study.
Algorithms 19 00588 g006
Figure 7. Proposed optimization framework for subject-independent motor imagery classification.
Figure 7. Proposed optimization framework for subject-independent motor imagery classification.
Algorithms 19 00588 g007
Figure 8. Example of training and validation convergence curves during EEGNet optimization.
Figure 8. Example of training and validation convergence curves during EEGNet optimization.
Algorithms 19 00588 g008
Figure 9. ROC curves for different EEGNet configurations.
Figure 9. ROC curves for different EEGNet configurations.
Algorithms 19 00588 g009
Figure 10. Influence of baseline correction on classification accuracy.
Figure 10. Influence of baseline correction on classification accuracy.
Algorithms 19 00588 g010
Figure 11. Classification accuracy across different channel configurations.
Figure 11. Classification accuracy across different channel configurations.
Algorithms 19 00588 g011
Figure 12. Comparative performance of classical and deep learning models.
Figure 12. Comparative performance of classical and deep learning models.
Algorithms 19 00588 g012
Figure 13. Subject-wise classification variability across EEGNet configurations.
Figure 13. Subject-wise classification variability across EEGNet configurations.
Algorithms 19 00588 g013
Figure 14. ROC curves for EEGNet-based models.
Figure 14. ROC curves for EEGNet-based models.
Algorithms 19 00588 g014
Figure 15. Example of overfitting behavior during EEGNet training.
Figure 15. Example of overfitting behavior during EEGNet training.
Algorithms 19 00588 g015
Table 1. Summary of dataset characteristics and EEG channel configurations.
Table 1. Summary of dataset characteristics and EEG channel configurations.
ParameterDescription
DatasetPhysioNet EEG Motor Movement/Imagery Dataset
Subjects used109
Classification taskLeft vs. right motor imagery
EEG recording typeNon-invasive scalp EEG
Original montage64-channel 10–20 system
Sampling frequency~160 Hz
File formatEDF
Main event labelsT1 (left hand), T2 (right hand)
Full-scale configuration64 channels
Reduced configurations15, 6, 3, and 2 channels
Main motor-region channelsFC3, FC1, FCz, FC2, FC4, C3, C1, Cz, C2, C4, CP3, CP1, CPz, CP2, CP4
Minimal configurationC3, Cz, C4
Objective of channel reductionEvaluation of lightweight wearable BCI feasibility
Table 2. EEG channel configurations used for motor imagery classification.
Table 2. EEG channel configurations used for motor imagery classification.
ConfigurationNumber of ChannelsElectrode PositionsPurpose
Full-scalp EEG64Standard 10–20 montageMaximum spatial coverage
Motor configuration15FC3, FC1, FCz, FC2, FC4, C3, C1, Cz, C2, C4, CP3, CP1, CPz, CP2, CP4Motor-cortex-focused analysis
Reduced motor setup6C3, Cz, C4, CP3, CPz, CP4Compact sensorimotor configuration
Minimal motor setup3C3, Cz, C4Lightweight wearable EEG
Ultra-low-density setup2C3, C4Minimal practical configuration
Table 3. EEG preprocessing procedures used in the study.
Table 3. EEG preprocessing procedures used in the study.
Preprocessing StepMethodPurpose
Channel standardizationElectrode name normalizationConsistent channel mapping
Notch filtering50 HzRemoval of power-line interference
Band-pass filteringFIR, 8–30 HzExtraction of μ- and β-rhythm activity
Filterbank decompositionButterworth, order 4Frequency sub-band analysis
Baseline correction−0.5 to 0 s pre-stimulus intervalReduction in inter-trial variability
Epoch segmentation2 s and 4 s windowsTemporal analysis
Sliding-window augmentationOverlapping 2 s windowsIncrease in training samples
NormalizationZ-score normalizationStabilization of model training
Final data representationChannel × time matrixInput preparation for EEGNet
Table 4. Temporal segmentation configurations used in the study.
Table 4. Temporal segmentation configurations used in the study.
ConfigurationWindow LengthBaseline IntervalAugmentation StrategyPurpose
Standard epoch4 sNoNoneConventional MI segmentation
Baseline-corrected epoch4 s−0.5 to 0 sNoneReduction in signal drift
Sliding-window segmentation2 sNoOverlapping windowsIncreased sample diversity
Baseline + sliding window2 s−0.5 to 0 sOverlapping windowsImproved robustness and generalization
Table 5. Architecture of the flexible EEGNet model.
Table 5. Architecture of the flexible EEGNet model.
LayerInput ShapeOutput ShapeKernel SizeDescription
Input layer(C, S, 1)(C, S, 1)Raw EEG input
Temporal Conv2D(C, S, 1)(C, S, 4)(1, 64)Temporal feature extraction
Batch Normalization(C, S, 4)(C, S, 4)Training stabilization
Depthwise Conv2D(C, S, 4)(1, S, 8)(C, 1)Spatial filtering
Batch Normalization(1, S, 8)(1, S, 8)Feature normalization
ELU Activation(1, S, 8)(1, S, 8)Nonlinear activation
Average Pooling(1, S, 8)(1, S/4, 8)(1, 4)Temporal downsampling
Dropout(1, S/4, 8)(1, S/4, 8)Overfitting reduction
Separable Conv2D(1, S/4, 8)(1, S/4, 8)(1, 16)Compact feature extraction
Batch Normalization(1, S/4, 8)(1, S/4, 8)Training stabilization
ELU Activation(1, S/4, 8)(1, S/4, 8)Nonlinear activation
Average Pooling(1, S/4, 8)(1, S/32, 8)(1, 8)Dimensionality reduction
Dropout(1, S/32, 8)(1, S/32, 8)Regularization
Flatten(1, S/32, 8)(F)Vector transformation
Dense + Softmax(F)(2)Binary classification
Table 6. Methodological comparison between representative EEGNet-based studies and the proposed framework.
Table 6. Methodological comparison between representative EEGNet-based studies and the proposed framework.
ArchitectureMethodRef.Network ModificationJoint Channel OptimizationTemporal
Segmentation Optimization
Baseline
Correction Analysis
Lightweight Analysis
Improved EEGNetImproved EEGNet[21]++
EEG ConformerCNN + Transformer[23]++
Compact Convolutional TransformerCompact CNN + Transformer[24]++
CTNetCNN + Transformer[25]++
This workProposed Optimization FrameworkEEGNet++++
Table 7. General training settings used for comparative experiments across different EEGNet variants.
Table 7. General training settings used for comparative experiments across different EEGNet variants.
ParameterValue
Deep learning frameworkTensorFlow/Keras
OptimizerAdam
Initial learning rate0.001
Batch size32
Maximum epochs100–200
Early stoppingEnabled
Learning rate schedulingReduceLROnPlateau
Dropout rate0.25–0.50
Weight initializationGlorot Uniform (Xavier)
Output activationSoftmax
Classification typeBinary classification
Validation strategyLeave-One-Subject-Out (LOSO)
Hardware environmentGPU-accelerated training
Table 8. Final hyperparameters of the proposed Flexible EEGNet model used for the reported results.
Table 8. Final hyperparameters of the proposed Flexible EEGNet model used for the reported results.
ParameterValue
Deep learning frameworkTensorFlow/Keras
Network architectureEEGNet
OptimizerAdam
Loss functionSparse categorical cross-entropy
Batch size64
Maximum epochs50
Early stoppingPatience = 10, monitor = validation loss
Dropout rate0.5
Temporal filters, F14
Depth multiplier, D2
Separable filters, F28
Kernel constraintMax-norm = 1.0 for depthwise layer; 0.25 for dense layer
EEG frequency band8–30 Hz, FIR band-pass filter
Window length2 s, 320 samples at 160 Hz
Sliding stride16 samples, 0.1 s
Baseline correction0.5 s pre-stimulus normalization
Classification taskBinary, left-hand vs. right-hand motor imagery
Table 9. Evaluation metrics used for EEG classification analysis.
Table 9. Evaluation metrics used for EEG classification analysis.
MetricPurpose
AccuracyOverall classification performance
F1-scoreBalanced performance evaluation
ROC-AUCThreshold-independent discrimination
Mean ± StdInter-subject variability assessment
Table 10. Performance comparison for different temporal segmentation strategies.
Table 10. Performance comparison for different temporal segmentation strategies.
Dataset ConfigurationChannelsWindow LengthBaseline CorrectionTest Accuracy
data_64_ch_2s642 sNo55.84%
data_64_ch_2s_base642 sYes64.76%
data_64_ch_4s644 sNo64.44%
data_64_ch_4s_base644 sYes50.37%
data_motor_ch_2s152 sNo59.82%
data_motor_ch_2s_base152 sYes65.04%
data_motor_ch_4s154 sNo56.30%
data_motor_ch_4s_base154 sYes50.37%
Table 11. Statistical comparison between the proposed 15-channel and conventional 64-channel EEG configurations.
Table 11. Statistical comparison between the proposed 15-channel and conventional 64-channel EEG configurations.
MetricValue
Mean accuracy (15-channel)65.04%
Mean accuracy (64-channel)64.76%
Mean difference0.28%
Paired Student’s t-test (p)0.1684
Wilcoxon signed-rank test (p)0.2017
Cohen’s d0.29
95% Confidence Interval−0.18% to 0.74%
Table 12. Classification performance for different EEG channel configurations.
Table 12. Classification performance for different EEG channel configurations.
ConfigurationChannelsTest Accuracy
Full-scale EEG6464.76%
Motor configuration1565.04%
Reduced motor setup662.01%
Minimal motor setup360.85%
Ultra-low-density setup255.98%
Table 13. Comparative performance of evaluated classification models.
Table 13. Comparative performance of evaluated classification models.
ModelAccuracy (Mean ± Std)F1-Score (Mean ± Std)
CSP + LDA0.5862 ± 0.10040.5219 ± 0.2196
CSP + SVM0.5809 ± 0.09760.4735 ± 0.2468
EEGNet (original)0.5660 ± 0.10080.5482 ± 0.2009
EEGNet (original + tuning)0.5167 ± 0.05140.6523 ± 0.0455
EEGNet_Lite0.5780 ± 0.08800.5460 ± 0.1780
EEGNet_Lite_boosted0.5067 ± 0.07610.6430 ± 0.0478
Table 14. Performance comparison between the initial subset and the complete PhysioNet dataset.
Table 14. Performance comparison between the initial subset and the complete PhysioNet dataset.
DatasetNumber of SubjectsClassification Accuracy (%)
Initial experimental subset5065.04
Complete PhysioNet dataset10967.40
Table 15. Subject-wise classification accuracy under LOSO validation.
Table 15. Subject-wise classification accuracy under LOSO validation.
SubjectEEGNetEEGNet + TuningEEGNet_LiteEEGNet_Lite_Bosted
S0010.5330.5780.4000.489
S0020.7110.5780.4000.489
S0030.4890.4670.5560.511
S0040.6220.4890.4890.444
S0050.5780.5110.6440.533
S0060.4440.4670.3780.467
S0070.8000.6000.4890.489
S0080.5780.4890.6000.556
S0090.4000.4670.4670.356
S0100.5560.6220.4670.467
Table 16. ROC-AUC comparison for evaluated EEGNet configurations.
Table 16. ROC-AUC comparison for evaluated EEGNet configurations.
ModelAUC
EEGNet_Lite0.512 ± 0.088
EEGNet_Lite_boosted0.513 ± 0.097
EEGNet (original)0.5530
EEGNet (original + tuning)0.6675
Table 17. Summarizes the convergence behavior observed across different experimental configurations.
Table 17. Summarizes the convergence behavior observed across different experimental configurations.
Dataset ConfigurationEpochs CompletedTraining AccuracyBest Validation AccuracyTraining Behavior
data_64_ch_2s1579.6%60.7%Early overfitting
data_64_ch_2s_base2276.6%64.8%Stable convergence
data_64_ch_4s5068.0%66.7%Gradual convergence
data_64_ch_4s_base1154.1%50.4%Unstable learning
data_motor_ch_2s2269.9%62.6%Stable convergence
data_motor_ch_2s_base3671.0%65.0%Best overall stability
data_motor_ch_4s3758.7%61.5%Moderate convergence
data_motor_ch_4s_base1157.2%51.9%Early stagnation
Table 18. Computational complexity of the proposed EEGNet framework.
Table 18. Computational complexity of the proposed EEGNet framework.
MetricValue
Trainable parameters810
Model size (HDF5)51.4 KB
Memory footprint (float32)~0.003 MB
Single-sample inference time12.85 ms
Batch inference (64 samples)31.60 ms
Average inference time per sample0.49 ms
Throughput~78 samples/s
Table 19. Comparison of computational complexity of different deep learning models.
Table 19. Comparison of computational complexity of different deep learning models.
ModelParametersAccuracy (%)
EEGNet (proposed)174665.04
DeepConvNet328,82766.03
ShallowConvNet26,68264.76
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tuimebay, Y.; Alimbayev, C.; Alimbayeva, Z.; Ozhikenov, K. Optimization of Low-Channel EEG Configurations and Temporal Segmentation for Motor Imagery Classification Using a Flexible EEGNet Framework. Algorithms 2026, 19, 588. https://doi.org/10.3390/a19070588

AMA Style

Tuimebay Y, Alimbayev C, Alimbayeva Z, Ozhikenov K. Optimization of Low-Channel EEG Configurations and Temporal Segmentation for Motor Imagery Classification Using a Flexible EEGNet Framework. Algorithms. 2026; 19(7):588. https://doi.org/10.3390/a19070588

Chicago/Turabian Style

Tuimebay, Yelnur, Chingiz Alimbayev, Zhadyra Alimbayeva, and Kassymbek Ozhikenov. 2026. "Optimization of Low-Channel EEG Configurations and Temporal Segmentation for Motor Imagery Classification Using a Flexible EEGNet Framework" Algorithms 19, no. 7: 588. https://doi.org/10.3390/a19070588

APA Style

Tuimebay, Y., Alimbayev, C., Alimbayeva, Z., & Ozhikenov, K. (2026). Optimization of Low-Channel EEG Configurations and Temporal Segmentation for Motor Imagery Classification Using a Flexible EEGNet Framework. Algorithms, 19(7), 588. https://doi.org/10.3390/a19070588

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop