EMGFlow: A Python package for preprocessing and feature extraction of electromyographic signals

Read full text
Authors: D. William Lawrence Conley, Steven Robert Livingstone
Cited by: 0

Abstract

About EMGFlow EMGFlow is an open-source Python package for preprocessing and extracting features from surface electromyographic (sEMG) signals. It has been designed to facilitate the analysis of large datasets through batch processing of signal files, a common requirement in machine learning. Although several packages process physiological and neurological signals, support for sEMG has remained limited. Many lack a comprehensive feature set for sEMG, forcing researchers to use a patchwork of tools. Others focus on event detection with GUI-centric workflows that suit continuous recordings of a single participant, but complicate batch feature extraction common in machine learning. EMGFlow, a portmanteau of EMG and Workflow, fills this gap by providing a flexible pipeline for extracting a wide range of sEMG features, with a scalable design suited for large datasets. The current version of EMGFlow is v1.1.2. This version was archived for our accompany JOSS publication. Getting Started EMGFlow can be installed from PyPI: pip install EMGFlowEMGFlow extracts a comprehensive set of 33 statistical features from sEMG signals, achieved with only a few lines of code: import EMGFlow as ef # Get path dictionarypath_names = ef.make_paths() # Load sample dataef.make_sample_data(path_names) # Preprocess signals (sample data recorded at 50 Hz mains)ef.clean_signals(path_names, sampling_rate=2000, notch_f0=50) # Plot data on the "EMG_zyg" columnef.plot_dashboard(path_names, 'EMG_zyg', 'mV') # Extract features to disk "Features.csv"df = ef.extract_features(path_names, sampling_rate=2000) Learn more To learn more about EMGFlow, please visit the following resources: Official documentation - https://wiiison.github.io/EMGFlow-Python-Package github repo - https://github.com/WiIIson/EMGFlow-Python-Package

Fields of Study & Subjects

Muscle activation and electromyography studies Emotion and Mood Recognition Muscle Physiology and Disorders

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
23 February 2026
Language
EN