Skip to main content

Advanced biosignal processing toolbox

Project description

MEDUSA© Kernel

MEDUSA© is a software ecosystem for the development of BCIs and neuroscience experiments. It has two independent components with dfferent goals: MEDUSA© Kernel and MEDUSA© Platform.

MEDUSA© Kernel is a Python package that contains readyto- use methods to analyze brain signals, including advanced signal processing, machine learning, deep learning, and miscellaneous high-level analyses. It also includes logical functions and classes to handle different biosignals, such as electroencephalography (EEG) and magnetoencephalography (MEG), save experimental data or implement standalone processing pipelines.

Information

Check the following links to know more about the MEDUSA environment for neurotechnology and brain-computer interface (BCI) experiments:

Important: MEDUSA Kernel is under heavy development! It may change significantly in following versions

Overview

MEDUSA Kernel is a Python library, available in the Python Package Index (PyPI) repository, with a complete suite of functions for signal processing. The included functions can be categorized according to their different levels of abstraction. The first level is composed of low-level functions to process signals and calculate basic parameters, including the following:

  • Temporal filters: online and offline infinite impulse response filters (IIR) and offline finite impulse response filters (FIR).
  • Spatial filters: common average reference (CAR), laplacian filter, multi-class common spatial patterns (CSP) and canonical correlation analysis (CCA).
  • Local activation: including spectral metrics, such as band power, median frequency, Shannon entropy , and complexity metrics, such as central tendency measure, sample entropy, multiscale entropy, Lempel-Ziv's complexity and Multiscale Lempel-Ziv's complexity.
  • Connectivity: amplitude metrics, such as amplitude correlation envelope (AEC) and instantaneous amplitude correlation (IAC), and phase metrics, such as phase locking value (PLV), phase lag index (PLI) and weighted PLI (wPLI).

In a higher level of abstraction there are functions that apply a processing pipeline to the input data to analyze certain features. MEDUSA does not assume the nature of the input data in low-level functions, but most of the high-level analysis that are currently implemented are designed to work with electroencephalography (EEG) and magnetoencephalography (MEG) recordings. These functions include:

  • Signal processing for BCIs based on event related potentials (ERP): complete classification pipelines including regularized linear discriminant analysis (rLDA), EEGNet and EEG-Inception that can be applied in offline and online modes; ERP analysis with advanced charts.
  • Signal processing for BCIs based on motor imagery (MI): complete classification pipelines including CSP combined with rLDA, EEGNet, EEG-Inception and EEGSym that can be applied in offline and online modes; MI analysis with advanced charts.
  • Signal processing for BCIs based on code-modulated visual evoked potentials (cVEP): complete classification pipeline based on CCA; cVEP analysis with advanced charts.
  • Signal processing for neurofeedback (NF): battery of high-level models based on spectral and connectivity metrics ready to be applied in online and offline applications.

Additionally, the package includes classes and functions to import data from other toolboxes (e.g., MATLAB, MNE), define the data format of signals and experiments, save recordings to several file types (e.g., bson, json, mat) and implement custom real-time signal processing pipelines. Furthermore, some of the functions, including the BCI models, can be applied in both online and offine experiments. Therefore, MEDUSA© Kernel can be used for offine analysis of previously recorded data, such as public databases, or in real-time tasks. In fact, MEDUSA© Platform relies on this package for signal processing. This is an interesting feature that allows to reproduce the exact same results achieved in an online experiment during subsequent offine analyses, facilitating experimental reproducibility.

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

medusa_kernel-1.3.1.tar.gz (256.1 kB view details)

Uploaded Source

Built Distribution

medusa_kernel-1.3.1-py3-none-any.whl (277.8 kB view details)

Uploaded Python 3

File details

Details for the file medusa_kernel-1.3.1.tar.gz.

File metadata

  • Download URL: medusa_kernel-1.3.1.tar.gz
  • Upload date:
  • Size: 256.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for medusa_kernel-1.3.1.tar.gz
Algorithm Hash digest
SHA256 790ba8bc2ffcac12399f670b57d22dd0079c4edfe45ae48e66e978b7743772f4
MD5 371cb6fb54658f345479d5a0670c4d46
BLAKE2b-256 8ad71b200829f39923a2b48406fa49d0758fa61d40a6aed144aa3cbdb1fc92fe

See more details on using hashes here.

File details

Details for the file medusa_kernel-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for medusa_kernel-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0baba9dc39e09d93a6976710465c1c6740c9a28741611b9507409c9b8619d9b6
MD5 5fc5d2f480d5f8e87e1192e0bf4e6139
BLAKE2b-256 0c25106786ecc1a6ea8ed83ac6a4aba5ad237670203e63653f55892e044aac5e

See more details on using hashes here.

Supported by

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