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

ORIGINAL RESEARCH article

Front. Neurosci.

Sec. Neuroscience Methods and Techniques

This article is part of the Research TopicAdvancements in Neural Coding: Sensory Perception and Multiplexed Encoding StrategiesView all 4 articles

TCPL: Task-Conditioned Prompt Learning for Few-Shot Cross-Subject Motor Imagery EEG Decoding

Provisionally accepted
Pengpai  WangPengpai Wang1*Tiantian  XieTiantian Xie2Yueying  ZhouYueying Zhou3Peiliang  GongPeiliang Gong4
  • 1Nanjing Tech University College of Computer and Information Engineering, Nanjing, China
  • 2City University of Hong Kong Department of Electrical Engineering, HongKong, China
  • 3Liaocheng University School of Mathematics Science, Liaocheng, China
  • 4Nanjing University of Aeronautics and Astronautics College of Artificial Intelligence, Nanjing, China

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

Motor imagery (MI) electroencephalogram (EEG) decoding plays a critical role in brain–computer interfaces but remains challenging due to large inter-subject variability and limited training data. Existing approaches often struggle with few-shot cross-subject adaptation, as they require either extensive fine-tuning or fail to capture individualized neural dynamics. To address this issue, we propose a Task-Conditioned Prompt Learning (TCPL), which integrates a Task-Conditioned Prompt (TCP) module with a hybrid Temporal Convolutional Network (TCN) and Transformer backbone under a meta-learning framework. Specifically, TCP encodes subject-specific variability as prompt tokens, TCN extracts local temporal patterns, Transformer captures global dependencies, and meta-learning enables rapid adaptation with minimal samples. The proposed TCPL model is validated on three widely used public datasets, GigaScience, Physionet, and BCI Competition IV 2a, demonstrating strong generalization and efficient adaptation across unseen subjects. These results highlight the feasibility of TCPL for practical few-shot EEG decoding and its potential to advance the development of personalized brain–computer interface systems.

Keywords: Motor Imagery, EEG decoding, task-conditioned prompt, Few-shot learning, transformer, meta-learning

Received: 20 Aug 2025; Accepted: 03 Nov 2025.

Copyright: © 2025 Wang, Xie, Zhou and Gong. 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: Pengpai Wang, pengpaiwang@nuaa.edu.cn

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.