bioRxivAnimal Behavior & CognitionPreprint
PrimateFace: A Machine Learning Resource for Automated Face Analysis in Human and Non-human Primates
Felipe ParodiiD, Jordan MatelskyiD, Alessandro P. LamacchiaiD, Melanie SegadoiD, Yaoguang JiangiD, Alejandra Regla-VargasiD, L SofiiD, Clare M. KimockiD, Bridget M. WalleriD, Michael L. PlattiD, Konrad Paul KordingiD
Abstract
Machine learning has revolutionized human face analysis, but equivalent tools for non-human primates remain limited and species-specific, hindering progress in neuroscience, anthropology, and conservation. Here, we present PrimateFace, a comprehensive, cross-species platform for primate facial analysis comprising a systematically curated dataset of 260,000+ images spanning over 60 genera, including a genus-balanced subset of 60,000 images, annotated with bounding boxes and facial landmark configurations. Face detection and facial landmark estimation models trained on PrimateFace achieve high cross-species performance, from tarsiers to gorillas, achieving performance comparable to baseline models trained exclusively on human data (0.34 vs. 0.39 mAP for face detection; 0.061 vs. 0.053 normalized landmark error), demonstrating the generalization benefits of cross-species training. PrimateFace enables diverse downstream applications including individual recognition, gaze analysis, and automated extraction of stereotyped (e.g., lip-smacking) and subtle (e.g., soft left turn) facial movements. PrimateFace provides a standardized platform for facial phenotyping across the primate order, empowering data-driven studies that advance the health and well-being of human and non-human primates. All models, notebooks, and data can be found at github.com/KordingLab/PrimateFace.
- organism: non-human primate
- organism: human
- assay: imaging
- research focus: database / resource
- research focus: software / tool
- research focus: cell type annotation
- research focus: clustering
- approach: deep learning
In-depth summary
Claude Opus 5.5 · xhigh effort · 8 Nov 2026 · from the full text of version 2 (18 Aug 2025) · CC BY 4.0
260,000+ primate images from 60+ genera with face boxes and 48/68-point landmarks; detectors and landmark models trained on them work across primates and approach human-trained baselines on human faces.
Hand-coding primate facial behavior is slow and subjective, and the paper describes existing non-human primate face tools as species-specific, trained on small datasets and lacking the taxonomic breadth needed for cross-species work. PrimateFace offers one cross-primate resource: a genus-balanced annotated dataset, pretrained detectors and landmark models in several frameworks, and a converter between 68- and 48-point landmark conventions.
Key results
ShownFace detectors trained on PrimateFace transfer to human faces almost as well as human-trained detectors. Human-trained detectors lose accuracy on primate faces.
RetinaNet trained on PrimateFace reached 0.340 mAP@0.50 on human WIDERFace validation images vs 0.390 for a WIDERFace-trained RetinaNet. On the PrimateFace test set, the WIDERFace-trained model scored 0.585 mAP vs 0.775 for the PrimateFace-trained one. In qualitative comparisons, GroundingDINO prompted with 'face' found primate faces inconsistently. · PrimateFace models generalize effectively to…; Human Dataset Evaluation Protocols; PrimateFace detectors outperform human-face and…; PrimateFace is an integrated ecosystem for…
ShownTop-down landmark models trained on PrimateFace stay close to human-trained baselines on human faces. Human-trained landmark models degrade sharply on primate faces and fail on distant taxa.
HRNet-W18-Dark trained on PrimateFace: 0.061 NME (normalized by inter-ocular distance) on human COCO-WholeBody-Face validation vs 0.053 for the COCO-WholeBody-trained model. On PrimateFace data, the human-trained model had 0.122 NME vs 0.029 for the PrimateFace-trained one. Qualitatively, human models misplaced nose and mouth points in Cercopithecoidea and failed on Daubentonia. · PrimateFace models maintain human facial…; Human Dataset Evaluation Protocols; PrimateFace landmarks outperform human and…
ShownAccuracy varies by taxon, but detection works for every genus. Landmark error is highest for tarsiers, which the authors attribute to limited training data and their distinctive facial morphology.
Every genus scored above 0.60 mAP@0.50:0.95 for detection. Tarsioidea scored best and Hominoidea worst, which the authors attribute to image context rather than face difficulty. Landmark estimation was worst on Tarsioidea and best on Hominoidea and Lemuroidea. Alouatta was hard because of fast mouth movement while vocalizing. Per-taxon values appear only in figures. · Face detection maintains high performance across…; Facial landmark estimation maintains consistent…
ShownPicking training images for visual diversity using DINOv2 embeddings beats random picking when the annotation budget is small. The gap closes as the budget grows.
Cascade R-CNN detectors trained on DINOv2-sampled subsets gained 2 to 4 points of mAP@[.50:.95] over random subsets, across budgets of 500 to 8,000 images. The gain peaked near 500 images, and the two methods converged at larger sizes. This led to a target of about 500 to 850 images per genus. · PrimateFace dataset provides a foundation for…; Sampling Efficiency Benchmark for Detector…
SuggestedPrimateFace models serve as the front end (off the shelf, or fine-tuned for howler monkeys) for macaque identity recognition, howler monkey mouth-voice coupling, human infant gaze synchrony and unsupervised discovery of macaque facial movements.
An SVM on ArcFace embeddings of PrimateFace-aligned faces reached 0.858 top-1 accuracy over 62 rhesus macaques (chance 1/62 ≈ 0.016). After fine-tuning on howler data, howler monkey mouth aperture correlated with the vocal envelope at r = 0.33. Two human infants' gaze yaw angles correlated 0.85 at 0.64 s lag. A modified MotionMapper pipeline found over 80 recurring macaque movement patterns. · Scientific Application 2: Rapid Face Recognition…; Scientific Application 3: Fine-Grained…; Scientific Application 4: Quantifying Gaze…; Scientific Application 5: Data-Driven Discovery…
Methods, data and reproducibility
Re-annotated about 200,000 public primate images and added about 60,000 genus-balanced ones, using DINOv2-guided selection and iterative pseudo-labeling with GUI correction. Trained face detectors (Cascade R-CNN, RetinaNet, YOLOv8) and top-down landmark models (HRNet and others) on genus-stratified splits, plus an attention MLP that converts between 68- and 48-point schemes.
- PrimateFace dataset with face boxes and 48- and 68-point landmarks: about 200,000 images re-annotated from public datasets plus about 60,000 newly collected for genus balance · primates, 60+ genera in six superfamilies (released set: non-human only) · n = 260,000+ images
- Genus-stratified training/validation/test split of PrimateFace used for all reported primate metrics · non-human primates · n = 17,968 train, 996 validation, 996 test images
- WIDERFace human face detection benchmark (validation set used for evaluation) · human · n = 12,880 training; 3,226 validation images
- COCO-WholeBody-Face human facial landmark benchmark (validation set used for evaluation) · human · n = 118,582 training; 5,000 validation images
- Witham & Bethell (2019) rhesus macaque face dataset for individual recognition (not redistributed) · rhesus macaque · n = 62 individuals with ≥3 samples
- YouTube Research API videos of lemurs (time-stamping) and howling howler monkeys (vocal-motor coupling) · lemurs; howler monkeys
- Adobe Stock video of interacting human infants for gaze-following analysis · human · n = two infants
- 4K, 120 fps recordings of dyadic facial interactions between chaired macaques, 15-minute sessions, University of Pennsylvania · rhesus macaque (Macaca mulatta)
- Methods & tools
- DINOv2, Gemini 2.5 Pro, MMDetection (Cascade R-CNN, RetinaNet), Ultralytics YOLOv8, MMPose (HRNet), DeepLabCut (MacaqueFace-55), SLEAP, GroundingDINO, InsightFace / ArcFace, GazeLLE, MotionMapper (modified) with UMAP, BORIS
- Data & accessions
- https://github.com/KordingLab/PrimateFace
- Experimental conditions
- Not stated for model training. The face-recognition demo is said to go from raw images to a trained classifier in about an hour.
- Reproducibility gaps
- Demo data (the Witham & Bethell macaque set, YouTube Research API footage, Adobe Stock infant video, UPenn macaque recordings) are not redistributed. No human images ship with the dataset. No software versions, seeds or hardware are reported.
Limitations (6)
- Coverage of the primate order is incomplete and rarer genera remain underrepresented. Landmark accuracy is lowest for Tarsioidea, which has little training data. · stated by the authors
- Models can struggle with extreme occlusion, lighting or unusual viewpoints, especially for poorly represented species. · stated by the authors
- Annotations are face boxes and landmarks only: no facial action units and no 3D structure. The models do not classify expressions or emotions. · stated by the authors
- Human benchmark results come from the WIDERFace and COCO-WholeBody-Face validation sets, because neither provides a public test set. · stated by the authors
- The converter's 48-point targets were generated by the DeepLabCut MacaqueFace-55 model, not labeled by hand, and the converter was trained on laboratory macaque images. Its 3.35-pixel MPJPE (on 4K images) therefore measures agreement with another model on one species. · noted in this summary
- The applications are single-dataset demonstrations with no comparison to existing pipelines. For example, the gaze analysis uses one video of two infants, and the macaque sex-difference finding gives no number of animals or statistics. · noted in this summary
Read this if you need face detection or landmark tracking for primates beyond macaques, or a genus-balanced primate face dataset for training or benchmarking cross-species vision models.
- Citations
- 2
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
- OpenMonkeyChallenge: Dataset and Benchmark Challenges for Pose Tracking of Non-human Primates
Y. Yao, A. Abhiraj Mohan, … H. S. Park·bioRxiv·Sep 8, 2021
- Humans and marmosets share similar face recognition signatures in shape-based visual face discrimination behavior
You-Nah Jeon, H. Cho, … Elias B. Issa·bioRxiv·Nov 19, 2024
- PriMAT: A robust multi-animal tracking model for primates in the wild
Richard Vogg, Matthias Nuske, … Alexander S. Ecker·PLoS ONEPeer-reviewed·Apr 30, 2026
- Frontal mechanisms underlying primate calls recognition by humans
Léonardo Ceravolo, Coralie Debracque, … Didier Grandjean·Cerebral Cortex CommunicationsPeer-reviewed·Jan 1, 2023
- A real-time, multi-animal model for automatic face detection and identification of freely moving common marmosets based on YOLOv8 algorithms
Jiayue Yang, James Wang, Justine C. Cléry·bioRxiv·Jul 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