Abstract
Identifying heritable biological traits is a fundamental yet labor-intensive task in evolutionary biology. Traditional methods rely on expert manual labeling, which is often subjective and slow. This paper introduces Phylo-NN, a deep learning architecture designed to discover heritable traits directly from images without manual supervision. By integrating the "tree of life" (phylogeny) into the model's latent space, Phylo-NN constructs an Imageome—a structured visual representation that disentangles evolutionary signals from environmental noise. Our results demonstrate that Phylo-NN significantly outperforms standard generative models in capturing biological reality, providing a scalable path for automated trait discovery.
Introduction
In biology, traits are the physical or behavioral characteristics that define a species and its evolutionary lineage. Identifying these traits is critical for understanding biodiversity and evolution. However, the current bottleneck is the reliance on expert knowledge to manually annotate morphological features. While deep learning has shown promise in image analysis, standard models lack an inherent understanding of evolutionary relationships. They frequently conflate heritable signals (e.g., the specific curvature of a fin) with non-evolutionary artifacts (e.g., lighting, camera angle, or specimen orientation).
To address this, we present Phylo-NN, a framework that leverages phylogenetic hierarchies to guide the learning of visual features. By forcing the model to organize its internal representations according to known evolutionary history, we can isolate the "visual genome" of an organism, enabling the discovery of traits that were previously hidden or difficult to quantify.
The Phylo-NN Framework
Architecture and the Imageome
Phylo-NN is built upon a Vector-Quantized Generative Adversarial Network (VQGAN) architecture. The primary innovation is the structure of its latent space, which we refer to as the Imageome. Instead of encoding an image into a single, unstructured vector, Phylo-NN decomposes the image into a sequence of discrete codes.
This latent space is explicitly partitioned into two segments:
- Phylogenetic Latent ($z_p$): This segment is further subdivided into levels corresponding to specific depths in a phylogenetic tree. Each level represents traits inherited from ancestors at different points in time (e.g., from broad family-level characteristics down to species-specific nuances).
- Non-Phylogenetic Latent ($z_{np}$): This segment captures information that is not heritable, such as image background, lighting conditions, and specimen pose.
Dual-Loss Strategy
To ensure the effective disentanglement of these features, the model employs a dual-loss strategy:
- Phylogeny-Guided Loss ($L_p$): This loss function penalizes the model if the codes in $z_p$ fail to predict the correct ancestor at the corresponding level of the phylogenetic tree. This forces the model to store evolutionary information in specific, predictable locations within the Imageome.
- Adversarial Loss ($L_{adv}$): To prevent evolutionary information from "leaking" into the non-phylogenetic space, an adversarial component is used to "bleach" $z_{np}$ of any signal that could be used to identify the species or its ancestors.
Finally, a GPT-style transformer block is utilized to learn the relationships between these discrete codes, allowing the model to generate biologically plausible images and perform species-to-species translations.
Experimental Setup
Datasets
The model was trained and evaluated using a curated dataset of teleost fishes. This dataset comprised approximately 11,000 images covering 38 species, sourced from five major ichthyological collections via the GLIN project.
Validation Metrics
To validate the biological accuracy of the discovered traits, the authors compared Phylo-NN’s internal representations against two ground-truth sources:
- FishShapes v1.0: A dataset of expert-measured morphological traits.
- Time-Calibrated Phylogeny: A tree used to calculate true evolutionary distances between species.
Results and Discussion
Biological Fidelity
Phylo-NN demonstrated a superior ability to capture biological reality compared to baseline models. The embedding distances generated by Phylo-NN showed a Spearman correlation of 0.70–0.87 with morphological and phylogenetic ground truths. In contrast, a standard VQGAN only achieved correlations between 0.24–0.31. This suggests that the phylogeny-guided constraints successfully steer the model toward learning meaningful biological features rather than superficial image patterns.
Trait Disentanglement and Translation
One of the most compelling applications of Phylo-NN is "evolutionary time-travel" via species-to-species translation. By swapping species-level codes while maintaining ancestor-level codes, researchers can visualize how specific traits change across lineages. For example, in experiments translating a Goldfish into a Green Sunfish, the model successfully isolated the evolution of the pectoral fin position. This alignment with known biological facts confirms that the model is identifying real evolutionary transitions.
Clustering and Generalization
Visualizations using t-SNE revealed that Phylo-NN naturally clusters species according to their evolutionary hierarchy. Furthermore, the model demonstrated an ability to generalize to unseen species. When presented with an image of a species not included in the training set, the model could analyze its Imageome to correctly place it near its closest relatives on the phylogenetic tree.
Conclusion and Future Work
Phylo-NN represents a significant step toward the automated discovery of biological traits. By treating the phylogenetic tree as a roadmap for neural representation, we can extract heritable features directly from raw imagery.
While the current results are promising, several areas for future development remain. The visual quality of generated images, while biologically accurate, does not yet match the photorealism of state-of-the-art generative models. Additionally, expanding the taxonomic scope beyond fish to include plants or insects will be vital for testing the universality of the Imageome concept. Future research will also focus on improving explainability—mapping specific discrete codes in the Imageome back to localized regions on the organism's body to identify exactly which pixels constitute a "visual gene."
Summary updated