Skip to main content

MultiGait: Real-World Gait Pipeline for Wrist-Worn Devices

Project description

MultiGait: Real-World Gait Pipeline for Wrist-Worn Devices

PyPI version

DOI

MultiGait (Multimorbidity Gait) is a Python implementation of a gait analysis pipeline for real-world assessment, primarily developed for wrist-worn inertial measurement units (IMUs). This pipeline integrates signal-processing algorithms for gait detection, initial contact detection, stride-length estimation, cadence, and walking speed providing a streamlined workflow for mobility research in people with multiple long-term conditions (multimorbidity). While the pipeline is wrist-focused, fine-tuned versions for lower-back devices are also provided for use in custom workflows.

The individual algorithms included in this library have been developed and validated in multimorbidity cohorts [1]. However, the full integration of these algorithms into a complete pipeline has not yet been formally evaluated, so we do not currently recommend any specific pipeline configuration. In future releases, we plan to systematically assess combinations of algorithms and provide recommended pipelines tailored to different multimorbidity clusters.

Planned future releases include:

  • Fully validated pipelines for different multimorbidity clusters.
  • Novel algorithm implementations.
  • Validated wear-time detection algorithms.

Note on biomechanical definitions : The biomechanical logic and gait event definitions implemented in MultiGait are based on the specifications defined within Mobilise-D.


Table of Contents


Installation

From PyPI (recommended)

python3 -m pip install multigait

From GitHub:

pip install git+https://github.com/DMegaritis/multigait.git

Or clone the repository and install locally:

git clone https://github.com/DMegaritis/multigait.git
cd multigait
pip install .

Usage

The package is designed to be used in two main modes:

Pipeline Use

High-level pipelines allow loading raw IMU data and obtaining gait outcomes end-to-end. Example:

from multigait.pipeline.multigait_pipeline import MultiGaitPipelineSuggested

pipeline = MultiGaitPipelineSuggested()
pipeline.safe_run(long_trial)

Note: At this stage we offer a suggested pipeline with the best-performing algorithms from [1], but the full pipeline has not been fully validated yet. Please interpret results cautiously.

Additional note: While this library has been primarily developed as a complete gait pipeline for wrist-worn devices, it also includes support for lower-back algorithms. Fine-tuned versions for lower-back devices are provided and can be used in custom pipelines.

Specific Algorithms

You can also use individual algorithms separately to build custom workflows. Example modules include:

  • Gait Sequence Detection (GSD)
  • Initial Contact Detection (ICD)
  • Stride Length Estimation (SL)

For usage examples and input/output formats, see the examples in this repository or in DMegaritis/multimobility_wrist.


Citation

If you use MultiGait in your research, please cite:

@software{megaritis2025wristmobility,
  author    = {Megaritis, Dimitrios and Alcock, Lisa and Scott, Kirsty and Hiden, Hugo and Cereatti, Andrea and Vogiatzis, Ioannis and Del Din, Silvia},
  title     = {MultiGait: Real-World Gait Pipeline for Wrist-Worn Devices for Multimorbid Populations},
  year      = {2025},
  publisher = {Zenodo},
  doi       = {https://doi.org/10.5281/zenodo.17903930},
  url       = {https://zenodo.org/records/17903930}
}

Validation reference for the underlying algorithms

[1] Megaritis, D., Alcock, L., Scott, K., Hiden, H., Cereatti, A., Vogiatzis, I., & Del Din, S. (2025). Real-World Wrist-Derived Digital Mobility Outcomes in People with Multiple Long-Term Conditions: A Comparison of Algorithms. Bioengineering, 12(10), 1108. https://doi.org/10.3390/bioengineering12101108


Funding and Support

This work was supported by the Medical Research Council (MRC) Gap Fund award (UKRI/MR/B000091/1).


License

The MultiGait library is licensed under the Apache License 2.0. It is free to use for any purpose, including commercial use, but all distributions must include the license text.

Northumbria_University_Logo Medical_Research_Council_logo svg newcastle-university-logo-png_seeklogo-355206

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

multigait-0.2.0.tar.gz (111.6 kB view details)

Uploaded Source

Built Distribution

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

multigait-0.2.0-py3-none-any.whl (155.2 kB view details)

Uploaded Python 3

File details

Details for the file multigait-0.2.0.tar.gz.

File metadata

  • Download URL: multigait-0.2.0.tar.gz
  • Upload date:
  • Size: 111.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.10 Darwin/24.6.0

File hashes

Hashes for multigait-0.2.0.tar.gz
Algorithm Hash digest
SHA256 07784b4782b85f1fa8ebe834b73d974870e78ecb0fe5b86edee04bdb6439410f
MD5 604b7a86d5671f16e14028be8516c6a0
BLAKE2b-256 479313dd286acbbc5681ed5c4c93abe67615d91be570971b5d3df0d4bb7f6da6

See more details on using hashes here.

File details

Details for the file multigait-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: multigait-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 155.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.10 Darwin/24.6.0

File hashes

Hashes for multigait-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97bd83de318611bf844ae01d56346dedecd1226520664cbb12d4e1aae227df70
MD5 2f6d9c3e39aa60d8a9094b2c2b97312a
BLAKE2b-256 c819cc539aff35acfd160d9e86dd4230a24c27823c4a7915fa34f838072d42d7

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