Abstract
OpenLabCluster has been developed as an open-source interactive graphic interface which includes all necessary functions to perform clustering and classification, informs the scientist of the outcomes in each step, and incorporates the choices made by the scientist in further steps.
Introduction
In ethology, pose estimation tools like DeepLabCut have revolutionized the tracking of animal body parts. However, a significant "annotation bottleneck" remains: converting raw coordinate data into meaningful behavioral classifications (e.g., grooming vs. foraging). Researchers typically face a choice between labor-intensive supervised learning or noisy, uninterpreted unsupervised clustering. OpenLabCluster addresses this gap by providing a "human-in-the-loop" system that leverages unsupervised deep clustering to streamline the supervised labeling process through Active Learning (AL).
Methods
OpenLabCluster utilizes a three-stage pipeline to minimize manual annotation effort while maintaining high classification accuracy.
- Unsupervised Deep Clustering: An RNN-based encoder-decoder architecture (using bi-directional GRUs) learns a latent representation of movement sequences. This captures the "essence" of behaviors without human labels.
- Active Learning (AL): The system identifies the most informative data points for human labeling. Strategies include selecting cluster centers ("Top"), maximizing dataset coverage ("Core-Set"), or targeting areas of high model uncertainty ("Marginal Index").
- Interactive GUI: An open-source interface allows researchers to visualize clusters, review video segments, and provide labels iteratively, directly informing the model's next steps.
Datasets and Generalizability
The framework was validated across four species to demonstrate its versatility:
- Home-cage Mouse: 8 behaviors using 8 keypoints.
- Zebrafish: 13 behavioral prototypes using 16 kinematic features.
- C. elegans: 3 classes using 98 features.
- Monkey: 6 classes using 3D keypoints from the OpenMonkeyStudio dataset.
Key Results and Insights
OpenLabCluster demonstrates that unsupervised pre-clustering provides a powerful roadmap for annotation. By grouping similar movements, a single label can effectively categorize an entire cluster.
- Efficiency Gains: On mouse datasets, the system achieved 80% accuracy with only 15–20% of labels. This represents a nine-fold reduction in annotation effort compared to standard methods like SVM or SimBA.
- Accuracy in Sparse Data: With a minimal label budget of 5%, the OpenLabCluster-V variant reached 74.7% accuracy, far exceeding the 55.2% of standard supervised encoders.
- Latent Space Organization: Metrics like the Calinski-Harabasz Index (CHI) confirmed that the learned latent representations are significantly more organized and distinct than raw coordinate data.
Discussion and Limitations
While OpenLabCluster significantly reduces manual labor, challenges remain in "change-point detection"—automatically segmenting continuous video into discrete behavioral events. Additionally, the benefits of Active Learning are most pronounced in complex, multi-class tasks; for very simple behaviors (e.g., C. elegans), basic classifiers may suffice. Future work will explore hybrid AL strategies that transition from representative to uncertainty-based sampling as the label budget increases.
Summary updated