# ORGANIC-3D protocol This folder defines the public benchmark: what is measured (`protocol.json`), on which scans and findings (derivation rules in `builders/`; the shipped dataset-derived tables, AbdomenAtlas 3.0 tumour labels and Merlin test labels, in `files/`), and how to rebuild every protocol file from your own copy of each dataset (`builders/`). ## `protocol.json` | Section | Content | |---|---| | `findings` | the 18 chest findings: CT-RATE label column, target organ groups, control organ groups, size-finding flag, prompt phrase, positive / negative prompts ("There is {phrase}." / "No {phrase}."), VLM question ("Is there {phrase} in this CT? Answer Yes or No."), RAD-ChestCT label mapping (abnormalities × locations) | | `organ_groups_totalsegmentator_v2`, `related_organs`, `control_rule` | the anatomy vocabulary (TotalSegmentator v2 "total" ids), the overlap/adjacency exclusions, and how target and control groups are chosen | | `eval_organ_groups` | groups erased per dataset (chest: lungs, heart, aorta, oesophagus + stomach, trachea) | | `tasks` | the four tasks (classification, clinical finding independence, organ dependence, laterality) and their metric names (MLC-AUROC, MP, OE, Side, LL) with the summary keys | | `interventions` | organ erasure (2 mm dilation; fat −100 HU, soft tissue 40 HU; noise SD 15 HU), mirror, side sentences, lesion erasure (LE) with a same-organ control, density edits, lobe test, tumour detection (AbdomenAtlas 3.0) | | `metrics` | aggregation (mean over findings), tumour detection, thresholds, probe, ADR, erasure effect, matched pairs, wrong-patient control, finding-based reports, bootstrap | | `datasets` | split definitions and sizes | The metric module (`../metric/organic3d_benchmark.py`) carries the same constants; `protocol.json` is generated from it. ## Scan lists **Derived, not shipped (CT-RATE and RAD-ChestCT 2026-10-17; ReXGroundingCT 2026-10-18, protocol 1.2.0).** No CT-RATE, RAD-ChestCT or ReXGroundingCT file or id list is distributed; the builders derive each list and its order from the datasets' own released files, and stop if the result differs from `protocol.json`: | List | Rule (implemented in) | Size | |---|---|---| | CT-RATE v2 test | validation volumes (`multi_abnormality_labels/valid_predicted_labels.csv`) minus CT-RATE's `dataset/metadata/no_chest_valid.txt` (37 non-chest series, `data_correction_note.md`); order: sorted by `//.nii.gz` (`build_ctrate.py`) | 3,002 volumes, 1,304 patients | | RAD-ChestCT | all scans of `img{train,valid,test}_Abnormality_and_Location_Labels.csv`, concatenated in that order, file row order (`build_radchest.py`) | 3,630 scans, 3,072 patients | | ReXGroundingCT findings | every finding of the ReXGroundingCT `train` and `val` splits in `dataset.json` whose mask channel, mapped from the original CT-RATE grid (`dataset/{train,valid}_fixed`) to the harness 1 mm RAS grid (world coordinates, nearest neighbour, sampled backwards in the lesion's box), keeps ≥ 1 voxel (7 of the 7,802 released findings drop on the reference grid); order: sorted by (volume id, finding index k); subset `held_out` = CT-RATE validation scan (`valid_*`) or ReXGroundingCT val scan, else `training_scans`; checked against the counts and the SHA-256 of the list (`datasets.rexgroundingct` in `protocol.json`) (`build_rexgroundingct.py`) | 7,795 findings in 3,041 scans; 1,267 held out (1,152 CT-RATE validation, 115 ReXGroundingCT val) | The rules reproduce the lists used for the paper exactly, order included (checked on the authors' copies with pandas 2.3.3 and numpy 2.2.6 / 1.23.5). Encoders and VLMs are scored on the same CT-RATE v2 test list. ReXGroundingCT control validity (≥ 70% of the mirrored region in lung, < 5% overlap with any dilated lesion; pleural findings exempt from the lung rule) is not part of the list: the harness computes the control geometry at evaluation time and the metric applies the rule (3,846 valid controls, 614 held out, on the reference run). ReXGroundingCT test masks are not public and are not used. The builder has an optional check mode (`--expected`, a csv you provide; none is shipped). Builder requirements: `builders/requirements.txt`. **Shipped (`files/`)** | File | Content | Licence | |---|---|---| | `abdomenatlas3_iid_test_tumour_labels.csv` | AbdomenAtlas 3.0 IID test: the 926 BDMAP ids and per-organ (liver, pancreas, kidney) labels positive / negative / small_only / absent with the largest lesion extent; rule in `builders/build_abdomenatlas3.py` | **CC BY-NC-SA 4.0**, derived from AbdomenAtlas 3.0 (`files/LICENSE_tumour_labels.md`) | | `merlin_test_labels.csv` | Merlin test: the 5,109 test studies (`study_id`) × 21 findings (`mr_*`), 1 / 0 / empty (uncertain); the paper's reference labels, LLM-extracted from the reports (no report text) | Merlin's terms (`files/LICENSE_merlin_labels.md`) | Labels, report sentences and finding texts are **not** distributed for CT-RATE, RAD-ChestCT and ReXGroundingCT; the builders create them locally. ## Builders (`builders/`, Apache-2.0) | Script | Input (your local copy) | Output | |---|---|---| | `build_ctrate.py` | CT-RATE `dataset/radiology_text_reports/validation_reports.csv`, `dataset/multi_abnormality_labels/valid_predicted_labels.csv`, `dataset/metadata/no_chest_valid.txt` | scan list and order (rules above), `ctrate_test.parquet` (labels; encoders and VLMs), `ctrate_side_sentences.parquet`, `ctrate_lobe_sentences.parquet`, `ctrate_matched_pairs.parquet` | | `build_radchest.py` | RAD-ChestCT `data/img{train,valid,test}_Abnormality_and_Location_Labels.csv`, `data/Summary_3630.csv` | scan list and order (rule above), `radchest_test.parquet` (patient ids, labels mapped to the 18 findings) | | `build_rexgroundingct.py` | ReXGroundingCT `dataset.json` and `segmentations/`; CT-RATE `dataset/{train,valid}_fixed` (headers); headers of the harness's 1 mm volumes | finding list and order (rule above), `rexgroundingct_findings.parquet` (finding sentences, categories, subsets), `rexgroundingct_dropped.csv`, lesion masks on the 1 mm grid | | `build_abdomenatlas3.py` | AbdomenAtlas 3.0 `TrainTestIDS/IID_test.csv`, `IID_test//ct.nii.gz` (header) and `segmentations/` (lesion and organ masks); download of the test scans only: harness `scripts/data/download_aa3_test.sh` | per-organ tumour labels on the 1 mm grid, compared with the shipped file (identical on the 62 scans tested, including the two masks with a faulty header) | | `common.py` | — | sentence split, side swap, side and lobe sentence rules, matched pairs | Every builder checks its output (list sizes; for ReXGroundingCT the counts and SHA-256 of the finding list) and stops on a mismatch. The CT-RATE, RAD-ChestCT and ReXGroundingCT (finding list and mask mapping) builders were run on the authors' copies and reproduce the paper's protocol files exactly (labels, 6,061 side sentences, 2,018 lobe sentences, matched pairs, the CT-RATE and RAD-ChestCT scan lists in order, 7,795 ReXGroundingCT findings). ## Licence decisions per dataset | Dataset | Licence / terms | Decision | |---|---|---| | CT-RATE | CC BY-NC-SA 4.0 plus gated terms: "Redistribution of the dataset or any portion thereof is not allowed." (https://huggingface.co/datasets/ibrahimhamamci/CT-RATE) | ship nothing (no id lists); scan lists, labels, side and lobe sentences built locally by rule | | RAD-ChestCT | CC BY-NC-ND 4.0, access on request (https://zenodo.org/records/6406114) | ship nothing (no id list, no adapted material: labels, mapping output, patient ids); built locally by rule | | ReXGroundingCT | CC BY-NC-SA 4.0, gated (https://huggingface.co/datasets/rajpurkarlab/ReXGroundingCT; Baharoon et al., NEJM AI 2026); finding sentences are CT-RATE report text | ship nothing (no id list); finding list, order, subsets, sentences and masks built locally by rule | | AbdomenAtlas 3.0 | CC BY-NC-SA 4.0, gated (https://huggingface.co/datasets/AbdomenAtlas/AbdomenAtlas3.0Mini; Bassi et al., ICCV 2025) | ship the IID test ids and derived per-organ labels under CC BY-NC-SA 4.0 with attribution (`files/LICENSE_tumour_labels.md`); images and masks downloaded by the user | Everything in this benchmark that is derived from these datasets is for non-commercial research use. Cite the datasets you use (see the root README).