MEG-GPT: A transformer-based foundation model for magnetoencephalography data
Rukuang Huang, Sungjun Cho, Chetan Gohil, Oiwi Parker Jones, Mark Woolrich

TL;DR
MEG-GPT is a transformer-based foundation model for magnetoencephalography data that captures complex brain dynamics, improves decoding accuracy, and can be fine-tuned for personalized neural analysis.
Contribution
Introduces MEG-GPT, a novel transformer model with a data-driven tokeniser for continuous MEG signals, enabling realistic data generation and improved neural decoding.
Findings
Model generates realistic spatio-spectral MEG data.
Improves zero-shot decoding accuracy across sessions and subjects.
Can be fine-tuned for enhanced cross-subject decoding.
Abstract
Modelling the complex spatiotemporal patterns of large-scale brain dynamics is crucial for neuroscience, but traditional methods fail to capture the rich structure in modalities such as magnetoencephalography (MEG). Recent advances in deep learning have enabled significant progress in other domains, such as language and vision, by using foundation models at scale. Here, we introduce MEG-GPT, a transformer based foundation model that uses time-attention and next time-point prediction. To facilitate this, we also introduce a novel data-driven tokeniser for continuous MEG data, which preserves the high temporal resolution of continuous MEG signals without lossy transformations. We trained MEG-GPT on tokenised brain region time-courses extracted from a large-scale MEG dataset (N=612, eyes-closed rest, Cam-CAN data), and show that the learnt model can generate data with realistic…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEEG and Brain-Computer Interfaces · Functional Brain Connectivity Studies · Face Recognition and Perception
