MEEGNet: An open source python library for the application of convolutional neural networks to MEG
Arthur DehganiD, Annalisa PascarellaiD, Yann HareliD, Irina RishiD, Karim JerbiiD
Abstract
Artificial Neural Networks (ANNs) are rapidly gaining traction in neuroscience, proving invaluable for decoding and modeling brain signals from techniques such as electroencephalography (EEG) and functional magnetic resonance imaging (fMRI). Although these networks are beginning to find applications in magnetoencephalography (MEG), their use in this domain is still in the early stages. Here, we introduces MEEGNet, a novel Python library paired with an intuitive convolutional neural network (CNN) architecture designed primarily for MEG data, yet adaptable to EEG signals. The MEEGNet model was trained and cross-validated using MEG data from 643 participants across four classification tasks, including auditory and visual stimulus classification and age prediction. Our model achieves competitive performance across all tasks, with a notable balance of accuracy and efficiency--for instance, reaching 92.70% test accuracy in an auditory vs. visual classification task while maintaining shorter training times than other architectures. The MEEGNet pipeline also integrates latent space visualization tools, adapted for MEG and EEG data. These include saliency maps and Grad-CAM methods, which enhance the interpretability of ANN-based classification and help address the black-box critique of such models. Importantly, the MEEGNet library is designed for extensibility, allowing the neuroscience and machine learning communities to add functionalities and ANN models. By prioritizing usability, transparency, and interpretability, MEEGNet empowers MEG- and EEG-based research with a user-friendly and modular framework.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 1
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Classification and Analysis of Minimally-Processed Data from a Large Magnetoencephalography Dataset using Convolutional Neural Networks
Jon Garry, Thomas P. Trappenberg, … Timothy Bardouille·bioRxiv·Nov 19, 2019
- Meggie - easy-to-use graphical user interface for M/EEG analysis based on MNE-python
Erkka Heinilä, Tiina M. Parviainen·bioRxiv·Sep 12, 2022
- Human Neocortical Neurosolver (HNN): A new software tool for interpreting the cellular and network origin of human MEG/EEG data
Samuel A. Neymotin, Dylan S Daniels, … Stephanie R. Jones·eLifePeer-reviewed·Jan 22, 2020
- Interpretable full-epoch multiclass decoding for M/EEG
Richárd Csáky, Mats W.J. van Es, … Mark W. Woolrich·bioRxiv·Mar 13, 2023
- A CNN model with feature integration for MI EEG subject classification in BMI
Arunabha Mohan Roy·bioRxiv·Jan 5, 2022
- The ENIGMA MEG Pipeline: Automated cortically localized spectral analysis of multi-site resting state MEG datasets
Allison Carol Nugent, Anna M. Namyst, … Jeffrey D. Stout·bioRxiv·Jun 8, 2026