Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Neurosci.

Sec. Neural Technology

Consistency-Weighted Moving Average and Representation alignment for Domain Generalization in EEG Motor Imagery Decoding

Provisionally accepted
Zihao  ChenZihao Chen*Jiaming  CaiJiaming CaiBohao  ZhangBohao ZhangShuo  ZhangShuo ZhangJiawei  WangJiawei WangJun  LiJun Li
  • Hebei University, Baoding, China

The final, formatted version of the article will be published soon.

Cross-subject domain variability in EEG signals causes instability in feature extraction and a decline in classification performance. To overcome these limitations, we propose CW-MARA, a domain generalization framework that mitigates cross-subject variability by stabilizing model updates and enforcing consistent representation alignment, enabling the reliable extraction of domain-invariant EEG features even in the absence of target-domain data.} The proposed method employs a Consistency-Weighted Moving Average (CWMA) framework that adaptively updates the teacher model parameters, using the cosine similarity between student and teacher model parameters to control the updated strength. To enhance feature robustness and generalization, we design a Representation alignment block (RAB) to directly regularize feature representations, thereby improving cross-subject generalization. It includes two feature-space contrastive objectives: the Contrastive Large-Margin Loss (CLML), which enhances intra-class compactness and inter-class separability using Mixup, and the Multi-Grain Contrastive Loss (MGCL), which captures cross-subject consistency across temporal and spectral domains. textcolor{red}{Our extensive evaluation on BCI-IV 2a, 2b, OpenBMI, and self-collected datasets shows that CW-MARA consistently surpasses existing methods, improving robustness and cross-subject generalization, and thus contributing to more reliable MI-BCI systems.

Keywords: Brain-computer interface, Domain generalization, Electroencephalography, Motor Imagery, supervised learning

Received: 24 Sep 2025; Accepted: 28 Nov 2025.

Copyright: © 2025 Chen, Cai, Zhang, Zhang, Wang and Li. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Zihao Chen

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.