# Few-Shot Relation Learning with Attention for EEG-based Motor Imagery Classification

arXiv: https://arxiv.org/abs/2003.01300 · HTML: https://mlsanity.com/paper/2003.01300/

## Key facts

- Cited by 10 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 3 Mar 2020.

## Built on by (most cited first, 10 of 10)

- [Calibration-free online test-time adaptation for electroencephalography motor imagery decoding](https://mlsanity.com/paper/2311.18520/) (2023)
- [Toward Open-World Electroencephalogram Decoding Via Deep Learning: A Comprehensive Survey](https://mlsanity.com/paper/2112.06654/) (2021)
- [CAD: Co-Adapting Discriminative Features for Improved Few-Shot Classification](https://mlsanity.com/paper/2203.13465/) (2022)
- [CNN-based Approaches For Cross-Subject Classification in Motor Imagery: From The State-of-The-Art to DynamicNet](https://mlsanity.com/paper/2105.07917/) (2021)
- [A Novel Semi-supervised Meta Learning Method for Subject-transfer Brain-computer Interface](https://mlsanity.com/paper/2209.03785/) (2022)
- [A Meta-Learning Approach for Medical Image Registration](https://mlsanity.com/paper/2104.10447/) (2021)
- [Uncertainty-Aware Semi-Supervised Few Shot Segmentation](https://mlsanity.com/paper/2110.08954/) (2021)
- [ConTraNet: A single end-to-end hybrid network for EEG-based and EMG-based human machine interfaces](https://mlsanity.com/paper/2206.10677/) (2022)
- [Subject-Adaptive Transfer Learning Using Resting State EEG Signals for Cross-Subject EEG Motor Imagery Classification](https://mlsanity.com/paper/2405.19346/) (2024)
- [Tailoring deep learning for real-time brain-computer interfaces: From offline models to calibration-free online decoding](https://mlsanity.com/paper/2507.06779/) (2025)

## Abstract (arXiv)

Brain-Computer Interfaces (BCI) based on Electroencephalography (EEG) signals, in particular motor imagery (MI) data have received a lot of attention and show the potential towards the design of key technologies both in healthcare and other industries. MI data is generated when a subject imagines movement of limbs and can be used to aid rehabilitation as well as in autonomous driving scenarios. Thus, classification of MI signals is vital for EEG-based BCI systems. Recently, MI EEG classification techniques using deep learning have shown improved performance over conventional techniques. However, due to inter-subject variability, the scarcity of unseen subject data, and low signal-to-noise ratio, extracting robust features and improving accuracy is still challenging. In this context, we propose a novel two-way few shot network that is able to efficiently learn how to learn representative features of unseen subject categories and how to classify them with limited MI EEG data. The pipeline includes an embedding module that learns feature representations from a set of samples, an attention mechanism for key signal feature discovery, and a relation module for final classification based on relation scores between a support set and a query signal. In addition to the unified learning of feature similarity and a few shot classifier, our method leads to emphasize informative features in support data relevant to the query data, which generalizes better on unseen subjects. For evaluation, we used the BCI competition IV 2b dataset and achieved an 9.3% accuracy improvement in the 20-shot classification task with state-of-the-art performance. Experimental results demonstrate the effectiveness of employing attention and the overall generality of our method.
