Decoding the Past: An Uncertainty-Aware Deep Learning Framework for Sex Attribution in Prehistoric Hand Stencils
Organizations: Data Science and AI Division, Azyri, Miami, Florida, USA · Departamento de Física y Matemáticas, Instituto de Ingeniería y Tecnología, Universidad Autónoma de Ciudad Juárez, Ciudad Juárez, Mexico · Professor Emeritus of Anthropology at Pennsylvania State University, Pennsylvania, USA · Institute of New Imaging Technologies, Universitat Jaume I, Castelló de la Plana, Spain
Abstract
Determining the biological sex of the individuals who created Upper Paleolithic hand stencils remains a challenging problem due to the absence of ground truth, population differences between contemporary and prehistoric groups, and the uncertainty introduced by image degradation. Traditional morphometric methods suffer from high structural overlap across sexes, poor cross-population generalizability, and subjective feature engineering. This study presents an uncertainty-aware deep learning framework for sex attribution in prehistoric hand stencils that explicitly models, propagates, and aggregates uncertainty throughout the analytical pipeline. The methodology combines dual image processing, dual contour extraction, structured silhouette augmentation, model architectural diversity, and ensemble-based decision aggregation. The pipeline generates twelve plausible silhouette realizations per stencil to capture boundary uncertainties, which are processed by two ensembles of ten deep neural networks each (EfficientNet-B3 and MobileViT-S) trained on 14,036 contemporary hand samples. Furthermore, a triangulated validation scheme integrates ensemble predictions with unsupervised 2D latent-space manifold mapping (UMAP + k-NN) and explainable AI spatial attributions (LayerCAM) to ensure anatomical consistency. On contemporary data, ensemble models achieve strong classification performance, with accuracies exceeding 88% in older age groups. When applied to prehistoric stencils, the framework produces both sex predictions and confidence measures of internal agreement, enabling the distinction between morphologically stable and ambiguous cases. Convergence across ensemble predictions, latent-space structure, and interpretability analyses shows that uncertainty can become a measurable component of archaeological inference, enabling robust and reproducible decoding of ancient rock art.
Figures & tables
| Reference | Training data | Test data | Features extraction | Decision rule | Protocol |
|---|---|---|---|---|---|
| ( Fernández-Navarro et al., 2025b ) | Contemporary | Paleolithic | Automatically learned | DNN | Cross-domain |
| ( Fernández-Navarro et al., 2025a ) | Contemporary | Simulated, Paleolithic | Automatically handcrafted | LDA | Cross-domain |
| ( Mollineda et al., 2025 ) | Contemporary | Paleolithic | Automatically learned | DNN | Cross-domain |
| ( Rabazo-Rodríguez et al., 2017 ) | Contemporary | Paleolithic | Manually handcrafted | LDA | Cross-domain |
| ( Nelson et al., 2017 ) | Contemporary | Contemporary | Automatically handcrafted | Fisher’s LDA | Leave-one-out |
| ( Permana et al., 2015 ) . | Contemporary | Paleolithic | Manually handcrafted | Nearest class mean | Cross-domain |
| females | males | total | |
|---|---|---|---|
| training set | 5,778 | 6,833 | 12,611 |
| validation set | 652 | 773 | 1,425 |
| test set | 100 | 100 | 200 |
| Architecture | Model | Training | Validation | Test data | |||
|---|---|---|---|---|---|---|---|
| data | data | All ages | [0–6) y | [6–12) y | [12–19] y | ||
| EfficientNet-B3 | Mean SEM | ||||||
| Sum aggregation | |||||||
| Max aggregation | |||||||
| MobileViT-S | Mean SEM | ||||||
| Sum aggregation | |||||||
| -NN | EfficientNet-B3 | |||
|---|---|---|---|---|
| Cave Image | Predicted Class | SSR + | Predicted Class | SSR/ACM ∗ |
| img_26 | Female | 0.982 | Female | 1/0.61 |
| img_28 | Female | 0.966 | Female | 1/0.67 |
| img_31 | Male | 0.697 | Male | 0.87/0.18 |
| img_38 | Male | 0.821 | Male | 1/0.29 |
| Cosquer | Female | 0.989 | Female | 1/0.73 |
Cultural Heritage
Cultural heritage uses AI to document, analyze, preserve, and interpret artifacts, sites, archives, and living traditions.
See all 57 papers