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.4.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.4-py3-none-any.whl (76.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gaitsetpy-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 258add968008c812d19113a23508177847dea8b3097b86caa24764607e25e1c3
MD5 99cd9dad9d33f3af4f78e6316e534551
BLAKE2b-256 d4a4e7a6cc3738555aa56dbf391ebe12bf89fb1c2306f8d40eba6e44d879ed57

See more details on using hashes here.

Provenance

The following attestation bundles were made for gaitsetpy-0.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: gaitsetpy-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b111fc62587c9605ffbf3cf309726b493e4e61563a02f0b6cce7becbbed4a28a
MD5 758e34326a6e8eaa6f10429b4e8c77da
BLAKE2b-256 bcd4a1f1063010f9afae240d3dacf256cbfb3d49fe993068ee8f9bbc27e5757f

See more details on using hashes here.

Provenance

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