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.4

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.4
File Size Uploaded
meegnet-0.4.tar.gz 46.5 kB Details

Built distribution (wheel)

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

Total release size: 95.6 kB

Release files / meegnet-0.4.tar.gz

Download URL meegnet-0.4.tar.gz
Size 46.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9d7fd3540df5b8e0ca171ea52c4259dd14c27b1b12bc38c6ff6a3c2dbbe9435b
BLAKE2b-256 checksum
How to use checksums
64167d697729c6985cc6560983013d32bd7859909802eb7682ae2c5ca14361e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.12.13 Linux/7.2.2-1-cachyos

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

Download URL meegnet-0.4-py3-none-any.whl
Size 49.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
659b54d864b83907814e64490b496a173fbba7145f1a8219828677acded45c24
BLAKE2b-256 checksum
How to use checksums
4c90914ba2b1a32cc640fcf9a9250c6c3de4c98abd096eb1c5a429d0f137a36f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.12.13 Linux/7.2.2-1-cachyos

Release history Release notifications | RSS feed

0.5

2 release files

This release

0.4 This release

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