Skip to main content

Solves the M/EEG inverse problem using artificial neural networks with Python 3 and the MNE library.

Project description

esinet: Electric source imaging using artificial neural networks (ANNs)

esinet let's you solve the EEG inverse problem using ANNs. It currently supports one architecture: A fully connected neural network which is trained on single time instances of M/EEG data. This model was described in our paper.


esinet

Neural network design was created here



Dependencies:


Installation from PyPi

Use pip to install esinet and all its dependencies from PyPi:

pip install esinet

Quick start

The following code demonstrates how to use this package:

from esinet import Simulation, Net

# Simulate M/EEG data
settings = dict(duration_of_trial=0.)
sim = Simulation(fwd, info, settings=settings)
sim.simulate(n_samples=10000)

# Train neural network on the simulated data
net = Net(fwd)
net.fit(sim)

# Perform predictions on your data
stc = net.predict(epochs)

First steps

Check out one of the tutorials to learn how to use the package:

  • Tutorial 1: The fastest way to get started with the fully-connected ANN. This tutorial can be used as an entry point. If you want to dig deeper you should have a look at the next tutorials, too!
  • Tutorial 2: Use esinet with low-level functions that allow for more control over your parameters with respect to simulations and training of the neural network.
  • Tutorial 3: A demonstration of simulation parameters and how they affect the model performance.

Feedback

Please leave your feedback and bug reports at lukas_hecker@web.de.


Literature

Please cite us with this publication:

@ARTICLE{10.3389/fnins.2021.569918, AUTHOR={Hecker, Lukas and Rupprecht, Rebekka and Tebartz Van Elst, Ludger and Kornmeier, Jürgen},
TITLE={ConvDip: A Convolutional Neural Network for Better EEG Source Imaging},
JOURNAL={Frontiers in Neuroscience},
VOLUME={15},
PAGES={533},
YEAR={2021},
URL={https://www.frontiersin.org/article/10.3389/fnins.2021.569918},
DOI={10.3389/fnins.2021.569918},
ISSN={1662-453X} }

Troubleshooting

Notes on current version

  • This version 0.1.0 is fully compatible with the mne-python package. This meant that I had to change the whole API to match the mne-python API. Please have a look at the new tutorials in order to get familiar with the new code structure or revert back to an earlier version. Check the changelog for a version list.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

esinet-0.1.1-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file esinet-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: esinet-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for esinet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 adfd208f20da16328b193eb72c0151cb8a41ca9bf9fcba3673646b6f17fea84c
MD5 0dc398698a7af5a9115d4bd31c871359
BLAKE2b-256 a29b3ab4d30de11b0389a59956bed5915b113d960fd0cf850a16b8110802cd6c

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