Image Processing Reference
Sex classifier, integration was performed by applying the Sex classifier to frames where the
color of the painted marker is uncertain.
In order to understand the biological significance of the Chase classifier, we need to under-
stand the sex of the individuals involved in the behavior. Courtship and aggression are known
characterised by chasing, and are directed at females and males respectively. Females rarely if
ifever chase other flies. Taking Chase together with Sex and Multifly, we created two composite
behaviors: Aggression and Courtship. In the case where Multifly = 0, Sex = 1, and Chase = 1,
Aggression was defined as a male chasing another male, and Courtship was defined as a male
chasing a female. To compare our test videos, we created a composite behavior profile for
each. That profile comprised of the percentage of frames that (a) contained Multifly blobs; (b)
contained at least one female; (c) contained Aggression; and (d) contained Courtship.
We begin by evaluating the performance of the basic blob-recognition algorithm from
basic task of recognizing fly number and for joining and leaving events. The empirical “real”
results are obtained from manual annotation. Results are shown in Table 1 . Let e be the es-
timated number of flies in a frame for a given method, n be the actual (manually annot-
ated) number, and τ be the total number of frames. We estimate overall counting error, E , as
(where the denominator is n + 1 to avoid division by zero). This represents an
approximate per-fly probability of being miscounted. Directionality, D , is calculated similarly,
, and demonstrates the chances of being consistently over- or under-counted.
Joining or leaving events, “Jump,” are reported as the per-frame probability of either a change
in blob number, or a trajectory starting or ending. Results are shown for five separate videos
Performance of the Blob Algorithm Output (Blob), and TABU Trajectory Output
Blob E TABU E Blob D TABU D Real Jump Blob Jump TABU Jump
− 0.145 0.074
− 0.101 0.192
− 0.074 0.098
− 0.044 0.090
Counting error ( E ), and directionality ( D ) bias in counting is shown. Empirical (Real) and estimated fly patch-joining
or leaving rates (Jump) are also shown for raw blob data and processed trajectories.
By using TABU to create our trajectories, we have obtained more accurate data than was
provided by the raw blob counts ( Table 1 ). We have also greatly reduced the correlation