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.

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

At the moment, the package is not available on PyPI. To install the package use 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.1.0.tar.gz (105.1 kB view details)

Uploaded Source

Built Distribution

mobgap-0.1.0-py3-none-any.whl (133.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mobgap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d8b4116b685d7278382936473a180ec04fce485a527ff9ed14ef5964c0a01d6
MD5 853b176578e54594cd56d7d71cc3b5e9
BLAKE2b-256 d90f8a80b458f3e3d749f32701f92ef3aabcfb8bb7a0687c88c005af072d429b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mobgap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e60cb4bf91f8f1b4dcefc24ae258332b4604e002d2bd5b63426ffcf742f956ca
MD5 4751757b7272a20954a3542a504ca258
BLAKE2b-256 e5f4e2e64bc34faa5ec989a5d67391f7940f86aa2b1c9ce7a7d77cd636b2b36b

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