Skip to main content

EMG signal processing pipeline

Project description

EMG Signal Processing Pipeline

pyemgpipeline is an electromyography (EMG) signal processing pipeline package.

This package implements internationally accepted EMG processing conventions and provides a high-level interface for ensuring user adherence to those conventions, in terms of (1) processing parameter values, (2) processing steps, and (3) processing step order.

The processing steps included in the package are DC offset removal, bandpass filtering, full wave rectification, linear envelope, end frame cutting, amplitude normalization, and segmentation.

Scope

This package defines the processing pipeline for both surface EMG and intramuscular EMG but not for high density EMG. The EMG recording requires that the minimum sample rate be at least twice the highest cutoff frequency of the bandpass filter based on the Nyquist theorem.

Overview

In pyemgpipeline, class DataProcessingManager in module wrappers is designed as the main wrapper for high-level, guided processing, and users are encouraged to use it to adhere to accepted EMG processing conventions. The other classes, methods, and functions are considered as lower level processing options.

The package is organized in modules processors, wrappers, and plots.

Module processors includes the base class BaseProcessor of all signal processors and seven classes for different processing steps: DCOffsetRemover, BandpassFilter, FullWaveRectifier, LinearEnvelope, EndFrameCutter, AmplitudeNormalizer, and Segmenter.

Module wrappers includes three wrapper classes to facilitate the signal processing by integrating data and individual processors. Class EMGMeasurement works for data of a single trial, class EMGMeasurementCollection works for data of multiple trials, and class DataProcessingManager is the high-level, guided processing wrapper with EMG processing conventions.

Module plots includes the function plot_emg to plot EMG signals on matplotlib figures and the class EMGPlotParams to manage the plot-related parameters.

Documentation

The documentation describes how to use this package, including package installation, quick start, examples explaining the breadth of the package’s functionality, and API reference.

Community Guidelines

For contribution, please clone the repository, make changes, and create a pull request.

For reporting any issues, please use github issues.

For support, please contact the authors via their emails or github issues.

Citation

If you use this package in your project, please cite this work.

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

pyemgpipeline-0.1.0.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

pyemgpipeline-0.1.0-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyemgpipeline-0.1.0.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.6

File hashes

Hashes for pyemgpipeline-0.1.0.tar.gz
Algorithm Hash digest
SHA256 24d83451c73e86a098e7fd86f2813f8eb8b59b8ee85d7d2522a379a7e1124b5d
MD5 62ffa040a2f7e3ada05dcddb6e623923
BLAKE2b-256 39e59d6ecdf753999b2cbd22c3bd80c9d41cfa6d127ee54f9e29edefb2946f4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyemgpipeline-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.6

File hashes

Hashes for pyemgpipeline-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0408cb79fc72fd66eb24aee95ecc39344441a8250bb18adfce92fa2b7becb34a
MD5 11441ed9edb761c684e1934b5aaeb84e
BLAKE2b-256 4654822c22495d7b5c78f8a3378f4ff363bae31b89d468db1287fc08eaecef24

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