A Python package for gait analysis using sensor data.
Project description
GaitSetPy
GaitSetPy is a Python package for gait analysis and recognition. This package provides tools and algorithms to process and analyze gait data, enabling researchers and developers to build applications for gait recognition and clinical gait assessment.
Features
- Gait data preprocessing
- Feature extraction
- Gait recognition algorithms
- Visualization tools
Supported Datasets
IMU Sensor Based
-
Daphnet: https://archive.ics.uci.edu/dataset/245/daphnet+freezing+of+gait
-
MobiFall: https://bmi.hmu.gr/the-mobifall-and-mobiact-datasets-2/
-
HAR-UP (formerly UPFall): https://sites.google.com/up.edu.mx/har-up/
-
Activity Net - Arduous : https://www.mad.tf.fau.de/research/activitynet/wearable-multi-sensor-gait-based-daily-activity-data/
Pressure Sensor Based
- Physionet Gait in Parkinson's Disease: https://physionet.org/content/gaitpdb/1.0.0/
Installation
You can install GaitSetPy using pip:
git clone https://github.com/Alohomora-Labs/gaitSetPy.git
python setup.py install
Optionally, also install requirements
pip install -r requirements.txt
Usage
Here is a simple example to get you started with GaitSetPy:
Daphnet Dataset Example
import gaitsetpy as gsp
# Load gait data
daphnet, names = gsp.load_daphnet_data("")
# Preprocess data
sliding_windows = gsp.create_sliding_windows(daphnet, names)
freq = 64
# Extract features
features = gsp.extract_gait_features(sliding_windows[0]['windows'], freq, True, True, True)
# Visualize gait features
gsp.plot_sensor_with_features(sliding_windows[0]['windows'], features, sensor_name="shank", num_windows=15)
HAR-UP Dataset Example
import gaitsetpy as gsp
# Load HAR-UP data
data_dir = "data/harup"
harup_data, harup_names = gsp.load_harup_data(data_dir)
# Create sliding windows
window_size = 100 # 1 second at 100Hz
step_size = 50 # 0.5 second overlap
windows = gsp.create_harup_windows(harup_data, harup_names, window_size, step_size)
# Extract features
features_data = gsp.extract_harup_features(windows)
# For more advanced usage, see examples/harup_example.py
# Train a Random Forest
rf_model = gsp.RandomForestModel(n_estimators=50, random_state=42, max_depth=10)
rf_model.train(features)
# Load a pretrained model
rf_model.load_pretrained_weights("random_forest_model_40_10.pkl")
# Evaluate Model
gsp.evaluate_model(rf_model.model, features) # Assuming 'rf_model' is your trained RandomForestModel instance
Documentation
For detailed documentation and API reference, please visit the official documentation.
Contributing
We welcome contributions! Please read our contributing guidelines to get started.
License
This project is licensed under the GNU GPL License. See the LICENSE file for more details.
Contact
For any questions or inquiries, please contact us at jayeeta.chakrabortyfcs@kiit.ac.in or aharshit123456@gmail.com.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gaitsetpy-0.1.3.tar.gz.
File metadata
- Download URL: gaitsetpy-0.1.3.tar.gz
- Upload date:
- Size: 61.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f289d6ed4967e183aa0ba3495b7628b16be942007e1c62488e1fc47ff36a31c
|
|
| MD5 |
33f264169b57f478f9b816b1e7018da2
|
|
| BLAKE2b-256 |
45e69b308ef5bcf2fbe4571573a9936b56652ab7ce4b4767dd1f51dd665d9bc7
|
Provenance
The following attestation bundles were made for gaitsetpy-0.1.3.tar.gz:
Publisher:
pypi.yml on Alohomora-Labs/gaitSetPy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gaitsetpy-0.1.3.tar.gz -
Subject digest:
3f289d6ed4967e183aa0ba3495b7628b16be942007e1c62488e1fc47ff36a31c - Sigstore transparency entry: 281162856
- Sigstore integration time:
-
Permalink:
Alohomora-Labs/gaitSetPy@785f0c0b2dfacab37b832f56c47d0c1f65edebe6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Alohomora-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@785f0c0b2dfacab37b832f56c47d0c1f65edebe6 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file gaitsetpy-0.1.3-py3-none-any.whl.
File metadata
- Download URL: gaitsetpy-0.1.3-py3-none-any.whl
- Upload date:
- Size: 76.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04ab7c665a1d6975303e2a55b822f443efafd565653813182f8b1323f061e40c
|
|
| MD5 |
1be13e11fb78904b99165c1dbfbbd7b6
|
|
| BLAKE2b-256 |
72db448320de3e0f1de86c93851aff7d697b39b5c54a0e34dac6f8111b99d89d
|
Provenance
The following attestation bundles were made for gaitsetpy-0.1.3-py3-none-any.whl:
Publisher:
pypi.yml on Alohomora-Labs/gaitSetPy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gaitsetpy-0.1.3-py3-none-any.whl -
Subject digest:
04ab7c665a1d6975303e2a55b822f443efafd565653813182f8b1323f061e40c - Sigstore transparency entry: 281162881
- Sigstore integration time:
-
Permalink:
Alohomora-Labs/gaitSetPy@785f0c0b2dfacab37b832f56c47d0c1f65edebe6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Alohomora-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@785f0c0b2dfacab37b832f56c47d0c1f65edebe6 -
Trigger Event:
workflow_dispatch
-
Statement type: