bioRxivAnimal Behavior & CognitionPreprint
ConstrastivePose: A contrastive learning approach for self-supervised feature engineering for pose estimation and behavorial classification of interacting animals
T. Zhou, C. C. H. Cheah, E. W. M. Chin, J. Chen, H. J. Farm, E. L. K. Goh, K.-H. Chiam
Abstract
In recent years, supervised machine learning models trained on videos of animals with pose estimation data and behavior labels have been used for automated behavior classification. Applications include, for example, automated detection of neurological diseases in animal models. However, there are two problems with these supervised learning models. First, such models require a large amount of labeled data but the labeling of behaviors frame by frame is a laborious manual process that is not easily scalable. Second, such methods rely on handcrafted features obtained from pose estimation data that are usually designed empirically. In this paper, we propose to overcome these two problems using contrastive learning for self-supervised feature engineering on pose estimation data. Our approach allows the use of unlabeled videos to learn feature representations and reduce the need for handcrafting of higher-level features from pose positions. We show that this approach to feature representation can achieve better classification performance compared to handcrafted features alone, and that the performance improvement is due to contrastive learning on unlabeled data rather than the neural network architecture. Author SummaryAnimal models are widely used in medicine to study diseases. For example, the study of social interactions between animals such as mice are used to investigate changes in social behaviors in neurological diseases. The process of manually annotating animal behaviors from videos is slow and tedious. To solve this problem, machine learning approaches to automate the video annotation process have become more popular. Many of the recent machine learning approaches are built on the advances in pose-estimation technology which enables accurate localization of key points of the animals. However, manual labeling of behaviors frame by frame for the training set is still a bottleneck that is not scalable. Also, existing methods rely on handcrafted feature engineering from pose estimation data. In this study, we propose ConstrastivePose, an approach using contrastive learning to learn feature representation from unlabeled data. We demonstrate the improved performance using the features learnt by our method versus handcrafted features for supervised learning. This approach can be helpful for work seeking to build supervised behavior classification models where behavior labelled videos are scarce.
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Semi-supervised sequence modeling for improved behavioral segmentation
M. R. Whiteway, E. S. Schaffer, … L. Paninski·bioRxiv·Jun 16, 2021
- PoseR - A deep learning toolbox for decoding animal behavior
Pierce N. Mullen, Beatrice Bowlby, … Maarten Zwart·Open BiologyPeer-reviewed·Jan 21, 2026
- ASBAR: an Animal Skeleton-Based Action Recognition framework. Recognizing great ape behaviors in the wild using pose estimation
M. Fuchs, E. Genty, … P. Cotofrei·bioRxiv·Sep 24, 2023
- A Framework for Fast, Large-scale, Semi-Automatic Inference of Animal Behavior from Monocular Videos
E. Price, P. C. Khandelwal, … A. Ahmad·bioRxiv·Jul 31, 2023
- ABEL: an active-learning behavior estimation and labeling platform
Jobe L. Ritchie, Brianna A. George, … Thomas L. Kash·bioRxiv·Sep 9, 2026
- Selfee: Self-supervised Features Extraction of animal behaviors
Yinjun Jia, Shuaishuai Li, … Wei Zhang·eLifePeer-reviewed·Jun 16, 2022