Lab book · TRIDENT colour-profile rerun · built by scripts/04_labbook_icc.py
TRIDENT on paired PLISM scans, with each scan's embedded colour profile applied
Same 26 scans, TRIDENT commit, weights, settings, fields and scoring as the original TRIDENT study (../trident-plism). One change: every region TRIDENT reads is converted from the scan's embedded profile ("AT2" or "Segue_v2") to sRGB. Applied, the profiles take Otsu from 28 to 4 switched fields of 156, GrandQC from 1 to 0 and HEST from 6 to 0. HEST with artifact removal goes from 26 to 53.
1. Record
- Plan frozen before any run:
PLAN.md, SHA-256f23b63fa359c944c091f259a6d9745cc630615958cf77770cd38a19972abc442, 2026-11-25T00:06:04Z. Arms run in the planned order byrun_chain.sh; scoring byscripts/03_score_icc.py(the original03_score.pylogic, arms changed). - TRIDENT c07bf25, linked in place and unedited; the conversion is a run-time wrapper on
openslide.OpenSlide.read_region. Python 3.11.17, torch 2.15.0, OpenSlide 4.0.1. TRIDENT is CC BY-NC-ND; none of its code is copied here.
| arm | segmenter | device | conversion | region reads | profiles applied | time |
|---|---|---|---|---|---|---|
gate_otsu | otsu | cpu | False | 1,088 | none | 2 min |
gate_grandqc | grandqc | mps | False | 750 | none | 46 min |
icc_otsu | otsu | cpu | True | 1,088 | AT2, Segue_v2 | 2 min |
icc_grandqc | grandqc | mps | True | 750 | AT2, Segue_v2 | 38 min |
icc_hest | hest | mps | True | 59,404 | AT2, Segue_v2 | 8.1 h |
icc_hest_artifacts | hest | mps | True | 82,412 | AT2, Segue_v2 | 17.6 h |
2. Gate
With the wrapper on and conversion off, Otsu and GrandQC regions equal the original study's on all 26 scans each (zero symmetric difference). The wrapper alone changes nothing. Pass.
3. Fields switched, of 156
| segmenter | original (AT2-only / GT450-only) | profile applied | GT450/AT2 tissue area, original: median [range] | profile applied |
|---|---|---|---|---|
| Otsu | 28 (18 / 10) | 4 (2 / 2) | 0.933 [0.596, 8.405] | 1.018 [0.944, 1.074] |
| GrandQC | 1 (0 / 1) | 0 (0 / 0) | 0.992 [0.975, 1.048] | 0.995 [0.987, 1.008] |
| HEST | 6 (3 / 3) | 0 (0 / 0) | 0.978 [0.941, 1.144] | 1.020 [0.996, 1.050] |
| HEST + artifact removal | 26 (10 / 16) | 53 (6 / 47) | 0.998 [0.802, 1.990] | 1.324 [1.271, 1.621] |
AT2-only is a field admitted on AT2 and not on GT450; GT450-only the reverse. No region in any colour-profile arm fell below 10% of its pair.
4. Fields admitted
| segmenter | admitted on AT2, original → profile | on GT450 | on both | AT2 decisions changed | GT450 decisions changed |
|---|---|---|---|---|---|
| Otsu | 142 → 147 | 134 → 147 | 124 → 145 | 13 | 15 |
| GrandQC | 155 → 156 | 156 → 156 | 155 → 156 | 1 | 0 |
| HEST | 152 → 155 | 152 → 155 | 149 → 155 | 3 | 3 |
| HEST + artifact removal | 130 → 101 | 136 → 142 | 120 → 95 | 45 | 16 |
5. HR, the section where artifact removal took most of the tissue originally
| segmenter | HR tissue mm², AT2 / GT450, original | profile applied |
|---|---|---|
| Otsu | 19.8 / 166.0 | 161.6 / 165.3 |
| GrandQC | 184.5 / 193.3 | 195.4 / 193.6 |
| HEST | 146.9 / 168.1 | 170.8 / 173.4 |
| HEST + artifact removal | 20.6 / 40.9 | 106.6 / 166.3 |
6. The artifact step, by section
Tissue area after artifact removal as a share of the HEST region before it, in the same colour handling. Areas come from each arm's own regions.
| section | AT2 kept, original | GT450 kept, original | AT2 kept, profile | GT450 kept, profile | switched with profile, AT2-only / GT450-only |
|---|---|---|---|---|---|
| GIV | 91% | 95% | 62% | 92% | 0 / 6 |
| GIVH | 96% | 98% | 79% | 99% | 1 / 0 |
| GM | 88% | 83% | 61% | 75% | 2 / 3 |
| GMH | 97% | 101% | 79% | 100% | 0 / 2 |
| GV | 90% | 99% | 74% | 97% | 0 / 5 |
| GVH | 97% | 100% | 75% | 99% | 1 / 1 |
| HR | 14% | 24% | 62% | 96% | 0 / 5 |
| HRH | 95% | 99% | 77% | 98% | 0 / 4 |
| KR | 85% | 99% | 76% | 95% | 0 / 3 |
| KRH | 97% | 100% | 74% | 98% | 0 / 4 |
| LM | 79% | 77% | 46% | 69% | 0 / 6 |
| LMH | 95% | 100% | 70% | 99% | 0 / 5 |
| MY | 89% | 72% | 48% | 75% | 2 / 3 |
| all, pooled area | 86% | 88% | 68% | 92% | 6 / 47 |
With the profile applied, the artifact step keeps a smaller share of AT2 tissue than in the original run on 12 of 13 sections; HR is the exception, where it keeps more on both scanners. GT450's share moves by at most 8.2 percentage points from its original value except on HR. The result is a GT450 region larger than the AT2 region on 13 of 13 sections, and 47 of the 53 switched fields are admitted on GT450 only. HEST alone switches 0 fields under the same conversion, so the added switches come from the artifact step. For reference, on 2000-pixel OpenSlide thumbnails with the profiles applied, AT2 tissue is brighter than GT450 tissue on 13 of 13 sections (median tissue luma; ../plism-icc/thumbnail_check.json); without them it is darker on all 13.
7. Scope
Same array, scanners, software and settings; only the colour conversion changes. One rendering intent. Thirteen serial, differently stained sections of one mixed-tissue TMA; two scanners from one vendor. Descriptive: it does not say which region is right. The segmentation and artifact models were trained on images whose colour handling is not known here, so converted pixels are not assumed to be closer to their training data.
8. Files
PLAN.md, PLAN.sha256, PLAN.frozen_at.txt; run_chain.sh; scripts/02_segment_icc.py, scripts/gate_check.py, scripts/03_score_icc.py, scripts/04_labbook_icc.py; out/<arm>/ (regions, thumbnails, run metadata); results/ (gate.json, summary.json, sections.csv, fields.csv, scans.csv); logs/.