Tools for the Cleveland State Human Motion and Control Lab
Python Matlab Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



This is a collection of tools that are helpful for gait analysis. Some are specific to the needs of the Human Motion and Control Lab at Cleveland State University but other portions may have potential for general use. It is relatively modular so you can use what you want. It is primarily structured as a Python distribution but the Octave files are also accessible independently.

Latest Version

Python Packages

The main Python package is gaitanalysis and it contains five modules listed below. oct2py is used to call Octave routines in the Python code where needed.
General tools for working with gait data such as gait landmark identification and 2D inverse dynamics. The main class is GaitData.
Tools for identifying control mechanisms in human locomotion.
Routines for processing marker data.
Tools for processing and cleaning data from Motek Medical's products, e.g. the D-Flow software outputs.
Helper functions for the other modules.

Each module has a corresponding test module in gaitanalysis/tests sub-package which contain unit tests for the classes and functions in the respective module.

Octave Libraries

Several Octave routines are included in the gaitanalysis/octave directory.

Implements joint angle and moment computations of a 2D lower body human.
Compensates force plate forces and moments for inertial effects and re-expresses the forces and moments in the camera reference frame.
Fast matrix multiplication.
Computes the rigid body orientation and location of a group of markers.
Deals with the analog signal time delays.


You will need Python 2.7 and setuptools to install the packages. Its best to install the dependencies first (NumPy, SciPy, matplotlib, Pandas, PyTables). The SciPy Stack instructions are helpful for this:

Supported versions:

  • python >= 2.7
  • numpy >= 1.6.1
  • scipy >= 0.9.0
  • matplotlib >= 1.1.0
  • tables >= 2.3.1
  • pandas >= 0.12.0
  • pyyaml >= 3.10
  • DynamicistToolKit >= 0.4.0
  • oct2py >= 1.2.0 (>=2.4.2 is required for Octave>=3.8 on Windows)
  • octave >= 3.8.1

We recommend installing Anaconda for users in our lab to get all of the dependencies.

We also utilize Octave code, so an install of Octave with is also required. See for installation instructions.

You can install using pip (or easy_install). Pip will theoretically [1] get the dependencies for you (or at least check if you have them):

$ pip install

Or download the source with your preferred method and install manually.

Using Git:

$ git clone
$ cd GaitAnalysisToolKit

Or wget:

$ wget
$ unzip
$ cd GaitAnalysisToolKit-master

Then for basic installation:

$ python install

Or install for development purposes:

$ python develop
[1]You will need all build dependencies and also note that matplotlib doesn't play nice with pip.


It is recommended to install the software dependencies as follows:

Octave can be installed from your package manager or from a downloadable binary, for example on Debian based Linux:

$ sudo apt-get install octave

For oct2py to work, calling Octave from the command line should work after Octave is installed. For example,

$ octave
GNU Octave, version 3.8.1
Copyright (C) 2014 John W. Eaton and others.
This is free software; see the source code for copying conditions.
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at

Please contribute if you find this software useful.
For more information, visit

Read to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.


The core dependencies can be installed with conda in a conda environment:

$ conda create -n gait python=2.7 pip numpy scipy matplotlib pytables pandas pyyaml nose sphinx
$ source activate gait

And the dependencies which do not have conda packages can be installed into the environment with pip:

(gait)$ pip install DynamicistToolKit oct2py


When in the repository directory, run the tests with nose:

$ nosetests


A vagrant file and provisioning script are included to test the code on both a Ubuntu 12.04 and Ubuntu 13.10 box. To load the box and run the tests simply type:

$ cd vagrant
$ vagrant up

See VagrantFile and the * files to see what's going on.


The documentation is hosted at ReadTheDocs:

You can build the documentation (currently sparse) if you have Sphinx and numpydoc:

$ cd docs
$ make html
$ firefox _build/html/index.html

Release Notes


  • The minimum version of the required dependency, DynamicistToolKit, was bumped to 0.4.0. [PR #134]
  • Reworked the DFlowData class so that interpolation and resampling is based on the FrameNumber column in the mocap data instead of the unreliable TimeStamp column. [PR #135]


  • Added note and check about higher oct2py versions required for Windows.


  • Fixed bug preventing GaitData.plot_grf_landmarks from working.
  • Removed inverse_data.mat from the source distribution.


  • Fixed installation issue where the octave and data files were not included in the installation directory.


  • Initial release
  • Copied the walk module from DynamicistToolKit @ eecaebd31940179fe25e99a68c91b75d8b8f191f