Learning Prostate Anatomy at Test Time for Cancer Detection in Micro-Ultrasound
Organizations: Department of Electrical and Computer Engineering, University of British Columbia, Vancouver, Canada · Vector Institute, Toronto, Canada · School of Computing, Queen’s University, Kingston, Canada · Ordensklinikum Linz, Linz, Austria · Department of Surgery, University of Alberta, Edmonton, Canada · Exact Imaging, Markham, Canada
Abstract
Domain shift across clinical centers using different imaging hardware or acquisition protocols remains a fundamental barrier to deploying deep learning models for prostate cancer (PCa) detection. Existing test-time adaptation (TTA) methods address distribution shift through entropy minimization or augmentation-based self-supervision, correcting for statistical differences in image appearance but ignoring the anatomical structure of the target domain. We propose ANT, a segmentation-guided TTA framework that adapts a pretrained cancer detection encoder to the target domain by solving an auxiliary prostate segmentation task at test time, supervised by pseudo-masks from a frozen pretrained segmentation network. By aligning encoder representations to prostate anatomy in the target domain, ANT corrects domain-specific feature drift while preserving cancer-discriminative structure. The model was trained on 693 patients imaged with an earlier-generation micro-ultrasound scanner in a multi-center clinical trial, and evaluated on 118 patients acquired with a newer-generation system across two centers in another clinical trial. Under a leave-one-center-out protocol with identical evaluation conditions across all methods, ANT improves mean AUC by 2.9% and 3.6% at the biopsy-core and patient levels, respectively, over no adaptation, outperforming TTA baselines. Code is available at: https://github.com/ObedDzik/ant.git.
Figures & tables
| Center | Patients | Cores | Cancer % |
|---|---|---|---|
| A (source) | |||
| B | |||
| C |
| Patient-Level csPCa AUC | Core-Level csPCa AUC | Core-Level PCa AUC | ||||
|---|---|---|---|---|---|---|
| Method | B | C | B | C | B | C |
| No adaptation | 73.8 (68.5 – 79.3) | |||||
| MEMO ( Zhang et al., 2022 ) | ||||||
| TENT ( Wang et al., 2020 ) | ||||||
| EATA ( Niu et al., 2022 ) | 74.9 (71.0 – 77.2) | |||||
| CoTTA ( Wang et al., 2022 ) | ||||||
| Sensitivity @ 60% Specificity (%) | Sensitivity @ 80% Specificity (%) | |||
| Method | B | C | B | C |
| No adaptation | ||||
| MEMO ( Zhang et al., 2022 ) | ||||
| TENT ( Wang et al., 2020 ) | ||||
| EATA ( Niu et al., 2022 ) | ||||
| CoTTA ( Wang et al., 2022 ) | ||||
| PCa AUC (%) | csPCa AUC (%) | |||||||
|---|---|---|---|---|---|---|---|---|
| Dice Tertile | Dice Median (Range) | ANT | Baseline | ANT Base | ANT | Baseline | ANT Base | |
| Low | 11 | 4/11 | 3/3 | |||||
| Mid | 10 | 3/10 | 5/5 | |||||
| High | 11 | 6/11 | 4/6 | |||||
| Overall | 32 | - | - | 13/32 | - | - | 12/14 | |
| Patient-Level csPCa AUC | Core-Level csPCa AUC | Core-Level PCa AUC | ||||
| Method | Center B | Center C | Center B | Center C | Center B | Center C |
| PNF+ ( Wilson et al., 2026 ) | ||||||
| PNF+ + ANT (ours) | 72.8 (68.3 – 77.4) | 80.5 (69.7 – 88.8) | 73.9 (69.8 – 78.0) | 78.2 (66.5 – 87.1) | ∗ 73.1 (70.4 – 76.3) | 65.2 (59.3 – 70.5) |
| Sensitivity @ 60% Specificity (%) | Sensitivity @ 80% Specificity (%) | |||
| Method | B | C | B | C |
| PNF+ ( Wilson et al., 2026 ) | 58.4 (30.4 – 87.5) | |||
| PNF+ + ANT (ours) | 78.9 (70.6 – 86.4) | 85.5 (65.0 – 100.0) | 46.0 (36.2 – 56.7) | |
| Update target | Position | Patient-Level (csPCa) | Core-Level (csPCa) | Core-Level (PCa) |
|---|---|---|---|---|
| Layer position and parameter type | ||||
| Full blocks | First | 82.1 | 84.4 | 72.7 |
| Full blocks | Middle | 73.6 | ||
| Full blocks | Last | |||
| Full blocks | All blocks | |||
| Norm only | First | |||
| Inner steps | Patient-Level (csPCa) | Core-Level (csPCa) | Core-Level (PCa) |
|---|---|---|---|
| 0(w/o ANT) | |||
| 2 | |||
| 5 | |||
| 10 | 82.1 | 84.4 | 72.7 |
| 20 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| TTA learning rate ( ) | |
| Encoder learning rate ( ) | |
| Inner steps ( ) | 10 |
| Blocks to adapt ( , DINOv3) | 6 |
| Blocks to adapt ( , MedSAM) | 3 |
| Segmentation head hidden dim | 256 |
| Method | Time (s) |
|---|---|
| No adaptation | |
| TENT | |
| EATA | |
| ROID | |
| SAR | |
| CoTTA |
| Patient-Level csPCa AUC (%) | Core-Level csPCa AUC (%) | Core-Level PCa AUC (%) | ||||
|---|---|---|---|---|---|---|
| Ordering | B | C | B | C | B | C |
| Fixed order | ||||||
| Random order | ||||||
| Subgroup (Involvement) | Baseline ECE (%) | ANT ECE (%) | ECE (%) | |
|---|---|---|---|---|
| Overall | 1,118 | 7.6 | 2.7 | |
| Low | 161 | 29.7 | 32.0 | |
| Mid | 93 | 19.6 | 16.5 | |
| High | 131 | 14.3 | 13.8 |