Behavior Collect


Program Overview

Behavior analysis allows a researcher to input X/Y position data and behavioral codes ("p" for "play", "l" for "look", etc.) from digitized video in the AVI format. Both X/Y data and behavioral codes can be collected at the same time. You may allow the video to run at the recorded frame rate (perhaps describing a behavior when it is seen), or one can step through the video frame-by-frame or step the video automatically at the desired rate (say, only every second's worth). Stepping through frames can be done automatically or with a button push.

Several files are output from the system; some of which may not be useful depending on how your data are collected:

Each of the files is written in tab-delimitated format for easy input into a spreadsheet.



The above figure shows a typical recording sequence to collected behaviors (use the keyboard to generate a sequence of behavioral codes). Note that the X/Y columns are simply zeros. The time column is not exactly one per second since video is actually recorded at just under 30 frames per second.


When you're finished collecting data press the Save Data button to generate the various data files (see top). If the data file has already been written you will be prompted to change the name. If you want to write over a previous file just press the save button. The file names are generated from the original AVI file source.


In this experiment X/Y position data is collected along with some behaviors. Note the Auto Track Maze check box has been turned off (though you could leave it on if you want. NOTE: when Auto Step on Mouse Click is enabled, the behavior is recorded at the same time as the mouse click that generated an autostep (see samples 6 and 7. Both were recorded at 34 seconds).


If you try to exit the program without saving the program will remind you. Press the Save Data button and then exit.


This shows the format for the various files. The PTH file would normally contain X/Y data other than 0/0 and should look more like the TRK file (oops, my fault when puttinh together this tutorial. The TRK file is used for a fractal path analysis. The PTH file is used by the Path Analysis program. The XY file has all the data. The behav file contains simply the behaviors. When these points were collected the maze tracking function was checked. The animal moved right and up three times, right and down twice then left and down twice. Use this for a Markovian chain analysis.