Skip to main content

python-mindrove-emg

Tools for recording, streaming, replaying, and analyzing MindRove EMG + IMU data.

This project is currently alpha software. It is intended for research workflows around MindRove Wi-Fi EMG devices, Lab Streaming Layer (LSL), XDF recordings, and quick gesture/state separability checks.

Features

  • Stream one MindRove device to LSL as EMG and IMU streams.
  • Record MindRove EMG + IMU data to compressed .npz files.
  • Stream either or both of two MindRove Wi-Fi devices from one GUI.
  • Apply optional EMG DC removal and bandpass filtering in the dual-device streamer.
  • Replay .npz or .xdf recordings to LSL.
  • Analyze event-labeled XDF recordings for state separability.

Installation

For GUI acquisition and streaming:

pip install "python-mindrove-emg[gui]"

For XDF replay support:

pip install "python-mindrove-emg[gui,playback]"

For offline separability analysis:

pip install "python-mindrove-emg[analysis]"

For development from a local checkout:

pip install -e ".[all,dev]"

Command-Line Tools

Single-device LSL streamer:

mindrove-lsl

Single-device recorder:

mindrove-recorder --output-dir recordings --session-name mindrove_session

Dual-device LSL streamer:

mindrove-dual-lsl

Dual-device streamer with custom LSL prefixes:

mindrove-dual-lsl --device-a-prefix MindRove_Left --device-b-prefix MindRove_Right

Dual-device streamer with explicit device IPs:

mindrove-dual-lsl --device-a-ip 192.168.4.1 --device-b-ip 192.168.5.1

Separability analysis for event-labeled XDF recordings:

mindrove-separability C:\path\to\xdf_folder --output-dir analysis_outputs\session001

Data Streams

The LSL tools expose:

  • EMG: 8 channels, float32, nominally 500 Hz.
  • Combined IMU: 9 channels, accelerometer + gyroscope + magnetometer.
  • Optional IMU breakout streams in the dual-device GUI: accelerometer, gyroscope, magnetometer.

Recording And Analysis Notes

The separability analyzer expects XDF files with:

  • A continuous MindRove signal stream.
  • A marker stream with prompt_onset events.
  • Gesture markers encoded like prompt_onset|phase=gesture|trial=001|gesture=hand_open|duration_s=5.000.

It extracts gesture windows, computes time-domain EMG features, and reports leave-one-recording-out accuracy, trial majority-vote accuracy, confusion matrices, pairwise accuracy, centroid distances, and a PCA plot.

Repository Hygiene

Do not commit local recordings, generated analysis outputs, virtual environments, __pycache__, or *.egg-info directories. These are ignored by .gitignore.

License

MIT. See LICENSE.

Download files

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

Source Distribution

python_mindrove_emg-0.1.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

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

python_mindrove_emg-0.1.0-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file python_mindrove_emg-0.1.0.tar.gz.

File metadata

  • Download URL: python_mindrove_emg-0.1.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for python_mindrove_emg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 117b046f64388c006d54ac17fa02db841e17a330b1cf189a656535ebc4bc5938
MD5 bc4ceb41ab5accb826abc1a104d02fc6
BLAKE2b-256 1676b487d2c6ffa7a6a129960b9772de605b8b3ecb2def196abaeac3d4cd0cf6

See more details on using hashes here.

File details

Details for the file python_mindrove_emg-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_mindrove_emg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8b7ad67746c9f9c5acd41738853117fd74001610e82deea61d455ea3054cfcb
MD5 2636c511089afbe4086ee8a4bc845af6
BLAKE2b-256 e33c861e987ecc09113b539ab108bf24925d839c521e8a3fc2f4fdb387ba976f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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