Bioelectronics Neurophysiology and Engineering Lab (BNEL)

Bioelectronics Neurophysiology and Engineering Lab (BNEL)#

This is the central documentation hub for software tools developed in the Bioelectronics Neurophysiology and Engineering Lab (BNEL) at Mayo Clinic. The tools are designed to facilitate the analysis of brain electrophysiology, behavior, and dynamics.

The Bioelectronics Neurophysiology and Engineering Laboratory, led by Gregory A. Worrell, M.D., Ph.D., is a multidisciplinary discovery and translational research laboratory focused on exploring the human brain. Learn more on the official website.

BrainMaze toolbox logo_brainmaze#

BrainMaze is a modular Python toolbox for analyzing brain electrophysiology, behavior, and dynamics. Each component is a standalone, pip-installable package with its own documentation.

BrainMaze EEG

EEG/iEEG analysis: interictal spike detection (Janca, Barkmeier, and a gap-aware wrapper for recordings with dropouts), slow-wave detection, sleep classification, hypnogram scoring, and CRP analysis of evoked responses.

https://bnelair.github.io/brainmaze-eeg/
BrainMaze EEG Models

Ready-to-use trained EEG/iEEG models on ONNX Runtime (CPU, or NVIDIA (CUDA) GPU via onnxruntime-gpu; no PyTorch needed): seizure probability and OpenSpindleNet sleep-spindle detection.

https://bnelair.github.io/brainmaze-eeg-models/
BrainMaze Utils

Shared signal, file, and statistics utilities used across the toolbox, including resampling and helpers for NaN gaps in recordings.

https://bnelair.github.io/brainmaze-utils/
BrainMaze ZMQ

ZeroMQ communication wrappers for real-time acquisition pipelines.

https://bnelair.github.io/brainmaze-zmq/
BrainMaze Torch (superseded)

Superseded by BrainMaze EEG Models (brainmaze-eeg-models), which carries on its seizure-probability model without needing PyTorch. New projects should use brainmaze-eeg-models.

https://bnelair.github.io/brainmaze-torch/

MEF3 tools#

Open-source toolchain for the Multiscale Electrophysiology Format (MEF 3.0): libraries, a streaming server, and a desktop app. See the MEF3 tools page for details, including the deprecated mef_tools library.

mef3io

Read and write MEF 3.0 recordings from Python, MATLAB and C++, and de-identify them from Python and C++. Replaces mef_tools.

https://bnelair.github.io/mef3io/
mef3io-server

gRPC server and client for efficient, concurrent streaming of MEF3 data, with caching and prefetch for viewers and data-processing applications.

https://bnelair.github.io/mef3io-server/
mef3io-studio (pre-release)

Desktop app for exploring and anonymizing MEF 3.0 recordings, built on mef3io (Windows, macOS, Linux). Test versions are downloadable from GitHub Releases.

https://github.com/bnelair/mef3io-studio
mef3io-coregistration

Read two MEF3 recordings that were coregistered (aligned onto one clock) as if they were one recording. Built on mef3io.

https://github.com/bnelair/mef3io-coregistration

More#

Papers with Code 🔬

Code examples and links to papers from the Bioelectronics Neurophysiology and Engineering Lab (BNEL) at Mayo Clinic.

bnel_projects/index.html