Skip to main content

MEEGNet is an open-source Python toolbox for neuroscientists interested in using Artificial Neural Networks (ANNs) and more specifically Convolutional Neural Networks (CNNs) for Magnetoencephalography (MEG) and Electroencephalography (EEG) data analysis. Our library focuses on providing tools for interpretability and visualization of latent space, making ANNs more transparent.

Project description

Welcome to MEEGNet!

https://img.shields.io/pypi/v/meegnet.svg https://img.shields.io/pypi/pyversions/meegnet.svg

MEEGNet is an open-source Python toolbox for neuroscientists interested in using Artificial Neural Networks (ANNs) and more specifically Convolutional Neural Networks (CNNs) for Magnetoencephalography (MEG) and Electroencephalography (EEG) data analysis. Our library focuses on providing tools for interpretability and visualization of latent space, making ANNs more transparent.

Installation

pip install meegnet

More installation options can be found in the online documentation.

Tutorials and Examples

Prepare your data by following the instructions here

Learn the basics of how to train and evaluate using a pre-made network here

Generate saliency maps for your network here

Visualize latent space with Gradcam here

Learn about your model using filter visualizations here

Key Features

  • Dataset Management: Easily manage and preprocess MEG and EEG datasets using our custom dataset objects.

  • Model Management: Easily define, train, and evaluate CNN models for MEG and EEG data using our custom model object.

  • Model Explainability: Use our library to generate explanations for your CNN models, including saliency maps and feature importance metrics.

  • Latent Space Visualization: Visualize and explore the latent space of your CNN models using our custom visualization tools.

  • Pre-trained Architectures: Access pre-trained CNN architectures through Hugging Face and easily fine-tune them for your specific use case.

  • Tutorials and Examples: Learn how to use the library with our extensive suite of tutorials and example scripts.

Future Features

  • BIDS compatibility

  • VAR-CNN and LF-CNN from Zubarev et al. (2019)

MEEGNet Architecture

https://github.com/arthurdehgan/meegnet/blob/master/architecture.png

Other Available Architectures

The package currently supports the following architectures:

  • MLP

  • VGG-16

  • EEGNet

  • MEEGNet

License Information

MEEGNet is released under the MIT License. This license is permissive, allowing you to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software. The full text of the license can be found in the LICENSE file in the repository.

By using MEEGNet, you agree to the terms of the MIT License. In summary, the MIT License allows you to:

  • Use the software for any purpose, including commercial use.

  • Modify and distribute the software, as long as the original copyright notice and license notice are included in all copies or substantial portions of the software.

For more details, please refer to the LICENSE file or visit the Open Source Initiative’s MIT License page.

Alternatives

Maybe this package doesn’t suit your needs, in which case we can recommend similar packages with similar goals:

References

MEEGNet

Work in Progress

LF-CNN or VAR-CNN

Zubarev I, Zetter R, Halme HL, Parkkonen L. Adaptive neural network classifier for decoding MEG signals. Neuroimage. 2019 May 4;197:425-434. link

@article{Zubarev2019AdaptiveSignals.,
    title = {{Adaptive neural network classifier for decoding MEG signals.}},
    year = {2019},
    journal = {NeuroImage},
    author = {Zubarev, Ivan and Zetter, Rasmus and Halme, Hanna-Leena and Parkkonen, Lauri},
    month = {5},
    pages = {425--434},
    volume = {197},
    url = {https://linkinghub.elsevier.com/retrieve/pii/S1053811919303544 http://www.ncbi.nlm.nih.gov/pubmed/31059799},
    doi = {10.1016/j.neuroimage.2019.04.068},
    issn = {1095-9572},
    pmid = {31059799},
    keywords = {Brain–computer interface, Convolutional neural network, Magnetoencephalography}
}

EEGNet

@article{Lawhern2018,
  author={Vernon J Lawhern and Amelia J Solon and Nicholas R Waytowich and Stephen M Gordon and Chou P Hung and Brent J Lance},
  title={EEGNet: a compact convolutional neural network for EEG-based brain–computer interfaces},
  journal={Journal of Neural Engineering},
  volume={15},
  number={5},
  pages={056013},
  url={http://stacks.iop.org/1741-2552/15/i=5/a=056013},
  year={2018}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meegnet-0.3.tar.gz (46.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meegnet-0.3-py3-none-any.whl (48.1 kB view details)

Uploaded Python 3

File details

Details for the file meegnet-0.3.tar.gz.

File metadata

  • Download URL: meegnet-0.3.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.19.10-1-cachyos

File hashes

Hashes for meegnet-0.3.tar.gz
Algorithm Hash digest
SHA256 737c32b9ba93edfd7e879c3811e77af40a3f61fb45b8bee8feb52916eccaa1cf
MD5 df6488814416e9120d9c63c53c572597
BLAKE2b-256 ffbf083c72bba186167bad1dea28f4ecff2ec5c25567729d77d2b4bf1ccd0c61

See more details on using hashes here.

File details

Details for the file meegnet-0.3-py3-none-any.whl.

File metadata

  • Download URL: meegnet-0.3-py3-none-any.whl
  • Upload date:
  • Size: 48.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.19.10-1-cachyos

File hashes

Hashes for meegnet-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ed97f7d2c25aaaf07db597dc6b6906953da30bdfae0748a34927d1a0904a8bff
MD5 1bb02aa3940f79e1bea186c87a6760d0
BLAKE2b-256 3109079b624c6f88f0a92b037966708411cd67e74ec3d5c19d6c267d441194ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page