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.1.tar.gz (33.6 kB view details)

Uploaded Source

Built Distribution

pyemgpipeline-0.1.1-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyemgpipeline-0.1.1.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.48.0 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.6

File hashes

Hashes for pyemgpipeline-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6955f896fe0af7be5358ca99037e8b2e2d574589609ce34a1482a48c7f6cee04
MD5 46539284edd58eb868b7a6eb65bdbcc2
BLAKE2b-256 66790ddf1f5f982b3bbf31305ad2f72ff1ea661255c3541f8697125ba226605a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyemgpipeline-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 50.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.48.0 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.6

File hashes

Hashes for pyemgpipeline-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b90879c34627bf9d446c6eb15b0557952d971e44d0877d040604714e905baa8
MD5 c75b57b2469e8f7ba4b48df94515fc42
BLAKE2b-256 fd37922af3aa432a2341abbe86c827a2a159562c1a36e12f6f7ccf164515e3e1

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