Skip to main content

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

Pressure Sensor Based

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:

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)

alt text

# 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gaitsetpy-0.1.2.tar.gz (53.5 kB view details)

Uploaded Source

Built Distribution

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

gaitsetpy-0.1.2-py3-none-any.whl (66.9 kB view details)

Uploaded Python 3

File details

Details for the file gaitsetpy-0.1.2.tar.gz.

File metadata

  • Download URL: gaitsetpy-0.1.2.tar.gz
  • Upload date:
  • Size: 53.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for gaitsetpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ff1c09fa048fae578e06dc441cdf004a8ea3830d4e9e7304654012037856b8c0
MD5 863d16fa59cb19a8680ef2e10101a101
BLAKE2b-256 eca841476586242a06977470919b6b140459589f351d60cc7080e742ee7a1895

See more details on using hashes here.

Provenance

The following attestation bundles were made for gaitsetpy-0.1.2.tar.gz:

Publisher: pypi.yml on Alohomora-Labs/gaitSetPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gaitsetpy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gaitsetpy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 66.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for gaitsetpy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd0b46989fe4e809f9267fc360cd9555fba0270d81112e9af5c7ec2deafeba67
MD5 8182634e8f9f13c96e6d3fc6f882bcba
BLAKE2b-256 28030fafe3a22f7a98c6a04c2318ae2cdfe9a635e4c82b8a6a718af5dc87871e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gaitsetpy-0.1.2-py3-none-any.whl:

Publisher: pypi.yml on Alohomora-Labs/gaitSetPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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