TL;DR
This paper introduces and evaluates several probabilistic models, including Hidden Markov Models (HMMs) and their variants, for automatically annotating rodent behaviors from video. The best-performing model, a batch HMM (BHMM), achieved around 75% accuracy in classifying four distinct rodent behaviors, demonstrating a significant reduction in manual annotation effort.
What Problem Does This Paper Address?
Manually annotating animal behavior from video is a laborious and time-consuming process, prone to inter-observer variability. This paper addresses the need for an automated system to accurately identify and label rodent behaviors in video recordings. Such a system would not only save significant human effort but also ensure more consistent and objective behavioral analysis, which is crucial for behavioral studies. The authors aim to develop a "learning" approach where models learn to discriminate behaviors from example video segments.
Methods
The researchers explored several probabilistic models for behavior annotation, framing the task as time-series segmentation. They compared:
- Hidden Markov Models (HMMs): A standard approach for sequential data, where each video frame is treated as an observation and the animal's behavior as a hidden state.
- Batch HMMs (BHMM): This variant assumes that behavior changes only once per second (25 frames), treating each second's observations as a single batch. This aligns better with the annotation granularity of the dataset.
- Kalman Filter HMM (KHMM): An extension of BHMM that models the sequence of observations within a second using a first-order linear dynamical system, allowing for gradual changes in features over time.
- Second-level HMM (SHMM): Similar to BHMM, but it collects all features from a 25-frame batch into a single, higher-dimensional feature vector.
- Logistic Discriminant: A discriminative model that directly estimates the conditional probability of a behavior given observations, using linear decision boundaries.
The observation models for the HMM variants were primarily based on multivariate Gaussian distributions, with parameters estimated using the Baum-Welch algorithm and Viterbi algorithm for inference.
Datasets
The study utilized the PT ASAPO dataset, which consists of video recordings of rodents in an arena. The dataset includes foreground/background segmentation, yielding binary silhouette images for each frame. Additionally, several pre-computed features were provided, and new shape-based features were derived from the silhouettes. The data was annotated with 15 different terms, but for the experiments, four specific behaviors were selected due to sufficient data availability: "Rear wall / sniffing wall", "Sit", "Sniffing floor" / "Sniffing wall" (treated as one), and "Walk". The dataset was split into training and testing sets, with a focus on segments containing alternating behaviors rather than those dominated by a single, prolonged action.
Key Insights and Ideas
- Behavioral Granularity Matters: The BHMM, which models behavior at a 1-second (25-frame) granularity, generally outperformed the frame-level HMM, suggesting that the annotation process aligns better with coarser temporal resolutions.
- Feature Engineering is Crucial: The performance of the models was sensitive to the number of features used. While more features generally improved accuracy up to a point, overfitting became a concern with too many features. PCA projections of shape features were found to be effective.
- Model Complexity vs. Performance: More complex models like KHMM and SHMM did not consistently yield better results than simpler HMMs and BHMMs, indicating that the chosen feature representation and the inherent noise in the data might limit the benefits of more sophisticated temporal modeling.
- Overfitting on Training Data: The study highlighted a significant gap between performance on training data and test data, especially for less constrained models like MHMM. This underscores the importance of rigorous testing on unseen data to assess true generalization capabilities.
- Limitations of Linear Classifiers: The logistic discriminant, which uses linear decision boundaries, performed considerably worse than the HMM-based models, suggesting that the underlying relationships between features and behaviors are non-linear.
Key Results
- The BHMM model achieved the best performance among the explored models, with a correct classification rate of approximately 75% for the four selected behaviors.
- Performance generally improved with an increased number of features and factors, up to a certain point, after which it plateaued or even decreased due to overfitting.
- The study found that dropping the temporal dependency assumption (i.e., assuming independence between behaviors in successive frames) did not significantly degrade performance for some models, though it was generally better to retain it.
- Behaviors "Rear wall/sniffing wall" and "Walk" were relatively well discriminated from others (over 90% accuracy), while "Sit" and "Sniffing floor"/"Sniffing wall" were more often confused with each other and "Walk".
Limitations and Future Work
The authors acknowledge that a 75% accuracy rate, while a significant improvement over manual annotation, is likely too low for direct commercial application. They suggest two main avenues for future work:
- Exploring other models: Investigating alternative models beyond the ones tested could potentially yield better performance.
- Extending feature sets: Incorporating features that describe the gray-level images of the animals, in addition to shape features, might provide more discriminative information.
Additionally, the paper emphasizes the need for:
- High-quality, multi-observer annotated datasets: To better understand inter-observer variability and provide a more robust benchmark.
- Standardized evaluation protocols: Developing fixed test sets or robust randomized data generation methods to ensure comparability of future research.
- Well-defined, non-overlapping annotation terms: To avoid ambiguity in the ground truth.
Summary updated