calebc22's picture
Add dataset card
e3ca7c4 verified
|
Raw History Blame Contribute Delete
22.1 kB
---
license: cc-by-4.0
language:
- en
pretty_name: TraitBlender-DCM-Benchmarks
description: >-
Simulated morphological benchmark linking phylogenetic trait processes
(Brownian motion, Pagel's λ, regime OU, and bounded BM on shell parameters)
to TraitBlender outputs—multi-view images and .ply meshes—across MorphoWeave
morphospaces (mouse cranium, primate molar, vertebra) and TraitBlender Shell
(Default), with matching trees and trait tables for phylogeny-aware evaluation.
task_categories:
- feature-extraction
- other
tags:
- biology
- image
- morphology
- phylogenetics
- simulated data
- evolutionary biology
- CV
- TraitBlender
- MorphoWeave
- shell
- Brownian motion
- Ornstein-Uhlenbeck
- Pagels lambda
- DCM
- Deep Comparative Methods
- imageomics
- benchmark
size_categories:
- 100K<n<1M
---
# Dataset Card for TraitBlender-DCM-Benchmarks
Simulated **trait → 3D morphospace → multi-view image** benchmark for studying how phylogenetic processes appear in morphological imagery and learned embeddings (e.g., BioEncoder). Each run provides a phylogeny, tabular traits (tips and internal nodes), and TraitBlender renders under controlled designs:
- **MorphoWeave scenarios** — tip PCs under Brownian motion, Pagel’s \(\lambda\), and 3-regime Ornstein–Uhlenbeck; three morphospaces (mouse cranium, primate molar, vertebra).
- **Shell scenario (`shell_bm`)** — bounded Brownian motion on TraitBlender **Shell (Default)** coiling parameters, with three nested free-trait morphs (`shell_1trait` / `shell_3trait` / `shell_5trait`).
## Dataset Details
### Dataset Description
- **Curated by:** Caleb P. Charpentier
- **Homepage:** [TraitBlender docs](https://imageomics.github.io/TraitBlender/)
- **Repository:** Generation code: [Imageomics/TraitBlender-DCM-Benchmarks](https://github.com/Imageomics/TraitBlender-DCM-Benchmarks)
- **Paper:** Dataset paper forthcoming (separate from the DCM framing preprint below).
- **Contact:** [calebcharpentier00@gmail.com](mailto:calebcharpentier00@gmail.com)
TraitBlender-DCM-Benchmarks couples **known phylogenetic trait-generating processes** with **MorphoWeave / TraitBlender** imaging so Deep Comparative Methods (DCMs) can be evaluated when ground-truth trees, tip traits, and process parameters are available. In the framing of Charpentier et al. (2026), DCMs use neural networks for **character construction** (learned traits from complex observations) and/or **model construction** (evolutionary inference, including settings without tractable likelihoods). Simulations and benchmarks test whether biologically motivated constraints on architectures, losses, data, and optimization actually yield representations that are usable for comparative inference—not only predictive under i.i.d. image splits.
All scenarios share one ultrametric balanced topology (height \(T = 1\); `trees/balanced_128.nwk`). Pagel’s \(\lambda\) then writes per-level transformed trees. MorphoWeave tip PCs drive mesh deformation; Shell uses the parametric Shell (Default) morphospace. Cameras render multiple views per specimen with stochastic appearance noise.
**Imaging contents:**
| Block | Sims | Specimens / sim | Views × frames | Image size | Approx. images |
|-------|------|-----------------|----------------|------------|----------------|
| MorphoWeave (3 scenarios × 3 morphs × 10 levels × `rep_01`) | 90 | 255 (128 tips + 127 nodes) | 3 × 5 | 350×350 | ~344,250 |
| Shell (`shell_bm`: 3 morphs × 25 replicates) | 75 | 255 | 3 × 5 | 620×620 | ~287,625 |
Each simulation also exports one `.ply` mesh per specimen, trees, and trait tables.
### Supported Tasks and Leaderboards
Aligned with DCM evaluation goals in Charpentier et al. (2026):
- **Character construction from images/meshes** — learn tip-level representations (e.g., BioEncoder / contrastive embeddings) from multi-view renders or `.ply` meshes when tip identity and the generating morphospace PCs are known.
- **Commensurability with evolutionary structure** — test whether learned characters preserve phylogenetic signal and trait geometry (Blomberg’s \(K\) / \(K_{\mathrm{mult}}\); PGLS or OLS of embedding scores on tip `pc1`…`pc5`).
- **Model / process recovery** — recover or discriminate generating comparative processes and parameters (BM \(\sigma^2\), Pagel’s \(\lambda\), regime-OU \(\alpha\)) from images or embeddings under controlled distribution shift across parameter levels and morphospaces.
- **Constraint stress tests** — compare architectures, losses, and training choices meant to impose abductive (biologically motivated) constraints, and ask whether gains hold beyond tip classification accuracy (e.g., under new morphospaces, views, or process regimes).
- **Supervised tip classification / retrieval** — optional baseline for image-level discrimination under known morphological disparity.
No public leaderboard is attached yet.
## Dataset Structure
```text
dataset/
README.md
trees/
balanced_128.nwk
balanced_bm/
params.csv
run_meta.yaml
trees/ # sig2_XX__rep_01.nwk
tabular/ # tips + internal nodes (TraitBlender input; species/node id + pc1..pc5)
renders/
<morphospace>/
<sig2_XX__rep_01>/
images/<species>/<view>/<species>_<k>.png
images/<species>/<view>/<species>_<k>.yaml # per-frame TraitBlender job record
meshes/<species>/<species>.ply
rendering_log.csv
rendering_log.txt
balanced_ou/ # same layout; param token alpha_XX__rep_01
# trees are NEXUS: alpha_XX__rep_01.nex
pagel_lambda_bm/ # same layout; trees lambda_XX.nwk (no __rep suffix);
# tabular tables lambda_XX__rep_01.csv
shell_bm/
trees/ # simulation.nwk (= balanced_128); original.nwk source note
tabular/
shell_1trait/rep_XX.csv
shell_3trait/rep_XX.csv
shell_5trait/rep_XX.csv
renders/
shell_<k>trait/
rep_XX/
images/<species>/<view>/…
meshes/<species>/<species>.ply
…
```
**MorphoWeave morphospaces (`<morphospace>`):**
| ID | Description |
|----|-------------|
| `mus_musculus_cranium_v1` | Mouse cranium MorphoWeave space |
| `primates_multitaxon_second_mandibular_molar_v1` | Primate second mandibular molar |
| `vertebra_3000_smooth` | Squamate vertebra MorphoWeave space |
**Shell morphs** (TraitBlender **Shell (Default)**; nested free traits within each replicate):
| ID | Free traits (bounded BM) | Held for that morph |
|----|--------------------------|---------------------|
| `shell_1trait` | `b` | `d=2.5`, `z=0`, `a=1`, `c_depth=0`, `phi=0`, … |
| `shell_3trait` | `b`, `d`, `z` | `a=1`, `c_depth=0`, `phi=0.175`, … |
| `shell_5trait` | `b`, `d`, `z`, `a`, `c_depth` | `phi=0.175`, … |
Shared fixed columns across shell morphs include `S=1.75` (aperture scale), `t=80` (growth end), `eps=0.8`, `h_0=0.1`, and spiral ribbing off (`n_depth=0`, `n=0`). Within a replicate, morphs share the overlapping free draws (same `b` in all three; same `d,z` in 3- and 5-trait; same `a,c_depth` only in 5-trait).
View folder names come from each TraitBlender orientation template (3 views per specimen):
| Morphospace / morph | View folders |
|---------------------|--------------|
| `mus_musculus_cranium_v1` | `Default`, `X_32_π_Rotation`, `Y_1_π_Rotation` |
| `primates_multitaxon_second_mandibular_molar_v1` | `s0`, `s1`, `s2` |
| `vertebra_3000_smooth` | `f1`, `f2`, `top` |
| `shell_1trait` / `shell_3trait` / `shell_5trait` | `Default`, `Flipped`, `Aperture_View` |
### Data Instances
- **Trees:** Brownian and λ use Newick (`.nwk`); OU uses phytools SIMMAP NEXUS (`.nex`) only, with discrete regimes painted on edges (`BEGIN SMPTREES`). Shell uses the shared Newick (`shell_bm/trees/simulation.nwk`). Tips are labeled `t1`…`t128` (`NTAX = 128`).
- **MorphoWeave traits:** CSV with columns `species`, `pc1`…`pc5` — tips (`t1`…`t128`) and internal nodes (numeric ids); 255 rows per sim.
- **Shell traits:** CSV with TraitBlender Shell columns (`species`, `b`, `d`, `z`, `a`, `phi`, `c_depth`, `c_n`, `psi`, `k`, `n_depth`, `n`, `t`, `eps`, `h_0`, `S`); tips and internal nodes; 255 rows per `rep_XX.csv`.
- **Parameters (MorphoWeave):** per-scenario `params.csv` maps each simulation id to the numeric process parameter.
- **Images:** PNG renders under `renders/<morphospace_or_morph>/<sim_id>/images/` for every tabular row (tips and ancestors). MorphoWeave: **350×350**. Shell: **620×620** (ruler visible).
- **Per-image job records:** each PNG has a matching `.yaml` (e.g., `t1_0.png` ↔ `t1_0.yaml`) with camera, lighting, material, and the **realized random transforms** for that frame (the run config only specifies transform *distributions*). Absolute paths may be redacted to placeholders such as `<DATASET_ROOT>` / `<CODE_ROOT>`—substitute local paths before reloading in TraitBlender. For phylogenetic analysis, prefer trees and `tabular/` CSVs (and MorphoWeave `params.csv`).
- **Meshes:** one `.ply` per specimen under `renders/.../meshes/` (optional for image-only workflows). Shell meshes are outer surface only (no inner wall surface).
- **Rendering logs:** `rendering_log.csv` (species / view / frame paths) and `rendering_log.txt` (human-readable progress) per simulation folder when produced by the imaging pipeline.
- **Run metadata (MorphoWeave):** `run_meta.yaml` records scenario id, process, seed, and generating config.
### Data Fields
**`params.csv` (Brownian example columns):**
- `id` — simulation id (e.g., `sig2_01__rep_01`)
- `sig2_id` / `sig2` — Brownian rate level and numeric \(\sigma^2\)
- `rep` — replicate id (`rep_01` in the MorphoWeave imaging grid)
**OU** uses `alpha_id` / `alpha` the same way. **λ** uses `lambda_id` / `lambda`, plus a `tree` column with the matching Newick filename (e.g., `lambda_01.nwk`).
**MorphoWeave trait CSV** (`tabular/<sim_id>.csv`):
- `species` — tip label (`t1`…`t128`) or internal-node id (`129`…`255`); matches image/mesh folder names
- `pc1`…`pc5` — continuous coordinates in the MorphoWeave PC basis used for deformation
- 255 rows per simulation (128 tips + 127 internal nodes)
**Shell trait CSV** (`shell_bm/tabular/<morph>/rep_XX.csv`):
- Free-parameter ranges (reflecting BM): `b ∈ [0.1, 0.16]`, `d ∈ [2, 3]`, `z ∈ [0, 3]` via \(z = 4^u - 1\) with \(u ∈ [0, 1]\), `a ∈ [0.725, 1.275]`, `c_depth ∈ [-0.03, 0.12]`
- Shell geometry follows Contreras-Figueroa & Aragón (2023) as implemented in TraitBlender Shell (Default); `S` sets target aperture diameter scale; `t` is growth end (radians)
- Axial ribbing uses `c_depth` / `c_n` (frequency `c_n` is morph-specific: 32 or 70); spiral ribs are off in this release
**Image path pattern** (relative to each scenario directory):
`renders/<morphospace_or_morph>/<sim_id>/images/<species>/<view>/<species>_<frame>.png`
with `<frame>` in `0`…`4` (five frames per view). Matching job records use the same stem with `.yaml`. For shell, `<sim_id>` is `rep_01`…`rep_25`.
**`rendering_log.csv` columns:** `species`, `orientation`, `index`, `path`, `config_path` (image/mesh and YAML paths may use a `<DATASET_ROOT>` placeholder).
### Data Splits
This release does **not** define a fixed train/val/test partition. Splits are left to downstream users (e.g., hold out tips, morphospaces, or parameter levels). BioEncoder experiments commonly build tip-stratified image splits at training time.
## Dataset Creation
### Curation Rationale
The goal is a **controllable image benchmark for phylogenetic comparative methods and representation learning**: process parameters and trees are known, morphologies are rendered consistently, and tip labels align across tables, trees, and images.
Tabular scenarios share one ultrametric balanced topology (`trees/balanced_128.nwk`; λ then writes per-level transformed trees) and place continuous rates in that time unit. Parameter grids are explicit lists in the configs (not generated at run time).
- **Trees / branch scaling.** Balanced topology (`ape::stree`), Grafen relative lengths (`compute.brlen`, power = 1), rescaled so maximum root-to-tip depth is \(T = 1\). That puts BM tip variance, OU half-lives, and Mk dwell times on a common clock.
- **MorphoWeave scale.** Tip trait values feed mesh deformation. Continuous-process grids are capped so BM tip variance and OU optima radius stay near an empirically MorphoWeave-safe ~2.5 PC scale.
- **Brownian (`balanced_bm`).** On height-1 trees, tip marginal variance equals \(\sigma^2\). **Log-spaced** \(\sigma^2\) from **0.01** to **2.5**.
- **Pagel's \(\lambda\) (`pagel_lambda_bm`).** Ten equally spaced \(\lambda\) values from **0** to **1**, BM at fixed \(\sigma^2 = 2.5\).
- **Regime OU (`balanced_ou`).** Fixed equal-rate Mk plus an \(\alpha\) grid so tips range from largely Brownian-like to tightly clustered at regime optima. **Diffusion \(\sigma^2\) is fixed at 2.5** (α does **not** increase tip variance by design).
- **Regime rate \(q\).** Three states, off-diagonal \(q = 2.5\) (leave rate \(2q\); mean dwell \(\tau = 1/(2q) \approx 0.2\)).
- **OU \(\alpha\).** Half-lives **log-spaced from 2 down to 0.02**; optima form an equilateral triangle with **vertex distance from the origin = 2.5**, embedded in a random 2D plane of the 5-D trait space.
- **Shell BM (`shell_bm`).** Reflecting/bounded BM (\(\sigma^2 = 0.09\)) on Shell coiling parameters with the ranges above; **25** replicates; three nested morphs that share draws where free-trait sets overlap. Not a MorphoWeave PC design—traits are Shell (Default) parameters ([Contreras-Figueroa & Aragón 2023](https://doi.org/10.3390/d15030431)).
### Source Data
#### Data Collection and Processing
1. Simulate tip + internal-node traits and trees with R (`ape`, `phytools`, `geiger`) from scenario YAML configs under [`configs/tabular/`](https://github.com/Imageomics/TraitBlender-DCM-Benchmarks/tree/main/configs/tabular) (MorphoWeave) or [`scripts/sim_traits/simulate_shell_bounded_bm.R`](https://github.com/Imageomics/TraitBlender-DCM-Benchmarks/blob/main/scripts/sim_traits/simulate_shell_bounded_bm.R) (Shell) in the generation repo.
2. Render meshes/images for every tabular row with **Blender + TraitBlender** using templates under [`configs/traitblender/`](https://github.com/Imageomics/TraitBlender-DCM-Benchmarks/tree/main/configs/traitblender) (MorphoWeave SSMs or Shell (Default)).
3. Package trees, trait tables, and `renders/` for release.
MorphoWeave shape databases (SSMs) used at MorphoWeave render time are **not** redistributed in this dataset; they are inputs to the imaging pipeline documented in [Imageomics/TraitBlender-DCM-Benchmarks](https://github.com/Imageomics/TraitBlender-DCM-Benchmarks). Shell imaging does not require those SSMs.
#### Who are the source data producers?
Synthetic data generated by Caleb P. Charpentier using phylogenetic simulation software and TraitBlender imaging (MorphoWeave morphospaces and Shell (Default)). MorphoWeave templates derive from MorphoWeave morphometric resources used by the TraitBlender workflow (see code repository for template ids and software pins).
### Annotations
No manual human annotations. Tip labels, traits, trees, and process parameters are produced by the simulation pipeline and define the ground truth for benchmarking.
#### Annotation process
Not applicable (fully simulated labels).
#### Who are the annotators?
Not applicable.
### Personal and Sensitive Information
None. Data are simulated morphological renders and numeric trait tables; no human subjects, personal data, or endangered-species occurrence records are included.
## Considerations for Using the Data
- **Parameter interpretation differs by scenario:** MorphoWeave BM varies tip disparity via \(\sigma^2\); λ varies phylogenetic signal at fixed disparity; OU varies attraction strength at fixed diffusion (expect tighter within-regime clustering at high \(\alpha\), not a BM-like variance ramp). Shell varies coiling geometry via bounded BM on Shell parameters (`b`, `d`, `z`, …), not MorphoWeave PCs.
- Tip folders use labels `t1`…`t128` (not Linnaean taxonomy).
- Camera/view directory names differ across morphospaces—do not hard-code a single view folder name.
- MorphoWeave imaging grid uses **`rep_01` only** (10 levels × 3 morphs × 3 scenarios); check `params.csv`. Shell imaging uses **`rep_01`…`rep_25`** for each of `shell_1trait` / `shell_3trait` / `shell_5trait`.
- Shell and MorphoWeave image resolutions differ (**620×620** vs **350×350**).
### Bias, Risks, and Limitations
- **Simulation bias:** MorphoWeave morphologies live in low-dimensional PC spaces; Shell morphologies follow a parametric coiling model—neither captures all biological shape variation.
- **Appearance stochasticity:** lighting/material noise is synthetic; models may overfit render cues.
- **Single topology family:** shared balanced ultrametric tree limits topological diversity.
- **Not for clinical or wildlife-management decisions.**
### Recommendations
- Evaluate methods across MorphoWeave process scenarios **and** Shell when comparing morphospace families, not only BM variance sweeps.
- When relating embeddings to traits, prefer phylogeny-aware models (e.g., PGLS) in addition to iid regression.
- Report which morphospace/morph and parameter level (or shell replicate/morph) were used; performance can differ substantially across templates.
## Licensing Information
This dataset (the compilation of simulated trees, tip tables, meshes, and renders as released here) is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
We ask that you cite this dataset (and any associated paper) if you use it in research. Please also cite [TraitBlender](https://github.com/Imageomics/TraitBlender) when using these renders. MorphoWeave / Blender upstream projects retain their own licenses for software; this card covers the simulated benchmark artifacts only. The generation code is MIT-licensed separately.
## Citation
Please cite this dataset (and the forthcoming dataset paper when available). The DCM preprint is related framing only, not the primary citation for these data.
**BibTeX:**
**Data**
```
@misc{charpentier_traitblender_dcm_benchmarks,
author = {Charpentier, Caleb P.},
title = {{TraitBlender-{DCM}-Benchmarks}},
year = {2026},
url = {https://huggingface.co/datasets/imageomics/TraitBlender-DCM-Benchmarks},
publisher = {Hugging Face}
}
```
**Code** ([Imageomics/TraitBlender-DCM-Benchmarks](https://github.com/Imageomics/TraitBlender-DCM-Benchmarks)):
```
@software{charpentier_traitblender_dcm_benchmarks_code,
author = {Charpentier, Caleb P.},
title = {{TraitBlender-{DCM}-Benchmarks} (code)},
year = {2026},
url = {https://github.com/Imageomics/TraitBlender-DCM-Benchmarks}
}
```
**TraitBlender** (imaging software; [GitHub](https://github.com/Imageomics/TraitBlender), [Zenodo](https://doi.org/10.5281/zenodo.14804133)):
```
@software{charpentier_2026_traitblender,
author = {Charpentier, Caleb and Linscott, T. Mason and Bradley, John and Campolongo, Elizabeth and Thompson, Matthew and Porto, Arthur and Uyeda, Josef C.},
title = {TraitBlender},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.14804133},
url = {https://doi.org/10.5281/zenodo.14804133}
}
```
**Related (DCM framing; not the dataset paper):**
```
@article{charpentier2026deepcomparative,
title = {On the Promise (and Practice) of Deep Comparative Methods: Expressivity, Limitations, and Design},
author = {Charpentier, Caleb and Porto, Arthur and Karpatne, Anuj and Uyeda, Josef C.},
year = {2026},
doi = {10.32942/x2md6m},
url = {https://doi.org/10.32942/x2md6m},
publisher = {EcoEvoRxiv}
}
```
## Acknowledgements
This work was supported by the [Imageomics Institute](https://imageomics.org), which is funded by the US National Science Foundation's Harnessing the Data Revolution (HDR) program under [Award #2118240](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2118240) (Imageomics: A New Frontier of Biological Information Powered by Knowledge-Guided Machine Learning). Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
## Glossary
- **BM** — Brownian motion trait evolution; tip variance scales with \(\sigma^2\) on the unit-height tree (MorphoWeave grids) or reflecting/bounded BM on Shell parameters (`shell_bm`).
- **Pagel’s \(\lambda\)** — branch-length transform controlling phylogenetic signal (\(\lambda=0\) star-like; \(\lambda=1\) BM).
- **OU (regime)** — Ornstein–Uhlenbeck process with discrete selective regimes; \(\alpha\) sets pull strength (half-life \(t_{1/2}=\ln 2/\alpha\)).
- **MorphoWeave / TraitBlender** — morphometric morphospace + Blender rendering pipeline used to turn tip PCs into meshes/images.
- **Shell (Default)** — TraitBlender parametric mollusc-shell morphospace (coiling / aperture / ribbing traits); see Contreras-Figueroa & Aragón (2023).
- **DCM** — deep comparative methods / phylogeny-aware deep learning setting motivating this benchmark.
## More Information
- Generation code and configs: [https://github.com/Imageomics/TraitBlender-DCM-Benchmarks](https://github.com/Imageomics/TraitBlender-DCM-Benchmarks)
- TraitBlender Shell morphospace docs: [https://imageomics.github.io/TraitBlender/morphospaces/shell/](https://imageomics.github.io/TraitBlender/morphospaces/shell/)
- Contreras-Figueroa, G. & Aragón, J. L. (2023). A mathematical model for mollusc shells based on parametric surfaces… *Diversity* **15**, 431. [https://doi.org/10.3390/d15030431](https://doi.org/10.3390/d15030431)
## Dataset Card Authors
Caleb P. Charpentier
## Dataset Card Contact
[calebcharpentier00@gmail.com](mailto:calebcharpentier00@gmail.com). You can also use the Hugging Face dataset **Discussions** tab.