Skip to content

behavioral syntax analysis based on the paper of Andre Brown

License

Notifications You must be signed in to change notification settings

cheelee/behavioral_syntax

 
 

Repository files navigation

Build Status

Coverage Status

#briefly:

  1. This is the Python implementation of Andre Brown's behavioral syntax code: https://github.com/aexbrown/Behavioural_Syntax
  2. But, the ultimate goal of this project is to define the benefits as well as limitations of the 'behavioral syntax' approach.
  3. For more information please consult the wiki.
  4. continous_models are included to compare with the findings of the discrete approach.

Main functions:

  1. extract a minimal number of template postures using Kmeans++
  2. discretize the video sequences of worm skeletons using this set of template postures
  3. use a simple time-warping algorithm to reduce the video sequences of postures to sequences that don't have adjacent duplicates. i.e. {3,4,4,5,75,75,6,6,6} = {3,45,75,6}
  4. After step 3 is done, all kinds of NLP methods(ex. trigrams) or bio-informatic methods for discrete sequences of data may be used.

Dependencies:

  1. numpy
  2. pandas
  3. h5py
  4. statsmodels
  5. sklearn
  6. scipy
  7. matplotlib
  8. seaborn
  9. bokeh
Example of a template with 90 postures extracted using Kmeans++:

![hr] (https://raw.githubusercontent.com/AidanRocke/behavioral_syntax/master/data/90_postures.png)

Visualizing the tangent angle distance between postures:

![hr] (https://github.com/AidanRocke/behavioral_syntax/blob/master/data/bokeh_postures_mds.png)

About

behavioral syntax analysis based on the paper of Andre Brown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 51.3%
  • HTML 47.2%
  • Python 1.5%