CONTEXT-PCa: Evaluating the role of clinical context in MRI-based AI for detecting clinically significant prostate cancer (study protocol)
Authors: Shiqi Huang, Weixi Yi, Shaheer Ullah Saeed, Yipei Wang, Wen Yan, Natasha Thorley, Shonit Punwani, Aqua Asif, Alexander Ng, Veeru Kasivisvanathan, Mark Emberton, Yipeng Hu
Organizations: UCL Hawkes Institute, University College London, London, UK · Department of Medical Physics and Biomedical Engineering, University College London, London, UK · Centre for Bioengineering, Queen Mary University of London, London, UK · School of Engineering and Materials Science, Queen Mary University of London, London, UK · Digital Environment Research Institute, Queen Mary University of London, London, UK · Centre for Medical Imaging, University College London, London, UK · Department of Radiology, University College London Hospitals NHS Foundation Trust, London, UK · Division of Surgery and Interventional Science, University College London, London, UK · Centre for Urology Imaging, Prostate, AI and Surgical Studies (COMPASS) Research Group, University College London, London, UK · Department of Urology, University College London Hospitals NHS Foundation Trust, London, UK · Department of Urology, Comprehensive Cancer Center, Medical University of Vienna, Vienna, Austria
The objective of this study is to investigate the role of clinical variables - their breadth, source, and quality - in the development, utility, and generalisability of an AI system for bi-parametric MRI (bpMRI)-based diagnosis of clinically significant prostate cancer (csPCa). Clinical context is added to the published PI-CAI-2B image-only model, whose weights are fixed. The study cohort comprises 6,022 biparametric MRI cases from 4,540 patients at University College London Hospitals NHS Foundation Trust (2019-2024), of which 4,834 cases (3,632 patients) are held out for internal testing. Forty-three clinical variables are drawn from structured health records, clinical letters, MRI reports, and automated image measurements. The primary endpoint is the difference in the area under the receiver operating characteristic curve (AUROC) between the image-context and image-only models on the internal test set. Secondary analyses compare combining strategies, the contribution of individual variables, and performance across subgroups. All models are further tested on five external cohorts from primary diagnosis and population-based screening.
Figures & tables
Adult men seen at UCLH for suspected or known prostate cancer (April 2019 – March 2024) Npatients=8,157
▼→
National Data Opt-Out : Npatients=23 No MRI procedure recorded : Npatients=12 MRI not linked to an imaging study : NMRI cases=332 ( Npatients=58 ) Participants in the PRIME or ReIMAGINE study : NMRI cases=290 ( Npatients=79 )
Npatients=7,985 ; NMRI cases=12,902
▼→
Directly indicated as post-treatment MRI or no matched MRI report in the source records NMRI cases=5,558 ( Npatients=2,636 )
Npatients=5,349 ; NMRI cases=7,344
▼→
csPCa status not ascertainable NMRI cases=196 ( Npatients=164 )
Npatients=5,185 ; NMRI cases=7,148
Figure 1: Flow of patients and MRI cases into the UCLH study cohort, and its division into adaptation, validation, and internal test sets. Exclusion boxes give the patients who had any excluded case, so patient counts in successive boxes need not differ by that number.
Clinic letter Dear Dr [GP] , I reviewed [PATIENT] in clinic today. He has type 2 diabetes and hypertension, both well controlled. His father was diagnosed with prostate cancer aged 71. He is an ex-smoker (stopped 2009).
Figure 2: Data sources and the route by which each reaches the analysis dataset. The excerpts are illustrative synthetic examples, not real patient records. Shading marks the report section to which the keyword rules of Table S1 apply, and the placeholders substituted during pseudonymisation.
Sequence
Purpose
Key Parameters
T2-weighted imaging (T2W)
Anatomical and zonal assessment and lesion morphology
High-resolution T2W imaging
High b -value diffusion-weighted imaging (HBV)
Detection of restricted diffusion and lesion conspicuity
High b -value ≥ 1400 s/mm 2
Apparent diffusion coefficient (ADC) map
Quantitative assessment of diffusion restriction
Calculated from diffusion-weighted imaging (DWI) acquired at multiple b -values
Table 1: Bi-parametric MRI sequences used as imaging predictors.
Variable
Source
Type
Transform
Normalisation
I. Patient context
Age
Structured EHR
Continuous
None
Z-score
Ethnicity
Structured EHR
Categorical (6)
One-hot encoded
None
Height (cm)
Structured EHR
Continuous
None
Z-score
Weight (kg)
Structured EHR
Continuous
None
Z-score
BMI (kg/m 2 )
Structured EHR
Continuous
log(x+1)
Z-score
Table 2: Clinical predictor variables, data sources, types, and preprocessing.
Characteristic
Value
Total eligible MRI cases
7,171
Total patients
5,208
csPCa positive (ISUP ≥ 2)
2,448 (34.1%)
csPCa negative
4,723 (65.9%)
Median age at MRI (IQR)
66 (60-73) years
Table 3: Summary of cohort characteristics. Counts and the age distribution are given per MRI case unless stated otherwise.
Term
Definition
Image-only model
Model using bpMRI predictors alone (T2W, high b-value DWI, and ADC): PI-CAI-2B in its image-only configuration, with fixed weights (Section 7.2 ).
Context-only model
Model using clinical predictors without the image encoder. Group III predictors, although computed from the MRI, enter as scalar features and are included. If not specified, this refers to the full clinical predictor set.
Image-context model
Any model combining bpMRI with one or more clinical predictors.
Full clinical predictor set
All clinical predictors included in Table 2 .
Full image-context model
Image-context model combining bpMRI with the full clinical predictor set.
Table 4: Model terminology.
Strategy
Modulated signal h
Early combining
Output of the first encoder block: image feature maps at full spatial resolution.
Mid combining
Output of the encoder bottleneck: the most compressed image representation.
Late combining
Case-level score of the image model, on the logit scale.
Table 5: Image-context combining strategies.
Metric
Definition
Question it answers
AUC-ROC
Area under the receiver operating characteristic curve
Overall discrimination, independent of threshold
AUPRC
Area under the precision-recall curve
Discrimination in the positive class, which ROC can flatter
Sensitivity, specificity
At the prespecified operating points (95% and 90% sensitivity)
Performance where the biopsy decision is made
PPV, NPV
Predictive values at the same operating points
How a prediction should change management
Calibration
Calibration plot, calibration slope and intercept, Brier score
Whether predicted risks can be believed as probabilities
Net benefit
Decision curve analysis across clinically plausible threshold probabilities
Whether adding clinical context is worth acting on
Table 6: Prespecified panel of performance metrics. All are reported for every model.
Cohort
Setting and population
Clinical predictors
Outcome
PRIME ( Ng et al.,, 2025 )
Primary diagnosis. International multicentre randomised trial comparing biparametric with multiparametric MRI. External test cohort of the SCARLET-1 study.
Age, PSA, prostate volume, PSA density, ethnicity, DRE, family history of prostate cancer, comorbidities, obesity
Biopsy grade group; unbiopsied men are labelled only as the trial reference standard allows
ReIMAGINE ( Marsden et al.,, 2022 )
Primary diagnosis. UK multicentre prospective cohort of men referred for MRI with suspected prostate cancer and a suspicious MRI (score ≥ 3).
PSA, prostate volume from the MRI report; PSA density derived
Biopsy Gleason grade; the overall or maximal grade rule is fixed before analysis
BiopsyUS ( Urological Research Network,, 2023 ; Min et al.,, 2025 )
Diagnosis. US registry of men undergoing MRI/ultrasound-guided biopsy (NCT02381990); 1,898 patients, 1,976 studies.
Age, derived from dates; prostate volume from segmentation
Core-level ISUP grade group; case label from the highest grade
STHLM3-MRI ( Eklund et al.,, 2021 )
Population-based screening, Stockholm, Sweden. External test cohort of the SCARLET-1 study.
Age, PSA, prostate volume
Grade group ≥ 2 by the trial reference standard
IP1-PROSTAGRAM ( Eldred-Evans et al.,, 2021 )
Population-based screening, London, UK. External test cohort of the SCARLET-1 study.
Age, PSA, prostate volume, ethnicity
Grade group ≥ 2 by the trial reference standard; few positive cases limit precision
Table 7: External testing cohorts. Clinical predictors are those recorded in each cohort, before mapping to the definitions of Table 2 .
Bias Type
Risk
Expected Impact
Mitigation and Remaining Issues
Information bias
Variable MRI quality across scanners, protocols, and time; inter-reader variability in the radiologist score, and possible variation in the scale used
Low
Standardised preprocessing; as a pioneering protocol, remaining scanner-, protocol-, and reader-related effects will be further assessed through external validation
Measurement bias (image-derived features)
Adipose tissue classified by signal intensity rather than by a fat-specific sequence; seminal vesicle fluid may be counted as fat near the gland base; volumes underestimated where the gland exceeds the field of view
Moderate
Quality control and segmentation validation (Sec. 5.6 ); sensitivity analyses on band width and gland truncation (Sec. 7.11 ); thresholds are cohort-specific and not transferable to other protocols
Adjustment using available covariates and sensitivity analyses; residual confounding remains an open research question
Missing data bias
Differential missingness (8–78% across variables); LLM-extracted variables may have systematic extraction failures
High
Missing-data handling is variable-dependent and follows the procedures described in Sec. 5.4 and 5.5 , including missingness-aware modelling, sensitivity analyses, and validation of LLM-derived variables against manual review
Algorithmic bias
Performance disparity across demographic subgroups
Low
Comparative evaluation across combining strategies (Sec. 7.3.3 ), together with subgroup analyses (Sec. 7.10 ), will identify potential algorithm-dependent disparities and inform future mitigation and external validation
Table 8: Additional sources of bias and mitigation strategies.
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
ID
Pattern (case-insensitive)
Rationale
Exclusion patterns (evaluated first; a match prevents any label being assigned)
E1
suspicio(us|n) , concerning (unnegated)
Any surviving expression of suspicion is incompatible with an explicitly negative report
E2
equivocal , indeterminate , borderline
Diagnostic uncertainty; the case should be resolved by biopsy rather than by rule
E3
cannot (be )?exclude(d)? , not excluded
Explicit non-exclusion of malignancy
E4
recommend(ed)? biopsy , for biopsy , proceed to biopsy
Onward action implying residual suspicion
E5
extracapsular extension , seminal vesicle invasion , ECE , SVI
Staging features of established disease
Appendix
Table S1: Radiology report keyword rules applied at step 4 of outcome labelling. Patterns are shown in a simplified regular-expression notation; alternation is denoted by a vertical bar and optional elements by a question mark.
Variable
Permitted values
Extraction instruction
From radiology reports
Radiologist score
Integer 1–5
Return the highest level-of-suspicion score stated for any lesion, whether reported as a PI-RADS category or as a Likert score. Where several lesions are scored, return the maximum. Record which scale was used in the paired score_scale field. Do not infer a score from a narrative description of suspicion.
Lesion count
Integer ≥ 0
Count lesions explicitly enumerated or individually described. Where the report states that no lesion is present, return 0. Where lesions are referred to collectively without enumeration, return null.
From histopathology reports
Gleason score
String, a+b
Return the highest Gleason score across all cores in the specimen. Where primary and secondary patterns are reported separately, combine them in the stated order.
ISUP grade group
Integer 1–5
Return the grade group as stated. Where only a Gleason score is given, return null; the mapping is applied during post-processing rather than by the model.
Appendix
Table S2: Per-variable extraction schema, covering only those variables sourced from free text (Table 2 , source LLM ) together with the report fields used for outcome labelling. Every field additionally accepts null , and every field has a paired _evidence field holding the supporting quotation.
Variable
n
Same-model agreement
Between-model agreement
F 1 vs consensus
Discrepancies by cause
One row per variable in Table S2 ; completed on study execution.
Appendix
Table S3: Reporting template for duplicate extraction and adjudicated re-review. One row per variable.
Artificial intelligence (AI) analysis of micro-ultrasound (μUS) has shown promise for prostate cancer (PCa) detection. However, most existing AI methods focus on the analysis of single μUS images in isolation. By contrast, expert μUS readers typically assess a full recorded video study, which provides three-dimensional context, to improve PCa detection compared to single-frame analysis. Inspired by this clinical workflow, we propose Compass, a novel AI methodology which models a μUS study as a stream of 2D images. Compass jointly integrates rotational sweep videos of the prostate with μUS frames acquired at the moment of biopsy, and performs evidence aggregation across the study using a transformer conditioned on the probe's rotational angle. Finally, a decoder head predicts frame-level and study-level risk scores for the patient. The model is trained and evaluated using a multi-center clinical trial dataset of μUS studies, including continuous rotational scans of the prostate and videos captured during biopsy acquisition. We compare the proposed method to baseline AI methods from the literature and to risk scores provided by clinical experts. Our framework shows strong performance, highlighting the value of multi-view context for μUS PCa detection, and providing a potentially powerful tool to complement human expertise in μUS-based PCa diagnosis. Our code is available at: https://github.com/mharmanani/Compass.
Paul F. R. Wilson, Mohamed Harmanani, Zhuoxin Guo +6
Queen’s University, Kingston, Canada · Vector Institute, Toronto, Canada · University of British Columbia, Vancouver, Canada +3
Deep learning models for prostate MRI-based cancer grading may encode clinical covariates that either reflect useful disease-related signal or non-generalising shortcut information, but their role is usually assumed. We propose a causal-reasoning framework for probing covariate dependence in MRI-based International Society of Urological Pathology (ISUP) Grade Group prediction. Rather than treating mpMRI as a direct cause of grade, we model MRI appearance and ISUP grade as observations of latent tumour pathology, and test whether candidate clinical variables act as nuisance correlates, disease-related proxies, or irrelevant covariates in the learned representation. We implement this using an adversarial framework that suppresses the decodability of individual clinical covariate at a time while preserving MRI-based grade prediction. The approach is developed and evaluated on 2,903 prostate MRI examinations, with external validation on 576 patients. We report a set of interesting and previously under-explored imaging-to-clinical-variable interactions in the context of deep learning generalisation. For examples, in binary ISUP Grade Group ≥2 classification, suppressing age, BMI, and alcohol use improved AUC by 1.23%, 0.84%, and 1.42%, respectively (all p < 0.05), suggesting reduced non-generalising covariate information; In contrast, suppressing PSA and prostate volume degraded AUC by 1.91% and 7.61% (all p < 0.001), indicating that these variables carried task-relevant signal. These findings show that adversarial covariate suppression can provide a practical representation-level analysis for distinguishing potentially harmful dependence from informative signal in prostate MRI grading models.
Yipei Wang, Shiqi Huang, Wen Yan +6
UCL Hawkes Institute, University College London, London, UK · Department of Medical Physics and Biomedical Engineering, University College London, London, UK · Department of Urology, University College London Hospital, London, UK +4
Prostate cancer is a leading cause of mortality in men, yet interpretation of T2-weighted prostate MRI remains challenging due to subtle and heterogeneous lesions. We developed an interpretable framework for automatic cancer detection using a small dataset of 162 T2-weighted images (102 cancer, 60 normal), addressing data scarcity through transfer learning and augmentation. We performed a comprehensive comparison of Vision Transformers (ViT, Swin), CNNs (ResNet18), and classical methods (Logistic Regression, SVM, HOG+SVM). Transfer-learned ResNet18 achieved the best performance (90.9% accuracy, 95.2% sensitivity, AUC 0.905) with only 11M parameters, while Vision Transformers showed lower performance despite substantially higher complexity. Notably, HOG+SVM achieved comparable accuracy (AUC 0.917), highlighting the effectiveness of handcrafted features in small datasets. Unlike state-of-the-art approaches relying on biparametric MRI (T2+DWI) and large cohorts, our method achieves competitive performance using only T2-weighted images, reducing acquisition complexity and computational cost. In a reader study of 22 cases, five radiologists achieved a mean sensitivity of 67.5% (Fleiss Kappa = 0.524), compared to 95.2% for the AI model, suggesting potential for AI-assisted screening to reduce missed cancers and improve consistency. Code and data are publicly available.
Vahid Monfared, Mohammad Hadi Gharib, Ali Sabri +4
Department of Computer Science, Boston University Metropolitan College, Boston, MA, USA · MD, Clinical Fellow, Department of Radiology, McMaster University, Ontario, Canada · Department of Radiology, School of Medicine, 5th Azar Hospital, Radiology, Golestan University of Medical Sciences, Gorgan, Iran +6