Climate & Environmentarticle2026-09-20

Prototype-based explainable deep learning for sex classification of Mountain Gazelles in the wild

Open access0 citations

Abstract

Abstract Wildlife preserves are critical for countering the decline of biodiversity, yet monitoring species distribution and demographics via direct observation is time-consuming and prone to observer disturbance. Deep learning has emerged as a scalable alternative for analyzing field data, yet the ’black-box’ nature of standard models hinders their adoption. This is a major obstacle in ecological research, where transparent reasoning is essential for trust and meaningful interpretation. We address this challenge through the lens of sex classification in the endangered Mountain Gazelle, utilizing a dataset of 1833 cropped bounding boxes extracted from unconstrained camera trap imagery. Reliable automated classification from field imagery is essential for assessing population structure and welfare metrics for effective conservation management. While Mountain Gazelles exhibit distinct sexual dimorphism in horn morphology and body size, inferring sex from unconstrained camera trap data remains challenging due to significant variability in pose, illumination, and occlusion. To enhance explainability in Mountain Gazelle sex classification, we employed a prototype-based deep learning framework. Unlike standard “black-box” models, this approach represents classes through learned visual exemplars (prototypes) that correspond directly to crucial image features, ensuring transparent reasoning. Building upon the PIP-Net architecture, we introduced a novel enhancement: the ability to learn prototypes of variable sizes and aspect ratios, moving beyond rigid, fixed-size patches. These prototypes are learned autonomously without manual trait annotation, allowing the model to discover distinct regional features. By optimizing across a list of candidate scales, our non-fixed prototype approach captures larger, more semantically coherent regions, achieving a global accuracy and F1-score of 75% alongside detailed explanations. Our analysis indicates that prominent prototypes frequently capture regions consistent with known morphological traits: both sexes are often identified via central body, leg, and head features, with the model distinguishing between them based on sex-specific morphological proportions. For males, horn-related prototypes serve as a distinct cue, reflecting the main dimorphic trait cited in literature. These representations suggest that the model’s decision-making relies on relevant morphological features rather than background artifacts, offering a transparent and accurate tool for wildlife classification. The dataset will be made publicly available upon publication.

// Source

View paper (DOI)Open access versionOpenAlexScientific ReportsPublished 2026-09-20

Authors: Tali Shitrit, Amir Kedem, Efrat Yagur, Ilan Shimshoni, Anna Zamansky

Institutions: University of Haifa, Jerusalem College of Technology, Royal Society for the Conservation of Nature