Coder Social home page Coder Social logo

bbelaoucha / isdr_p Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 18.47 MB

A solver of EEG/MEG inverse problem using a multivariate auto-regressive model on the source space

C++ 32.51% Shell 0.39% Python 1.21% C 9.48% Jupyter Notebook 55.12% CMake 1.30%
eeg meg mxne isdr brain-imaging fuse-information source-reconstruction inverse-problem inverse-solver sparse-solution brain-activity

isdr_p's Introduction

iSDR_p (iterative source and dynamics reconstruction)

A solver of EEG/MEG inverse problem using a multivariate auto-regressive model (MVAR) on the source space

picture

iSDR_p is a C++/Python package for solving the EEG/MEG inverse problem using structural/functional prior on the causality between brain regions/sources. iSDR_p solve the following functional:

to obtain the brain activity with an initial MAR model A_i's. Then, brain regions/sources interactions are obtained by optimizing the following cost function:

Where:

 * A_i: i=1,..,p are the matrices of the MVAR model of order p.

 * M_t: EEG or/and MEG measurements at time t.

 * G: Lead field matrix which project brain activity into sensor space.

 * J_{t-i}: Brain activity (distributed source model with fixed position) at time t-i.

 * alpha ]0,100[: percentage of the maximum alpha_max (reg parameter which results in zero brain activity).

Requirements

1-MATIO > 1.5.2 2-HDF5 3-FLENS 4-MKL intel 5-CMake

Cite

(1) Brahim Belaoucha, Théodore Papadopoulo. Large brain effective network from EEG/MEG data and dMR information. PRNI 2017 – 7th International Workshop on Pattern Recognition in NeuroImaging, Jun 2017, Toronto, Canada.

(2) Brahim Belaoucha, Mouloud Kachouane, Théodore Papadopoulo. Multivariate Autoregressive Model Constrained by Anatomical Connectivity to Reconstruct Focal Sources. 2016 38th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Aug 2016, Orlando, United States. 2016.

Author

Belaoucha Brahim Theodore Papadopoulo

Installation

Assuming your are in the source directory mkdir build cmake -DMKL_ROOT_DIR=YOUR_MKL_INSTALL_DIR -Dmatio_DIR=YOUR_MATIO_INSTALL_DIR -DFLENS_INCLUDE_DIR=YOUR_FLENS_INSTALL_DIR .. make

Details

More details about the package input parameters can be obtained by:

iSDR_p --help (-h).

The first argument of ./iSDR_p is a .mat file containing the following:

* M: measurements.

* G: Lead field matrix.

* GA: lead field matrix times initial values of A_i's, i=1,..,p i.e. GA = [GA1,..,GAp].

* SC: structural connectivity matrix (symmetric).

* n_c: size of sensor space.

* n_t: number of measurements samples.

* n_s: size of source space.

* m_p: order of MVAR.

Example

An example of iSDR can be seeing in the examples folder.

Test

To test the iSDR_p package, you can run the test module:

test_MxNE_iSDR

To use it in Python

Now, it is possible to use iSDR in Python to reconstruct the brain activity. Go to ./python_wrapper for more details on how to use the package on python

isdr_p's People

Contributors

bbelaoucha avatar papadop avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

isdr_p's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.