Gram: A Large General EEG Model for Raw Data Classification and Restoration
- 28 November 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Affective Computing
- Vol. 17 (1) , 841-855
Abstract
Drawing insights from Large Language Models, researchers have developed several Large Electroencephalogram (EEG) models (LEMs) to learn a generalized representation adaptable to various tasks. However, such LEMs are scarce and neglecting the potential in data restoration tasks. Meanwhile, how to efficiently integrate temporal view and spectral view of EEG data has always been a focal point. In this paper, we propose Gram, a large general EEG model for raw EEG data classification and restoration tasks. Gram consists of two stages. 1) The initial stage quantizes raw EEG patches into base classes rich in temporal information. 2) The second stage features a multi-view layer-fusion masked autoencoder that exploits EEG's complex Temporal and Spectral views through dual training objectives: a spectral mimic target after layer-fusion encoder for visible patches and a base-class classification target after decoder for masked patches. Pretrained on 7000 hours of EEG data, Gram achieves state-of-the-art performance on four cross-subject classification tasks including motor imagery as well as event, emotion, and sleep stage classification. For EEG data restoration, our model significantly improves classification performance by repairing corrupted data in comparison to using noisy data.Keywords
This publication has 42 references indexed in Scilit:
- Mimic before Reconstruct: Enhancing Masked Autoencoders with Feature MimickingInternational Journal of Computer Vision, 2023
- A large EEG dataset for studying cross-session variability in motor imagery brain-computer interfaceScientific Data, 2022
- Identifying similarities and differences in emotion recognition with EEG and eye movements among Chinese, German, and French PeopleJournal of Neural Engineering, 2022
- Motor imagery EEG classification algorithm based on CNN-LSTM feature fusion networkBiomedical Signal Processing and Control, 2022
- EEGdenoiseNet: a benchmark dataset for deep learning solutions of EEG denoisingJournal of Neural Engineering, 2021
- Uncovering the structure of clinical EEG signals with self-supervised learningJournal of Neural Engineering, 2021
- The National Sleep Research Resource: towards a sleep data commonsJournal of the American Medical Informatics Association, 2018
- Multi-channel EEG recordings during 3,936 grasp and lift trials with varying weight and frictionScientific Data, 2014
- The non-invasive Berlin Brain–Computer Interface: Fast acquisition of effective performance in untrained subjectsNeuroImage, 2007
- Spherical splines for scalp potential and current density mappingElectroencephalography and Clinical Neurophysiology, 1989