Skip to main content

A Python package for gait analysis using sensor data.

Project description

GaitSetPy

DOI PyPI version Docs CodeRabbit Pull Request Reviews

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:

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

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.3.tar.gz (61.8 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.3-py3-none-any.whl (76.8 kB view details)

Uploaded Python 3

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

Hashes for gaitsetpy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3f289d6ed4967e183aa0ba3495b7628b16be942007e1c62488e1fc47ff36a31c
MD5 33f264169b57f478f9b816b1e7018da2
BLAKE2b-256 45e69b308ef5bcf2fbe4571573a9936b56652ab7ce4b4767dd1f51dd665d9bc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for gaitsetpy-0.1.3.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.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

Hashes for gaitsetpy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 04ab7c665a1d6975303e2a55b822f443efafd565653813182f8b1323f061e40c
MD5 1be13e11fb78904b99165c1dbfbbd7b6
BLAKE2b-256 72db448320de3e0f1de86c93851aff7d697b39b5c54a0e34dac6f8111b99d89d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gaitsetpy-0.1.3-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