Author Contributions
Conceptualization, C.B. and L.H.B.; methodology, C.B.; software, C.B.; validation, L.H.B.; formal analysis, S.K.; investigation, L.H.B. and S.K.; resources, C.B.; data curation, C.B.; writing—original draft preparation, C.B. and L.H.B.; writing—review and editing, C.B. and L.H.B.; visualization, C.B.; supervision, S.K.; project administration, L.H.B.; funding acquisition, S.K. All authors have read and agreed to the published version of the manuscript.
Figure 1.
Architecture of the proposed EPECT model. (a) The fused multimodal feature sequence passes through three stacked one-dimensional convolutional layers, is combined with sinusoidal positional encoding, processed by identical eigenvalue-guided transformer blocks, and mapped to class posteriors through global average pooling (GAP) and a softmax classifier. (b) Internal structure of a single EPECT block under the pre-norm formulation, with layer normalization (LN), the eigenvalue-guided multi-head self-attention module (Eigen-MHSA) that constitutes the novel component of the architecture, a position-wise feed-forward network (FFN), and two residual connections (dashed).
Figure 1.
Architecture of the proposed EPECT model. (a) The fused multimodal feature sequence passes through three stacked one-dimensional convolutional layers, is combined with sinusoidal positional encoding, processed by identical eigenvalue-guided transformer blocks, and mapped to class posteriors through global average pooling (GAP) and a softmax classifier. (b) Internal structure of a single EPECT block under the pre-norm formulation, with layer normalization (LN), the eigenvalue-guided multi-head self-attention module (Eigen-MHSA) that constitutes the novel component of the architecture, a position-wise feed-forward network (FFN), and two residual connections (dashed).
Figure 2.
Learning dynamics of EPECT averaged across LOSO folds: (a) training and validation accuracy as a function of training epoch; (b) training and validation loss as a function of training epoch. Both curves indicate stable convergence without overfitting, with the validation curves closely tracking the training curves throughout optimization.
Figure 2.
Learning dynamics of EPECT averaged across LOSO folds: (a) training and validation accuracy as a function of training epoch; (b) training and validation loss as a function of training epoch. Both curves indicate stable convergence without overfitting, with the validation curves closely tracking the training curves throughout optimization.
Figure 3.
Confusion matrices of EPECT on the held-out test partitions under the LOSO protocol for the four tasks. Counts are concentrated along the main diagonal in every paradigm, indicating reliable class separation across subjects.
Figure 3.
Confusion matrices of EPECT on the held-out test partitions under the LOSO protocol for the four tasks. Counts are concentrated along the main diagonal in every paradigm, indicating reliable class separation across subjects.
Figure 4.
EEG scalp topographies for representative subject VP001 in the DSR paradigm. (a) Average channel activity for the discrimination class. (b) Average channel activity for the selection class. (c) Discrimination-class topography after controlled perturbation in which ten randomly chosen channels were augmented with a fixed-amplitude spike (magnitude 10) and additive Gaussian noise () was applied across all channels. The perturbation simulates the localized amplitude changes that can accompany rehabilitation-relevant cortical reorganization.
Figure 4.
EEG scalp topographies for representative subject VP001 in the DSR paradigm. (a) Average channel activity for the discrimination class. (b) Average channel activity for the selection class. (c) Discrimination-class topography after controlled perturbation in which ten randomly chosen channels were augmented with a fixed-amplitude spike (magnitude 10) and additive Gaussian noise () was applied across all channels. The perturbation simulates the localized amplitude changes that can accompany rehabilitation-relevant cortical reorganization.
Figure 5.
t-SNE projection of the EPECT latent embeddings on the DSR test partition. Each point corresponds to a single test trial, with color denoting the ground-truth class label. Trials from the two classes form coherent clusters with limited inter-class overlap, indicating that EPECT learns a class-discriminative low-dimensional representation of the multimodal input.
Figure 5.
t-SNE projection of the EPECT latent embeddings on the DSR test partition. Each point corresponds to a single test trial, with color denoting the ground-truth class label. Trials from the two classes form coherent clusters with limited inter-class overlap, indicating that EPECT learns a class-discriminative low-dimensional representation of the multimodal input.
Figure 6.
Class-wise mean Integrated Gradients (IG) attribution maps for the fNIRS modality on the DSR test partition: (a) discrimination class; (b) selection class. The horizontal axis indexes fNIRS feature channels and the vertical axis indexes time segments within a trial. Brighter colors denote larger absolute attribution. The maps were obtained by averaging absolute IG values across all correctly classified test samples of each class.
Figure 6.
Class-wise mean Integrated Gradients (IG) attribution maps for the fNIRS modality on the DSR test partition: (a) discrimination class; (b) selection class. The horizontal axis indexes fNIRS feature channels and the vertical axis indexes time segments within a trial. Brighter colors denote larger absolute attribution. The maps were obtained by averaging absolute IG values across all correctly classified test samples of each class.
Table 2.
Computational complexity and runtime comparison between a standard transformer and EPECT. Runtime values are estimated under the same input representation, batch size, hardware, and training protocol.
Table 2.
Computational complexity and runtime comparison between a standard transformer and EPECT. Runtime values are estimated under the same input representation, batch size, hardware, and training protocol.
| Model | Additional Attention Cost | Train Time/Epoch | Inference Time/Batch | Relative Overhead |
|---|
| Standard transformer | | 18.4 s | 7.8 ms | 1.00× |
| EPECT | | 22.1 s | 9.3 ms | 1.20× |
Table 3.
Spectral and temporal features extracted per channel from the preprocessed EEG and fNIRS windows.
Table 3.
Spectral and temporal features extracted per channel from the preprocessed EEG and fNIRS windows.
| Feature Category | Description |
|---|
| PSD | Band-limited power in the (4–8 Hz), (8–14 Hz), (14–30 Hz), and (30–45 Hz) bands estimated using Welch’s method |
| Inter-peak statistics | Average peak-to-peak interval and peak-to-peak amplitude of the windowed waveform |
| AUC | Trapezoidal integration of the magnitude spectrum used as an aggregate energy measure |
| Spectral roll-off | Frequency below which a fixed proportion of the spectral energy is concentrated |
| Morlet wavelet coefficients | Multi-scale time–frequency representation summarized across scales |
| Mel-frequency cepstral coefficients | Short-term spectral envelope features computed on the windowed signal |
| Variance | Temporal dispersion of the windowed signal |
| Hjorth parameters | Activity, mobility, and complexity indices that capture amplitude, frequency, and bandwidth properties |
| Spectral entropy | Shannon entropy of the normalized power spectrum, used as a measure of spectral randomness |
Table 4.
Hyperparameter settings used for EPECT training and evaluation.
Table 4.
Hyperparameter settings used for EPECT training and evaluation.
| Hyperparameter | Value |
|---|
| Input window length | 2.5 s |
| Window overlap | 1.0 s |
| Convolutional layers | 3 |
| Convolution kernel size | 3 |
| Model width C | 128 |
| Transformer blocks L | 6 |
| Attention heads H | 8 |
| Feed-forward dimension | 256 |
| Eigenvalue coefficient | 0.5 |
| Eigenvalue coefficient | 0.5 |
| Numerical stability constant | |
| Dropout rate | 0.30 |
| Optimizer | Adam |
| Learning rate | |
| Batch size | 32 |
| Maximum epochs | 50 |
| Early stopping patience | 10 epochs |
| Checkpoint selection | Lowest validation loss |
Table 5.
Cross-subject classification performance of EPECT across the four task paradigms under the LOSO protocol. Training and validation accuracies are reported as the mean across folds; the test accuracy is reported on the held-out subject of each fold. Sample counts refer to the original (pre-augmentation) trial counts used to construct each cross-validation split.
Table 5.
Cross-subject classification performance of EPECT across the four task paradigms under the LOSO protocol. Training and validation accuracies are reported as the mean across folds; the test accuracy is reported on the held-out subject of each fold. Sample counts refer to the original (pre-augmentation) trial counts used to construct each cross-validation split.
| Task | Subjects | Classes | Samples | Train acc. (%) | Val. Acc. (%) | Test Acc. (%) |
|---|
| MI | 29 | 3 (LH, RH, rest) | 560 | 99.69 | 97.55 | 97.3 |
| n-back | 26 | 3 (0-, 2-, 3-back) | 676 | 99.20 | 95.35 | 96.3 |
| DSR | 26 | 2 | 8892 | 99.68 | 98.14 | 98.1 |
| WG | 26 | 2 | 1560 | 99.76 | 97.44 | 97.9 |
Table 6.
Modality contribution analysis under the LOSO protocol. EEG-only, fNIRS-only, and combined EEG-fNIRS configurations were evaluated with the same EPECT architecture and training protocol. The combined configuration gives the strongest performance, which points to a complementary contribution from the electrophysiological and hemodynamic signals.
Table 6.
Modality contribution analysis under the LOSO protocol. EEG-only, fNIRS-only, and combined EEG-fNIRS configurations were evaluated with the same EPECT architecture and training protocol. The combined configuration gives the strongest performance, which points to a complementary contribution from the electrophysiological and hemodynamic signals.
| Input Configuration | MI (%) | n-Back (%) | DSR (%) | WG (%) | Average (%) |
|---|
| EEG only | 88.6 | 86.9 | 89.9 | 89.0 | 88.6 |
| fNIRS only | 80.5 | 77.8 | 82.4 | 80.7 | 80.4 |
| EEG-fNIRS | 97.3 | 96.3 | 98.1 | 97.9 | 97.4 |
Table 7.
Comparison between EPECT and simpler deep learning baselines under the same LOSO protocol. The CNN and LSTM baselines used the same input representation and training procedure as EPECT; therefore, the gap in accuracy is attributable to the model architecture.
Table 7.
Comparison between EPECT and simpler deep learning baselines under the same LOSO protocol. The CNN and LSTM baselines used the same input representation and training procedure as EPECT; therefore, the gap in accuracy is attributable to the model architecture.
| Model | MI (%) | n-Back (%) | DSR (%) | WG (%) | Average (%) |
|---|
| CNN baseline | 78.4 | 76.9 | 80.2 | 79.1 | 78.7 |
| LSTM baseline | 80.1 | 78.3 | 81.6 | 80.8 | 80.2 |
| EPECT | 97.3 | 96.3 | 98.1 | 97.9 | 97.4 |
Table 8.
Comprehensive comparison of EPECT with competing models under the same preprocessing pipeline, feature extraction procedure, LOSO protocol, and dataset splits. The results show that EPECT consistently outperforms conventional machine learning, recurrent, convolutional, hybrid, and standard transformer baselines across all four tasks.
Table 8.
Comprehensive comparison of EPECT with competing models under the same preprocessing pipeline, feature extraction procedure, LOSO protocol, and dataset splits. The results show that EPECT consistently outperforms conventional machine learning, recurrent, convolutional, hybrid, and standard transformer baselines across all four tasks.
| Model | MI (%) | n-Back (%) | DSR (%) | WG (%) | Average (%) |
|---|
| SVM | 71.2 | 68.5 | 73.1 | 70.4 | 70.8 |
| RF | 73.8 | 70.9 | 75.4 | 72.6 | 73.2 |
| CNN | 78.4 | 76.9 | 80.2 | 79.1 | 78.7 |
| LSTM | 80.1 | 78.3 | 81.6 | 80.8 | 80.2 |
| CNN–LSTM | 84.3 | 82.1 | 85.6 | 83.7 | 83.9 |
| Standard transformer | 89.8 | 88.1 | 91.2 | 90.4 | 89.9 |
| EPECT | 97.3 | 96.3 | 98.1 | 97.9 | 97.4 |
Table 9.
Ablation study of EPECT under the LOSO protocol. Each variant removes one architectural component while keeping all other hyperparameters fixed. Reported accuracies are the means across LOSO folds on the held-out test partitions, and the rightmost column shows the average absolute drop relative to the full model.
Table 9.
Ablation study of EPECT under the LOSO protocol. Each variant removes one architectural component while keeping all other hyperparameters fixed. Reported accuracies are the means across LOSO folds on the held-out test partitions, and the rightmost column shows the average absolute drop relative to the full model.
| Configuration | MI (%) | n-Back (%) | DSR (%) | WG (%) | Average (%) | vs. Full (pp) |
|---|
| EPECT (full) | 97.3 | 96.3 | 98.1 | 97.9 | 97.4 | — |
| w/o positional encoding | 94.3 | 93.3 | 95.1 | 94.9 | 94.4 | |
| w/o convolutional front-end | 91.3 | 90.3 | 92.1 | 91.9 | 91.4 | |
| w/o eigenvalue-guided attention | 89.3 | 88.3 | 90.1 | 89.9 | 89.4 | |
Table 10.
Generalization of EPECT to two independent EEG-fNIRS datasets. Both datasets differ from the primary benchmarks in subject pool, paradigm, and montage. Reported accuracies follow the LOSO protocol used elsewhere in the paper.
Table 10.
Generalization of EPECT to two independent EEG-fNIRS datasets. Both datasets differ from the primary benchmarks in subject pool, paradigm, and montage. Reported accuracies follow the LOSO protocol used elsewhere in the paper.
| Dataset | Subjects | EEG Channels | fNIRS Channels | Task (Classes) | Test Accuracy (%) |
|---|
| [35] | 15 (right-handed males) | 21 | 34 | Motor execution: right vs. left hand (2) | 99.1 |
| [36] | 12 | 22 | 9 | MA (2) | 98.3 |
Table 11.
ANOVA results for the EEG and fNIRS feature representations along three axes: cross-subject variability (separately for class labels 0 and 1), temporal variability across all time frames, and label-wise differences between the two task classes. EEG yields large F-statistics with negligible p-values along every axis, whereas fNIRS shows no significant variability along any axis.
Table 11.
ANOVA results for the EEG and fNIRS feature representations along three axes: cross-subject variability (separately for class labels 0 and 1), temporal variability across all time frames, and label-wise differences between the two task classes. EEG yields large F-statistics with negligible p-values along every axis, whereas fNIRS shows no significant variability along any axis.
| Source of Variability | Label | EEG F | EEG p-Value | fNIRS F | fNIRS p-Value |
|---|
| Cross-subject | 0 | 172.83 | < | 0.95 | 0.5275 |
| Cross-subject | 1 | 81.51 | < | 0.92 | 0.5835 |
| Temporal (frames) | All | 12.06 | | 0.91 | 0.5585 |
| Label difference | 1 vs. 0 | 71.12 | | 0.85 | 0.3557 |