Skip to main content

A Python implementation of the Mobilise-D algorithm pipeline for gait analysis using IMU worn at the lower back.

Project description

[!CAUTION] mobgap is currently under active development and not ready for production use. Do not use any of the algorithm results for actual research purposes. Most of them are not in their final state and are not properly validated yet.

Learn more about this in our blog post about the alpha release.

PyPI Documentation Status codecov Test and Lint PyPI - Downloads

MobGap - The Mobilise-D algorithm toolbox

A Python implementation of the Mobilise-D algorithm pipeline for gait analysis using IMU worn at the lower back (Learn more about the Mobilise-D project). This package is meant as reference implementation for research and production use.

We are open to contributions and feedback, and are actively interested in expanding the library beyond its current scope and include algorithms and tools, that would allow mobgap to grow into a general purpose library for gait and mobility analysis.

Installation

First install a supported Python version (3.9 or higher) and then install the package using pip.

pip install mobgap

From Source

If you need the latest unreleased version of mobgap, install the package using pip (or poetry) with the git repository URL

pip install "git+https://github.com/mobilise-d/mobgap.git" --upgrade

You might need to set your git credentials to install the package. If you run into problems, clone the repository and install the package locally.

git clone https://github.com/mobilise-d/mobgap.git
cd mobgap
pip install .

Or the equivalent commands of the python package manager you are using to install local dependencies.

Usage Recommendation

The package is designed to be used in two modes:

  1. Usage as a full end-to-end pipeline:

    We provide high level pipelines that take in raw sensor data and output final gait parameters on a walking bout level, and on various aggregation levels (e.g. per day or per week). These pipelines were validated as part of the Technical Validation Study of Mobilise-D and are the recommended way to obtain gait parameters according to the Mobilise-D algorithms. Depending on the clinical cohort and the amount of gait impairment, we recommend different pipelines. When using the pipelines in the recommended way, you can expect error ranges as reported in [1]. Outside, this recommended use case, we cannot provide any supported evidence about the correctness of the results.

    If you are using the pipelines in this way, we recommend citing [1] and [2] as follows:

    Gait parameters were obtained using the Mobilise-D algorithm pipeline [1, 2] in its official implementation provided with the mobgap Python library version {insert version you used}.

    When appropriate, include the link to the mobgap library as a footnote or as an "online resource" in the reference list.

    In general, we would like to ask you to be precise about the version of the mobgap library you used and only use the term "Mobilise-D algorithm pipeline" if you used the pipelines as described in the technical validation study and not when you just use individual algorithms (see point 2) or use the pipelines with modified parameters.

    In the latter case, we recommend the following citation:

    Gait parameters were obtained using an approach inspired by Mobilise-D algorithm pipeline [1, 2]. The algorithm pipeline was implemented based on {name of Pipeline class} available as part of the mobgap Python library version {insert version you used} with the following modifications: {insert modifications you made}.

    [1] Kirk, C., Küderle, A., Micó-Amigo, M.E. et al. Mobilise-D insights to estimate real-world walking speed in 
    multiple conditions with a wearable device. Sci Rep 14, 1754 (2024). 
    https://doi.org/10.1038/s41598-024-51766-5
    
    [2] Micó-Amigo, M., Bonci, T., Paraschiv-Ionescu, A. et al. Assessing real-world gait with digital technology? 
    Validation, insights and recommendations from the Mobilise-D consortium. J NeuroEngineering Rehabil 20, 78 (2023). 
    https://doi.org/10.1186/s12984-023-01198-5
    
  2. Usage of individual algorithms:

    Besides the pipelines, we also provide individual algorithms to be used independently or in custom pipelines. This can be helpful to build highly customized pipelines in a research context. But be aware that for most algorithms, we did not perform a specific validation outside the context of the official pipelines. Hence, we urge you to perform thorough validation of the algorithms in your specific use case.

    If you are using individual algorithms in this way, we recommend citing the original papers the algorithms were proposed in and mobgap as a software library. You can find the best references for each algorithm in the documentation of the respective algorithm.

    Gait parameters were obtained using the {name of algorithm} algorithm [algo-citation] as implemented in the mobgap Python library version {insert version you used}.

    When appropriate, include the link to the mobgap library as a footnote or as an "online resource" in the reference list.

License and Usage of Names

The library was developed as part of the Mobilise-D project under the lead of the Friedrich-Alexander-Universität Erlangen-Nürnberg (FAU). The original copyright lies with the Machine Learning and Data Analytics Lab (MAD Lab) at the FAU (See NOTICE). For any legal inquiries regarding copyright, contact Björn Eskofier. Copyright of any community contributions remains with the respective code authors.

The mobgap library is licensed under an Apache 2.0 license. This means it is free to use for any purpose (including commercial use), but you have to include the license text in any distribution of the code. See the LICENSE file for the full license text.

Please note that this software comes with no warranty, all code is provided as is. In particular, we do not guarantee any correctness of the results, algorithmic performance or any other properties of the software. This software is not a medical product nor licensed for medical use.

Neither the name "Mobilise-D" nor "mobgap" are registered trademarks. However, we ask you to use the names appropriately when working with this software. Ideally, we recommend using the names as described in the usage recommendation above and not use the name "Mobilise-D algorithm pipeline" for any custom pipelines or pipelines with modified parameters. If in doubt, feel free ask using the Github issue tracker or the Github discussions.

Funding and Support

This work was supported by the Mobilise-D project that has received funding from the Innovative Medicines Initiative 2 Joint Undertaking (JU) under grant agreement No. 820820. This JU receives support from the European Union‘s Horizon 2020 research and innovation program and the European Federation of Pharmaceutical Industries and Associations (EFPIA). Content in this publication reflects the authors‘ view and neither IMI nor the European Union, EFPIA, or any Associated Partners are responsible for any use that may be made of the information contained herein.

And of course, this development was only made possible by the joint work of all Mobilise-D partners.

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

mobgap-0.3.0.tar.gz (698.2 kB view details)

Uploaded Source

Built Distribution

mobgap-0.3.0-py3-none-any.whl (727.0 kB view details)

Uploaded Python 3

File details

Details for the file mobgap-0.3.0.tar.gz.

File metadata

  • Download URL: mobgap-0.3.0.tar.gz
  • Upload date:
  • Size: 698.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for mobgap-0.3.0.tar.gz
Algorithm Hash digest
SHA256 29bf487e99b8427291e78696100ee6b3df0a3e6bf6a3fc7e8d78615f419037c1
MD5 eb71f266a501d4ac7b41a319cd7707c1
BLAKE2b-256 af231193b27b1560d3529acf296f8a7c09d445f1da56cddcff73e4677dc7588d

See more details on using hashes here.

File details

Details for the file mobgap-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mobgap-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 727.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for mobgap-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 621666ac45254424c0985683eea63dd06230fef9e8a98f7151aefaa7a772adb2
MD5 ca0e7fc6ba4c30fb6b89a8ebf70dc7de
BLAKE2b-256 6f65d9f12e5b2299b4d0c4de5972fde6b2fb57ddf3ab8d5c90bd9b13139e6a42

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