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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyemgpipeline-1.0.0.tar.gz
.
File metadata
- Download URL: pyemgpipeline-1.0.0.tar.gz
- Upload date:
- Size: 33.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f3df0e87115db87ff102c3c63fa0afb9901edf1e77d6d271aac90583e161dbc |
|
MD5 | ff4df389a5e89b3632b020579dda983c |
|
BLAKE2b-256 | 45dce9063113a1ab2fd1e7b3cf23686e7b335c1876f0eca6a0c231e13464b1f7 |
File details
Details for the file pyemgpipeline-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pyemgpipeline-1.0.0-py3-none-any.whl
- Upload date:
- Size: 51.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2edba0e9b7c73eeb28d93df940826349c7478404ca2781fa5958063f59100e3d |
|
MD5 | 4f23355da747111e670645c27eee5d5d |
|
BLAKE2b-256 | 89a3bea6a32cba073ec5072ff6beca1d2fdebe818ebfbfb9162e79560933b913 |