Abstract
Efficient P300 detection in brain–computer interfaces (BCIs) remains a challenge due to low signal-to-noise ratio and the need to balance decoding accuracy with computational requirements. To address these issues, we propose multi-scale temporal-spatial attention-CNN, a compact MSTA convolutional neural network with only 3185 total parameters, including 3105 trainable parameters. The architecture combines temporal, depthwise spatial, and separable convolutions with residual dual-branch attention to modulate learned feature channels and pooled temporal representations. A retrospective evaluation on BCI Competition III Dataset II used character-level cross-validation, three training seeds, and matched attention ablations. At 15 stimulus repetitions, mean character recognition accuracy reached 93.67% for Subject A and 98.33% for Subject B, averaging 96.00% across subjects. The backbone without attention achieved 96.83%, indicating that attention did not improve overall final-repetition accuracy. However, attention increased Subject A’s mean accuracy across repetitions 1–15 from 69.89% to 71.04% and improved several flash-level metrics for Subject B. The full model required 0.915 million counted convolutional/dense multiply–accumulate operations per EEG epoch and achieved a median isolated CPU inference latency of 0.923 ms. Cross-subject transfer remained limited. These findings establish a compact P300 decoding framework and quantify the subject-dependent benefits and computational costs of attention. The reproducible implementation provides a foundation for further development toward portable BCI systems, with independent and online validation remaining necessary.

This publication has 29 references indexed in Scilit: