Skip to main content

Research-grade Python SDK for combined EMG+IMU wearable sensors

Project description

Biokinesis-SDK SDK

Research-grade Python SDK for combined EMG+IMU wearable sensors.

Competes directly with Delsys Trigno — matches or exceeds: 2000 Hz EMG, 9-axis IMU at 148 Hz, 16-bit resolution, configurable bandwidth, bipolar differential EMG, LSL output, multi-format export, up to 16 sensors with hardware sync.

Installation

pip install -e .

Quick Start

from biokinesis_sdk.core.types import SensorConfig, FilterConfig, EMGFrame, IMUFrame
from biokinesis_sdk.orchestrator import Orchestrator
from biokinesis_sdk.export import ExportManager
import numpy as np

# Set up orchestrator with 2 sensors
orch = Orchestrator()
orch.add_sensor(SensorConfig(sensor_id=1, label="Biceps",
                             filter_config=FilterConfig.standard()))
orch.add_sensor(SensorConfig(sensor_id=2, label="Triceps",
                             filter_config=FilterConfig.standard()))

# Ingest EMG data
emg_data = np.random.randn(4000) * 500  # 2 seconds at 2 kHz, µV
timestamps = np.arange(4000) * 500.0     # µs timestamps
frame = EMGFrame(sensor_id=1, timestamps_us=timestamps,
                 data=emg_data, sample_rate=2000.0)
orch.ingest_emg(1, frame)

# Export all formats
data = orch.collect_all_data()
ExportManager.export_all(data, "./output", formats=["csv", "hdf5", "mat"])

Modules

Module Description
biokinesis_sdk.emg.filters Butterworth bandpass (20–450 / 10–850 Hz), 50/60 Hz notch filter
biokinesis_sdk.emg.features RMS, MAV, ZCR, iEMG, median/mean frequency, waveform length
biokinesis_sdk.emg.analysis Muscle onset detection, MVC normalization, co-contraction index
biokinesis_sdk.imu.preprocessing Raw unit conversion, calibration, gyro bias estimation
biokinesis_sdk.imu.fusion Quaternion algebra, Madgwick AHRS (6-DOF / 9-DOF)
biokinesis_sdk.imu.kinematics Euler angles, gravity compensation, joint angle estimation
biokinesis_sdk.orchestrator 16-sensor manager, µs sync, hardware triggers
biokinesis_sdk.export CSV, HDF5, LSL, MATLAB .mat
biokinesis_sdk.pipelines Gait analysis, fatigue monitoring, prosthetics control

Running Tests

pip install -e ".[dev]"
python -m pytest tests/ -v

License

MIT

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

biokinesis_sdk-1.0.1.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

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

biokinesis_sdk-1.0.1-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

File details

Details for the file biokinesis_sdk-1.0.1.tar.gz.

File metadata

  • Download URL: biokinesis_sdk-1.0.1.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for biokinesis_sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8cf0d94dc5ed7084b1c001e69c6a0725745bf0ad9137c98a172c2bdc9e4a84d2
MD5 f5423b5a88f2ef826202510dc37cca3f
BLAKE2b-256 8991ec2bfc4e218906066fe069497b2c5e2ebacf835f73622b2c8a5d1b47c0e0

See more details on using hashes here.

File details

Details for the file biokinesis_sdk-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: biokinesis_sdk-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 43.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for biokinesis_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69468bb7a4480a9e5937e96799262f7a755b892067a2383d4f9e5b1d1718b89c
MD5 1215220691337f2f60f031d7d2ce6811
BLAKE2b-256 6636600b99bbb58ec8588a580d79938fd85d2dbcd85db595e5d78d5f63f0428e

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