Skip to main content

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://raw.githubusercontent.com/arthurdehgan/meegnet/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}
}

Metadata

Release files for meegnet 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meegnet 0.5
File Size Uploaded
meegnet-0.5.tar.gz 51.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meegnet 0.5
File Interpreter ABI Platform
meegnet-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 105.9 kB

Release files / meegnet-0.5.tar.gz

Download URL meegnet-0.5.tar.gz
Size 51.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b6f012795e112a719dde3648ae1b91613d380e2a1c87bda0d1484a18b192e295
BLAKE2b-256 checksum
How to use checksums
ae7b51b4e0adff2af3b8e0a978631a0bf948524e5c14fe49afe4eb989026e563
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.12.13 Linux/7.2.4-3-cachyos

Release files / meegnet-0.5-py3-none-any.whl

Download URL meegnet-0.5-py3-none-any.whl
Size 54.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f7386e145dcd3d7572096d1757d890d4f1df3cb7248fda0fe23fcabf15a3f10
BLAKE2b-256 checksum
How to use checksums
3b2ada56cba5bdaa49cb816d100ff6aad1eebc436ab383580b4b722814a66392
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.12.13 Linux/7.2.4-3-cachyos

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

0.4

2 release files

0.3

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page