# Atlas curation protocol, fixed before image-text scoring

Source annotation: GleasonXAI Figshare 27301845, final_filtered_explanations_df.csv, MD5 0b8df8458572c9e05a574fb656a61a38; archive TissueArray MD5 ee56818fba3466a757d94815e565b53d. Region records in phase1/data/results/regions.jsonl retain original non-imputed rows and recorded IDs. Frozen test membership phase8/core-audit.tsv reconstructs the published split (711/152/152, seed 95967); it is not proof of the checkpoints' historical holdout. Exclude five original demo core IDs. Use all available native images across TissueArray, Harvard and Gleason2019 test sources; missing test core list is missing.json. Remove known grade-conflicting source annotation rows 841, 6643 and 6644 before analysis. This image availability restriction must accompany all reported counts. Recorded annotator IDs are not independently verified human identities, and core counts are not patients.

Eight mapping categories use exact published level-1 names in phase1/data/results/catalog8.json, including 'variable sized well-formed individual and discrete glands'; the separate compressed/angular category is not silently combined. Same-reader polygons are unioned. At native pixel centers use polygon intersections for >=2 and >=3 recorded IDs, and count only pixels satisfying tissue proxy (RGB channel maximum minus minimum >=20 and minimum <=235). Any/2/3 counts are distinct core counts with at least one qualifying tissue pixel; they are not sufficient evidence for crop eligibility. Self-intersections are repaired via Shapely make_valid. Dimensions and original source hashes are in candidates.csv.

Prespecified representative selection: Exclude Gleason2019 images from the public representative pool because the challenge rules prohibit redistribution, while retaining them in the inventory and eligible crop counts. Harvard source is CC0 and TissueArray source is CC BY 4.0. native crop side round(117.76 / micrometres per pixel), 0.5455 for TissueArray, 0.23 Harvard and 0.25 Gleason 2019. Candidate grid stride round(side/16), including last possible edge. An eligible window must have at least 50% of all crop pixels tissue and at least 50% of all crop pixels both target-marked and tissue, for a given agreement level. Select highest agreement level (3, then 2, then 1), then maximize fraction of eligible tissue pixels marked at that level; ties maximize marked tissue count, then core ID, row, column. This tissue denominator and all-pixel denominator are separately recorded. No model rank is consulted. A sole annotator is explicitly weaker evidence than agreement; absent valid windows produce null. Other labels in a crop remain possible: target coverage does not establish diagnosis of every pixel.

Benign is a separate control cohort: 10 TissueArray cores with explicit vendor normal type and prostate tissue, excluding invalid PR482a_F2; phase33/vendor/source-audit.md records product sheets, tissue identifier reuse and contradictory-label exclusions. These cores have no pixel reader-agreement evidence and are not part of reconstructed GleasonXAI annotated split. Windows were preselected in phase33 using maximum tissue pixels at 216 x 216, tie by distance to tissue centroid then y,x. Pick highest tissue pixel count, then core ID; no model result input. The 10 cores contain seven vendor tissue IDs, not 10 independently verified patients. Do not combine with the distinct Harvard benign-mask cohort.

Catalog representative uses a lossless PNG of native RGB pixels, verified on save; source image bytes are saved separately with SHA-256 and overview is downsampled and the UI draws the crop box. Coordinates are x,y,width,height in the original image, zero-based and half-open. candidate_cores counts any marked tissue even if crop cannot pass the minimum; agreement_2/3 use pixel overlap, never count number of readers on a core alone. See curate.py, candidates.csv and missing.json.

## Sources and reproducibility

- [GleasonXAI annotations and TissueArray images](https://doi.org/10.6084/m9.figshare.27301845.v1), CC BY 4.0; Laiouar-Pedari et al., “Pathologist-like explainable AI for interpretable Gleason grading in prostate cancer.”
- [Harvard Dataverse prostate TMA images](https://doi.org/10.7910/DVN/OCYCMP), CC0; Arvaniti et al., “Replication Data for: Automated Gleason grading of prostate cancer tissue microarrays via deep learning.”
- [TissueArray PR482a](https://www.tissuearray.com/PR482a), [PR482a specification](https://resources.amsbio.com/Datasheets/PR482a.pdf), and [TissueArray PR633a](https://www.tissuearray.com/tissue-arrays/Prostate/PR633a): vendor normal controls.

The local research audit retains the script `phase43/curate.py`, eight intermediate shard records, `missing.json`, the frozen split and source archives; `candidates.csv` provides the eligible window and pixel counts per candidate core. The current complete census has zero missing native test images. Original source bytes and decoded RGB crop hashes were independently rechecked after packaging. The overview is a visual aid, not the source image or model input.
