SimBA has an in-built behavior interface that allow users to append experimenter-made labels to the features extracted from the pose-estimation data. Accurate human labelling of images can be the most time-consuming part of creating reliable supervised machine learning models. Sometimes the experimenter already have accurate labels for the videos a set of videos, but the labels have been generated in a third-party annotation tool such as BORIS, Jwatcher, Solomon coder, or MARS/BENTO. SimBA allows the user to append labels stored in these formats, saving you from having to repeat the annotation process.
For more detailed information on how to export BORIS annotations in a format compatible with SimBA - check out THIS SHORT TUTORIAL.
-
Once you have created a project, click on
File
-->Load project
to load your project. For more information on creating a project, click HERE. -
Make sure you have extracted the features from your tracking data and there are files, one file representing each video in your project, located inside the
project_folder/csv/features_extracted
directory of your project. For more information on extracting features, click HERE. -
After loading your project, click on the
Label behavior
tab, and you should see the following window:
-
In the Import Third-Party behavior labels sub-menu, click on the button that represents the thid-party application that the annotations were generated with.
-
A menu will appear that asks you yo select the folder that contains the annotation files in CSV file format. Browse for the folder and select it.
-
Once you select the folder, new files will then be generated containing your annotations and features and they will be stored in the
project_folder/csv/targets_inserted
directory of your project. You can follow the progress in the main SimBA window.
For SimBA to know which third-party annotation data should be appended to which video data, the files within SimBA and the Solomon/MARS annotation files need to have the same name. Thus, if you are processing two videos in SimbA named Video_1
and Video_2
, then the Solomon/MARS annotation files located in the folder defined in Step 5 above should be named Video_1.csv
and Video_2.csv
.
When you select a folder in Step 5 above, SimBA will:
-
First thrawl through the user-defined directory and find all BORIS-styled CSV files. In the background, SimBA will then merge all the data in the detected BORIS-styled CSV files into a single dataframe and which is kept in memory only.
-
Next, SimBA will open each file located in your
project_folder/csv/features_extracted
directory, one-by-one. If the first file in yourproject_folder/csv/features_extracted
directory is calledVideo_1
, then SimBA will search the in-memory dataframe for instances where the headingMedia file path
contain a filename that isVideo_1
. It is therefore important that the files you process in SimBA - and the files you annotated in BORIS - have the same name. For example, for me to successfully append BORIS annotations for a SimBA file calledVideo_1
, the original BORIS annotation file for this video should look something like this:
- There may be files within the
project_folder/csv/features_extracted
directory of your SimBA project that contains no BORIS annotations for either all or a sub-set of classifier behaviors. This would happen, for example, if there is a file in theproject_folder/csv/features_extracted
directory calledVideo_1
, but there are no mentions of aVideo_1
in your BORISMedia file path
headings. In these situations, SimBA will assume that these files contain no expressions of the behavior(s) of interest, and mark all frames in your video as behavior absent.