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.5.tar.gz (66.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.5-py3-none-any.whl (86.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gaitsetpy-0.1.5.tar.gz
  • Upload date:
  • Size: 66.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.5.tar.gz
Algorithm Hash digest
SHA256 1ae36afb2dc455e1938f45a2ea825d11b1502a92c899c4141ac2636fc991f936
MD5 63ddd068c96762cf958c10c100decc76
BLAKE2b-256 7c601aa759509b0ddfd38d81810513ff182096321ffd62c27d25eee8fd70a183

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: gaitsetpy-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 86.4 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 be4846f7dc50a46e10713e57b013d8055ff0ab84d638359dbde09b35f94934cd
MD5 32de7dcef238c3f24dc1dc11bbc416cf
BLAKE2b-256 6808be7b75d92f74b3d8407e34d474b61cf3307f7a2faea6e0f0f2fcafc4fb98

See more details on using hashes here.

Provenance

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