Prediction of TP53 biomarkers and survival outcomes from whole slide images using a vision transformer-based multi-instance learning framework

preprint OA: closed
📄 Open PDF Full text JSON View at publisher

Abstract

ABSTRACT Background Accurate molecular profiling and prognostication from routine histopathology slides could transform precision oncology. We developed a Vision Transformer (ViT)-based multi-instance learning (MIL) framework for combined predictions of 32 solid tumour types, TP53 biomarker detection, and survival prediction directly from Whole Slide Images (WSIs). Methods 11,060 primary tumours were curated from the TCGA Pan-Cancer Atlas with corresponding somatic mutations, RNA-seq, and clinical outcome data. TP53 alterations were classified as pathogenic drivers using COSMIC and hotspot annotations. WSIs underwent tissue masking, quality control, stain normalisation, and patch extraction (518 x 518) at 6x downsampling. Each patch was encoded by a ViT into a 768-dimensional embedding, which formed a token sequence for a 6-layer Transformer aggregator with learnable classification and positional embeddings. Seven task heads were developed to generate predictions for various outcomes, including cancer type, TP53 mutation status, TP53 RNA expression levels, overall survival (OS), progression-free interval (PFI), and the corresponding times for OS and PFI. The training process had two stages. First, the model was trained on tumour tissue patches from WSIs at five magnifications. In the second stage, it was fine-tuned using patches from all tissue regions with a content-aware strategy, updating all MIL layers for a maximum of 150 epochs at a learning rate of 1 × 10⁻⁵. The model’s performance was evaluated on an independent validation set of 1,729 slides using classification metrics, including the area under the receiver operating characteristic curve (AUROC), regression metrics, and Concordance indices (C-index). Results The multi-resolution ViT-based MIL model achieved an AUROC of 0.775 (95% CI: 0.749–0.801) for TP53 mutation detection on the validation set, demonstrating strong overall performance across classification and survival prediction tasks. The fine-tuned model attained robust performance across the tasks, with 0.7569 accuracy for cancer classification, 0.745 AUROC for TP53 mutation detection, C-indices of 0.686 and 0.650 for OS and PFI, and a mean squared error of 1.072 for TP53 RNA expression level estimation. The fine-tuned model attained an accuracy of 65.9% (95% CI: 0.636–0.681) in tumour classification and an AUROC of 0.766 (95% CI: 0.743–0.789) for detecting TP53 mutations on the external validation set. However, most tumour classes, aside from ovarian cancer, reached an AUROC above 0.88 with class-specific thresholding using the Youden Index. This indicates strong generalisation across 32 tumour types, providing reasonable molecular profiling but offering limited prognostic utility in surgical oncology. Conclusion A ViT-based MIL model can simultaneously infer tumour taxonomy, TP53 mutation status, and TP53 RNA expression levels directly from WSIs, with performance comparable to conventional genomic assays, while prognostic risk remains limited. This integrated, slide-level approach offers a scalable pipeline toward computational pathology.
Full text 55,501 characters · extracted from preprint-html · click to expand
Prediction of TP53 biomarkers and survival outcomes from whole slide images using a vision transformer-based multi-instance learning framework | medRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P4HH5NV'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search Prediction of TP53 biomarkers and survival outcomes from whole slide images using a vision transformer-based multi-instance learning framework View ORCID Profile Abadh K Chaurasia , Patrick W Toohey , Matthew T Bennett , Helen C Harris , View ORCID Profile Alex W Hewitt doi: https://doi.org/10.1101/2025.11.11.25340052 Abadh K Chaurasia 1 Menzies Institute for Medical Research, University of Tasmania , Australia 2 Pandani Solutions Pty Ltd , Hobart, Australia Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Abadh K Chaurasia For correspondence: abadh.chaurasia{at}utas.edu.au Patrick W Toohey 2 Pandani Solutions Pty Ltd , Hobart, Australia Find this author on Google Scholar Find this author on PubMed Search for this author on this site Matthew T Bennett 2 Pandani Solutions Pty Ltd , Hobart, Australia Find this author on Google Scholar Find this author on PubMed Search for this author on this site Helen C Harris 3 Department of Pathology, Royal Hobart Hospital , Hobart, Australia Find this author on Google Scholar Find this author on PubMed Search for this author on this site Alex W Hewitt 1 Menzies Institute for Medical Research, University of Tasmania , Australia 4 School of Medicine, University of Tasmania , Australia Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Alex W Hewitt Abstract Full Text Info/History Metrics Supplementary material Data/Code Preview PDF ABSTRACT Background Accurate molecular profiling and prognostication from routine histopathology slides could transform precision oncology. We developed a Vision Transformer (ViT)-based multi-instance learning (MIL) framework for combined predictions of 32 solid tumour types, TP53 biomarker detection, and survival prediction directly from Whole Slide Images (WSIs). Methods 11,060 primary tumours were curated from the TCGA Pan-Cancer Atlas with corresponding somatic mutations, RNA-seq, and clinical outcome data. TP53 alterations were classified as pathogenic drivers using COSMIC and hotspot annotations. WSIs underwent tissue masking, quality control, stain normalisation, and patch extraction (518 x 518) at 6x downsampling. Each patch was encoded by a ViT into a 768-dimensional embedding, which formed a token sequence for a 6-layer Transformer aggregator with learnable classification and positional embeddings. Seven task heads were developed to generate predictions for various outcomes, including cancer type, TP53 mutation status, TP53 RNA expression levels, overall survival (OS), progression-free interval (PFI), and the corresponding times for OS and PFI. The training process had two stages. First, the model was trained on tumour tissue patches from WSIs at five magnifications. In the second stage, it was fine-tuned using patches from all tissue regions with a content-aware strategy, updating all MIL layers for a maximum of 150 epochs at a learning rate of 1 × 10⁻⁵. The model’s performance was evaluated on an independent validation set of 1,729 slides using classification metrics, including the area under the receiver operating characteristic curve (AUROC), regression metrics, and Concordance indices (C-index). Results The multi-resolution ViT-based MIL model achieved an AUROC of 0.775 (95% CI: 0.749–0.801) for TP53 mutation detection on the validation set, demonstrating strong overall performance across classification and survival prediction tasks. The fine-tuned model attained robust performance across the tasks, with 0.7569 accuracy for cancer classification, 0.745 AUROC for TP53 mutation detection, C-indices of 0.686 and 0.650 for OS and PFI, and a mean squared error of 1.072 for TP53 RNA expression level estimation. The fine-tuned model attained an accuracy of 65.9% (95% CI: 0.636–0.681) in tumour classification and an AUROC of 0.766 (95% CI: 0.743–0.789) for detecting TP53 mutations on the external validation set. However, most tumour classes, aside from ovarian cancer, reached an AUROC above 0.88 with class-specific thresholding using the Youden Index. This indicates strong generalisation across 32 tumour types, providing reasonable molecular profiling but offering limited prognostic utility in surgical oncology. Conclusion A ViT-based MIL model can simultaneously infer tumour taxonomy, TP53 mutation status, and TP53 RNA expression levels directly from WSIs, with performance comparable to conventional genomic assays, while prognostic risk remains limited. This integrated, slide-level approach offers a scalable pipeline toward computational pathology. INTRODUCTION Histopathology remains the gold standard for diagnosing cancer and identifying prognostic features across most solid tumours. 1 , 2 While routine Haematoxylin and Eosin (H&E) stained Whole Slide Images (WSIs) capture the comprehensive morphological spectrum of tumour architecture, current clinical workflows still depend on additional molecular and genomic assays to identify key alterations such as TP53 mutations. 3 – 6 TP53 , the most commonly altered tumour suppressor gene across human cancers, is an influential genomic biomarker. 7 – 9 Pathogenic driver mutations in TP53 disrupt genomic stability, cell-cycle regulation, and apoptosis, influencing both tumour behaviour and treatment resistance. 10 Thus, accurate diagnosis and molecular profiling are essential for guiding treatment and improving patient outcomes. Additionally, survival outcomes, including overall survival (OS) and progression-free interval (PFI), are equally important in guiding therapeutic decisions. 11 However, these require separate assays: histopathology for tumour classification, sequencing for mutation detection, and statistical modelling for survival analysis — each of which is resource-intensive and often inaccessible in low-resource settings, leading to diagnostic delays and inequitable access to precision oncology. Recent advances in computational pathology and deep learning have enabled the extraction of clinically relevant morphological, prognostic, and molecular features directly from WSIs. 12 These technologies demonstrate promising results in automating tumour classification, biomarker prediction, and survival analysis. However, most existing approaches emphasise single-task objectives and often remain limited to specific cancer types, thus failing to capture the broader potential of integrative pan-cancer analysis. 13 – 16 Moreover, these models typically require large, well-annotated datasets, which are difficult to obtain in histopathology due to the high volume of WSIs and the lack of detailed region-level annotations. This presents a significant challenge for traditional supervised learning methods, which rely on precise annotations to guide model training. In this context, a multi-instance learning (MIL) framework for computational pathology allows models to learn from slide-level labels by aggregating information from multiple patches within each slide, without the need for thorough manual annotation. 17 MIL frameworks demonstrate strong performance across various slide-level tasks, including cancer subtype classification, mutation prediction, and survival modeling. 18 , 19 Among these, attention-based MIL models are particularly effective at capturing both local and global morphological patterns, enabling nuanced interpretation of tumour heterogeneity. 20 In parallel, self-supervised learning methods learn general-purpose visual representations from large-scale unlabeled datasets, which can be fine-tuned for downstream pathology tasks. 21 – 23 To our knowledge, a comprehensive Vision Transformer (ViT)-based MIL framework that simultaneously addresses tumour classification, mutation prediction, TP53 RNA expression quantification, and overall survival modelling has not yet been developed. This leaves a critical gap in the translation of multitask MIL frameworks into a unified, clinically relevant tool that combines diagnostic, molecular, and prognostic information within computational pathology. Herein, we present a multitask, ViT-based MIL framework capable of jointly predicting seven clinically relevant parameters from H&E-stained WSIs. These include pan-cancer classification, TP53 mutation status, TP53 RNA expression level, and four survival-related outcomes. Our approach integrates diagnostic, molecular, and prognostic tasks, associating morphological evaluation with genomic analysis to advance morpho-genomic modelling and support precision oncology across diverse solid tumours. METHODS This study presents a transformer-based MIL model for extracting diagnostic, molecular, and prognostic insights from H&E-stained WSIs, as depicted in Figure 1 . Download figure Open in new tab Figure 1: Overview of the study: schematic workflow for developing and validating a multi-task learning model using Whole Slide Images (WSIs). Cohorts and datasets TCGA Pan-Cancer (PANCAN) We extracted a public somatic mutation dataset from the TCGA Pan-Cancer Atlas. 24 , 25 It contains ∼3 million mutations across 9,107 tumour samples that were annotated with either pathogenic or wild-type TP53 status, based on the presence or absence of alterations in the TP53 gene. TP53 RNA expression levels were obtained from the batch-corrected RNA-Seq dataset. 26 The expression values were extracted for each sample and matched to mutation data using TCGA sample barcodes. This dataset contains normalised mRNA expression profiles for 20,532 genes across 11,060 primary tumour samples from 33 cancer types. Expression values were generated using the RSEM pipeline, batch-effect corrected, and reported as log 2 (norm_value+1). Clinical annotations were obtained for 12,591 tumour samples from the Pan-Cancer Atlas. 27 From this dataset, we extracted cancer type abbreviations and Survival endpoints, including OS and PFI, with corresponding event indicators and follow-up times. Finally, each sample was labelled based on matching barcodes with cancer types, TP53 genomic variants, gene expression, and survival outcomes. TP53 Mutation Classification TP53 mutations were systematically classified into four hierarchical categories for all the slides: pathogenic driver, pathogenic passenger, benign, and wild-type TP53 mutations (Supplemental Figure S1) . A gold-standard driver set was first constructed as the union of all amino acid changes labelled as “Confirmed somatic variant” in the COSMIC Mutant Census (v102) and all variants annotated as “Hotspot = Yes” in the TP53 database. 28 , 29 Variants present in this combined set were assigned as Pathogenic drivers. Pathogenic passenger mutations included variants not in the driver set but predicted to be deleterious or damaging by functional consequence (e.g., nonsense, frameshift, splice-site) or in-silico algorithms (deleterious by Sorting Intolerant From Tolerant (SIFT) or possibly/probably damaging by Polymorphism Phenotyping (PolyPhen). Variants with no evidence of pathogenicity, including synonymous changes, noncoding alterations, or variants predicted as benign by both SIFT and PolyPhen, were assigned to the Benign class. Finally, samples with no TP53 mutation reported in the TCGA MAF file were grouped with the benign variants. At the sample level, a hierarchical rule was applied such that the most severe mutation present determined the final label (Pathogenic driver > Pathogenic passenger > Benign > No TP53 Mutation). Mutation processing, annotation, and classification were performed using custom Python scripts. TCGA-UT Dataset This dataset contains over 1.6 million histological cancerous patches only, extracted from 8,736 diagnostic H&E-stained WSIs from 7,175 patients across 32 solid tumour types. 30 The patches were taken from histologically uniform tumour regions, confirmed by two pathologists, and low-quality slides were excluded during quality control. From each annotated region, 10 patches were randomly sampled at six magnification levels (0.5-1.0 μm/pixel), providing a multi-resolution representation of tissue morphology ( Supplementary Figure S2 ). This multi-resolution dataset captures morphological details at various tissue resolutions, making it a valuable resource for computational pathology. The Cancer Genome Atlas (TCGA) dataset WSIs were downloaded from the Genomic Data Commons (GDC) Data Portal for the sample involved in PANCAN to capture their natural histopathology morphology, including cancerous and non-cancerous tissues. The selection was restricted to cases across 32 solid tumour types for which corresponding molecular and clinical annotations (mutation status, gene expression, and survival outcomes) were available in the TCGA Pan-Cancer Atlas. By aligning to the curated sample set, only WSIs from patients with complete TP53 mutation profiles, RNA-seq expression data, and harmonised clinical endpoints were included in this study, resulting in 7,784 WSIs. These WSIs were then subjected to patch extraction, stain normalisation, and ViT-based feature encoding, providing standardised inputs for our MIL framework. WSIs preprocessing The preprocessing pipeline for WSIs was designed to detect the tissue within a slide, extract patches, and implement strict quality control at the patch level before feature encoding. Each WSI was processed at a low-resolution pyramid level to construct a binary tissue mask. The downsampled RGB image was converted to grayscale and thresholded, with darker pixels considered tissue and lighter pixels considered background. Morphological closing, opening, and dilation operations were applied to smooth contours and fill small gaps. Small connected components (area <5,000 pixels at the mask level) were discarded to remove debris and spurious detections. The mask level and native level-0 geometry were recorded to allow coordinate mapping during tiling. This mask was then upscaled to the corresponding coordinates at the native slide resolution and used to guide subsequent patch selection. Slides were then traversed on a non-overlapping grid whose stride matched the intended field of view. Patches were extracted at an effective 6x downsampling relative to the native resolution, with a fixed size of 518 × 518 pixels. Further, the patches were required to contain sufficient tissue (≥20%) and were rejected if dominated by a near-white background (>90% of pixels near white). Sharpness was quantified by the variance of the Laplacian, and patches that were blurred or out of focus (variance < 100) were discarded. To suppress ink and dark artifacts, patches were transformed to HSV space and rejected if the fraction of very low-saturation, low-value pixels exceeded 2%. Only patches meeting all the criteria were retained, resulting in per-slide collections of artifact-free, tissue-rich patches downsampled to 518 x 518 pixels. MIL architecture and Transformer encoder The weakly supervised MIL architecture utilised a frozen self-supervised ViT backbone (DINOv2; 768-dimensional embeddings) for patch encoding, paired with a six-layer Transformer encoder (12 self-attention heads per layer, feed-forward width 4d, and dropout 0.1) for slide-level aggregation. 31 , 32 For each slide, patch embeddings were arranged into a token sequence with a learnable classification (CLS) token prepended and positional embeddings added; the final hidden state of the CLS token was used as the slide-level representation. Task-specific heads formed even outputs: cancer type, TP53 mutation, TP53 RNA expression levels, OS event, PFI event, and two time-to-event (OS time and PFI time). Training Strategies Slide-level training was conducted in two stages, using the same set of TCGA data and patient-level split (80% training, 20% validation) in both stages, but differing in whether slides contained non-cancerous tissues. Stage 1: Multi-resolution ViT-based MIL model In this stage, the model was trained only on the tumour-containing tissue across six magnifications (0.5–1.0 μm/pixel) of WSIs from the TCGA-UT Dataset. Reinhard stain normalisation was applied to each slide using a fixed reference, followed by light augmentation (resize, horizontal/vertical flips, mild colour jitter) for most classes. To address class imbalance, minority cancer types acquired aggressive augmentation, including additional rotations, affine transformations, and increased colour jitter. For each slide, a fixed-length bag of 300 tokens was constructed by randomly subsampling embeddings when more were available or by padding and masking when fewer were present. We initially trained only the MIL heads with the aggregator frozen for up to 100 epochs using a learning rate (LR) of 2 × 10⁻³. This was followed by fine-tuning all MIL layers for another 100 epochs at a reduced LR of 2 × 10⁻⁵. Throughout both phases, we applied a weight decay of 2 × 10⁻⁴ and used a cosine LR schedule with a 5% warm-up, gradually increasing the LR from 0 to its peak before decaying to 2 × 10⁻⁷. Mini-batches were constructed using a BalancedBatchSampler 33 to ensure an approximately uniform mix of cancer types per batch. Additionally, class weights for the cancer head were recomputed at each epoch, scaled by a factor of three to address class imbalance. Stage 2: Fine-tuning model on WSIs (tumour + non-tumour tissue) At this stage, the Multi-resolution ViT-based MIL model was fine-tuned on the same subset of the training set (4,843), with a particular focus on tissue-containing regions of WSIs, which included both cancerous and non-cancerous areas. All patches were extracted at a single resolution, approximately corresponding to a 6x downsample. The spatial arrangement of patches from a single WSIs is shown in Supplementary Figure S3 . The patches were normalised and augmented as in Stage 1, with stronger transforms applied only to minority classes. During training, each WSIs bag consisted of 300 tokens. For validation, we used a deterministic Top-K selection to ensure stable and reproducible evaluation. 34 For training, we adopted a hybrid strategy: approximately 70% of the patches were selected based on the highest similarity scores (Top-K), while the remaining 30% were randomly sampled from the remaining patches from the WSIs. This approach promotes exploration and helps prevent overfitting to a fixed subset of instances. The fine-tuned model updated all MIL layers for up to 150 epochs (AdamW, LR = 1×10⁻⁵), with batch size = 64, gradient accumulation (x2), cosine LR schedule (5% warm-up; min LR = 2×10⁻⁷), weight decay 2 x 10⁻⁴, and early stopping (patience = 10). We maintained an exponential moving average (EMA) of model weights with a decay of 0.999 and selected the best EMA model on the validation set for reporting. Loss functions The model was trained using a multi-task objective on slide-level embeddings. For cancer type classification, focal cross-entropy (gamma = 2.0) was applied with label smoothing (epsilon = 0.02) and epoch-wise inverse-frequency class weights (3x). The binary heads for TP53 mutation and OS/PFI events utilised focal binary cross-entropy (BCE) with logits (gamma = 1.5). Time-to-event outcomes were modelled with Cox partial likelihood, while continuous heads for TP53 expression and OS/PFI time used Smooth L1 loss. The total loss was a weighted sum of the cancer, binary, Cox, expression, and time terms. Slide level Survival analysis OS and PFI were evaluated based on slide-level prediction outputs, with time measured in months. For each endpoint, inclusion in the analysis required a minimum of two samples per cancer type and at least one observed event; cohorts failing to meet these criteria were excluded. For each cancer type, samples were categorised into risk groups based on a median split of the model’s predicted time-to-event. Samples with a predicted time less than or equal to the cohort median were labelled as High Risk, while those with a predicted time greater than the median were labelled as Low Risk. We estimated Kaplan-Meier (KM) curves for the two groups and compared them using a two-sided log-rank test. 35 Quantifying the effect size involved fitting a Cox proportional hazards model with a single binary covariate (High vs. Low Risk), reporting the hazard ratio (HR) along with the 95% confidence interval (CI). To enhance stability in small or nearly separated cohorts, a penalised Cox model was employed (with a penalizer of 0.1) and robust variance was used. The model’s discrimination was summarised using Harrell’s concordance index (C-index) 36 , computed on the same cohort. Slide-level predictions and interpretability analyses Predictions were made at the slide level using the trained fine-tuned model, and attention visualisations were generated directly from WSIs. The WSIs’ preprocessing, stain normalisation, and transformation steps were aligned with the previously outlined, which included tissue detection, patch extraction, and quality control. The model generated seven outputs: cancer types (32), TP53 mutation status ( TP53 pathogenic or TP53 wildtype), TP53 RNA expression levels, OS, PFI, and prediction time for both OS and PFI. To visualise model interpretability, each patch was scored using attention rollout from the MIL transformer. 37 Attention heads were averaged across layers, identity connections added, rows normalised, and matrices multiplied. The resulting attention flow from the [CLS] token to each patch yielded per-patch importance scores. Patch scores were mapped to slide coordinates, rescaled to a 0–1 range using the 2nd–98th percentiles, and interpolated over a downsampled WSI thumbnail. Gaussian smoothing and tissue masking refined the resulting map. Final heatmaps were overlaid using a turbo colourmap, with the two highest and two lowest attention patches highlighted for visual comparison. In our study, at the cohort level, each slide was represented by a single feature vector derived from the fine-tuned MIL model’s [CLS] embedding. These vectors were embedded into two dimensions using t-distributed Stochastic Neighbour Embedding (t-SNE) 38 , enabling visual inspection of slide-level relationships across the pan-cancer dataset. Statistical analysis and model evaluation Model development and training were performed using a single NVIDIA GPU with 80 GB of VRAM through a Python script utilising the PyTorch framework. 39 , 40 All statistical analyses were conducted at the slide level, using 95% bootstrap CI estimated from 2,000 resamples. 41 For multiclass cancer-type prediction, the standard approach involved assigning each slide to the class with the highest softmax probability using the argmax function. 42 To address class imbalance and heterogeneity, a threshold-optimised one-versus-rest (OvR) multiclass approach was applied, with probability thresholds for each cancer type selected to maximise the Youden Index. 43 , 44 For binary endpoints, including TP53 mutations, OS, and PFI events, the area under the receiver operating characteristic curve (AUROC), accuracy, sensitivity, and specificity were reported. For the continuous endpoint of TP53 expression level, the mean squared error (MSE) was computed using regression metrics. RESULTS Multi-resolution MIL model performance The multi-resolution ViT-based MIL model demonstrated strong performance, achieving an overall accuracy of 0.7043 (95% CI: 0.6782–0.7302) in classifying WSIs into 32 solid tumour types on the validation set (1212 WSIs) using argmax predictions. When per-class thresholds were applied based on the Youden Index, single-label classification accuracy improved to 0.7230 (95% CI: 0.6972–0.7483). Although OvR AUROCs were notably higher than 0.87 for all cancer types. All classification metrics are presented in Supplementary Table S1, while the confusion matrix for OvR classes is displayed in Supplementary Figure S4 . For TP53 mutation detection, overall performance at the Youden Index threshold yielded an AUROC of 0.775 (95% CI: 0.749–0.801), an accuracy of 0.706 (95% CI: 0.681–0.732), sensitivity of 78.6% (95% CI: 74.8–82.4), and specificity of 66.3% (95% CI: 63.0–69.6). Survival discrimination from risk heads showed a C-index of 0.642 (95% CI: 0.608–0.675) for OS and 0.634 (95% CI: 0.605–0.663) for the PFI. TP53 RNA expression levels attained MSE of 0.944 (95% CI: 0.853–1.041). Fine-tuning model performance The fine-tuned model, trained on both tumour and non-tumour tissue regions of the WSIs, demonstrated strong generalisation across the validation set of 1212 WSIs. Using argmax predictions, it achieved an overall accuracy of 0.7550 (95% CI: 0.7303–0.7783). Performance improved further with class-specific thresholding using the Youden Index, achieving an accuracy of 0.7569 (95% CI: 0.7328–0.7808). The OvR AUROC, accuracy, sensitivity, and specificity scores remained consistently high across all cancer types ( Table 1 ). The model for detecting TP53 mutations achieved an AUROC of 0.745 (95% CI: 0.718–0.771), accuracy of 0.648 (95% CI: 0.621–0.675), sensitivity of 83.3% (95% CI: 79.7–87.0), and specificity of 54.8% (95% CI: 51.2–58.3). The confusion matrix cross-tabulation is shown in Supplementary Figure S5 , displaying the counts of true TP53 wildtype and TP53 pathogenic variant cases versus the predicted wildtype or pathogenic variant statuses for each cancer type. Prognostic risk yielded a C-index of 0.686 (95% CI: 0.654–0.718) for OS and 0.650 (95% CI: 0.623–0.678) for PFI. Additionally, analysing TP53 RNA expression levels resulted in an MSE of 1.072 (95% CI: 0.938–1.205). These results highlight the model’s strong performance in classification, mutation detection, and prognostic tasks, emphasising its potential utility in computational pathology workflows. View this table: View inline View popup Download powerpoint Table 1 Fine-tuned model’s performance on the validation set using Youden Index with class-specific thresholds. External Validation On an independent validation set (1,729 WSIs across 32 solid tumour types), the fine-tuned model attained an overall accuracy of 0.659 (95% CI: 0.637–0.682) using argmax inference, with comparable performance (0.659; 95% CI: 0.636–0.681) under a Youden-optimised OvR strategy, demonstrating robust generalisation across diverse tissue contexts. Most tumour classes reached an AUROC score above 0.88 with class-specific thresholding using the Youden Index, except for ovarian cancer (OV), as shown in Table 2 . In the binary task of TP53 mutation detection, the model executed an AUROC of 0.766 (95% CI: 0.743–0.789), with accuracy of 72.0% (95% CI: 69.8–74.1), sensitivity of 70.0% (95% CI: 66.3–73.9), and specificity of 72.9% (95% CI: 70.3–75.3). The confusion matrix cross-tabulation is shown in Figure 2 . Prognostic performance dropped substantially on the test set compared to the validation set, with approximately 48% and 41% reductions in OS and PFI discrimination, respectively, indicating limited predictive power for survival-related signals. For TP53 RNA expression level estimation, the model reached an MSE of 1.213 (95% CI: 1.089–1.343), indicating reasonable alignment between predicted and observed expression levels. Download figure Open in new tab Figure 2 Heatmap of TP53 mutation prediction across pan-cancer on the external validation set. Each row displays a tumour type along with the total number of Whole Slide Images (WSIs), while the columns indicate the true wildtype of TP53 or pathogenic variants (mutant) versus predicted wildtype/pathogenic. View this table: View inline View popup Download powerpoint Table 2 Performance of the fine-tuned model on the pan-cancer external validation set, estimated classification metrics using class-specific thresholds derived from the Youden Index. Survival analysis Kaplan–Meier analysis of overall survival across all cancer types (external validation set) revealed a clear separation between the model-derived High– and Low-risk groups, with early divergence and a highly significant difference (p = 3.7 × 10⁻¹⁵). The High-risk group had a hazard ratio (HR) of 1.73 (95% CI: 1.51–1.98), indicating reasonable discrimination. Stratified Kaplan–Meier plots by cancer type ( Figure 3 ) revealed consistent differences in survival rates and improved model performance for several individual cancers. The observed C-index values ranged from 0 to 0.8 across different cancer types, as depicted in Supplementary Figure S6 (A) . Download figure Open in new tab Figure 3 Kaplan–Meier survival analysis for various cancer types, showing survival curves for model-derived High– and Low-risk groups on the external validation set (1729 slides). Red and blue lines represent these risk groups over time (months). Download figure Open in new tab Figure 4 Kaplan-Meier analysis of Progression-Free Interval (PFI) comparing high-risk (red) and low-risk (blue) groups across different cancer types. Each plot shows the probability of being progression-free over time (months). PFI analysis also showed overall strong separation between High– and Low-risk groups, with a significant difference confirmed by the log-rank test (p = 2.1 × 10⁻¹¹). The High-risk group had a hazard ratio of 1.56 (95% CI: 1.37–1.78), indicating a consistent association between predicted risk and disease progression. The C-index ranged from 0 to 0.8 ( Supplementary Figure S6 (B) ), indicating that most cancer classes exhibit distinguishable characteristics. The stratified Kaplan-Meier plots by cancer type ( Figure 2 ) revealed clearer separation and improved model performance for almost all cancer types. Interpretability through attention and embeddings In the external validation set, attention rollout from the model consistently focused on morphologically salient tumour regions. High-attention patches captured areas rich in tumour cells, nuclear atypia, and mitotic activity, while low-attention patches corresponded to stromal or sparsely cellular regions. Each panel presents slide-level predictions including cancer type, TP53 mutation status with expression level, and OS/PFI outcomes, as illustrated in Figure 5 . These results provide clinical context and confirm that predictions are based on histologically relevant features rather than global slide artifacts. Download figure Open in new tab Figure 5 Slide-level attention across four Whole Slide Images (WSIs). Each row corresponds to one slide, showing the thumbnail, overlay attention, and the two highest-and two lowest-attention patches from the WSIs’ regions. Row headers summarise model predictions, including cancer type, TP53 mutation status, TP53 RNA expression levels, and clinical outcomes for overall survival (OS) and progression-free interval (PFI) events with time in months. At the cohort level, global slide embeddings projected using t-distributed Stochastic Neighbor Embedding (t-SNE) revealed distinct, non-overlapping density clusters corresponding to predicted cancer types, while maintaining intra-cluster stratification based on TP53 mutation status ( TP53 pathogenic variants versus wildtype or benign), as shown in Figure 6 . Slides delineated with subtle black rings indicate low-margin predictions. These cases arise when the model’s top two cancer predictions exhibit comparable probabilities, which suggests a reduced level of classification confidence or the presence of overlapping morphological features. These visualisations offer complementary interpretability: patch-level attention highlights histologically salient regions, and cohort-level embedding structure reflects biologically coherent organisation of the model outputs. These visualisations underscore the alignment between learned representations and underlying pathology. Download figure Open in new tab Figure 6 t-distributed Stochastic Neighbour Embedding (t-SNE) visualisation of slide-level feature embeddings from the multi-task fine-tuned model, with each point representing a WholeSlide Image (WSI) colored by TP53 mutation status (orange for mutated, blue for wild-type). The distinct clusters correspond to different cancer types, demonstrating morphological differences, while the mixed TP53 status within these clusters indicate shared histologic patterns across various cancers. DISCUSSION Molecular profiling from routine histopathology could streamline precision oncology, yet integrating tumour classification, mutation status, gene expression, and prognosis remains challenging. Many existing models typically focus on a limited number of cancer types or use separate pipelines for these tasks, which restricts their clinical utility in oncology. In this study, we developed and evaluated a multi-task ViT-based MIL model for comprehensive pan-cancer analysis using histology images. Our model demonstrated robust performance across three key tasks: pan-cancer type classification, TP53 biomarker detection, and survival prognostication. Our model demonstrates robust performance across diverse cancer types, using per-class Youden thresholds, with AUROC values exceeding 0.88 for all classes ( Table 2 ) on the unseen WSIs (1729), except for ovarian tumours. These results indicate that a multi-resolution context fine-tuned model and refined thresholding are effective strategies for large-scale histopathology classification, supporting deployment across diverse tissue backgrounds and slide prediction. In the molecular inference task, the model demonstrated reasonable performance for TP53 mutation detection at the slide levels across 32 types of cancer, achieving an overall AUROC of 0.766 with a balanced accuracy of 0.72, sensitivity of 0.70, and specificity of 0.73. Our approach differs from prior mutation-focused frameworks, which combined self-supervised learning and attention MIL for pan-cancer mutation prediction across seven cancer types. 21 While their model achieved an AUROC ≥ 0.70 for several genes and generalised well to external data, our multi-resolution ViT-based MIL framework extends beyond mutation inference to pan-cancer classification, prognostic risk stratification, and expression level estimation. Moreover, our interpretability strategy integrates patch-level attention with cohort-level embeddings ( Figures 5 and 6 ), offering complementary insights into biological coherence. In prostate cancer, a deep-learning model for TP53 achieved robust cross-cohort generalisation and provided spatial maps linking mutation status to aggressive phenotypes. In contrast, our approach prioritises mutation classification and embeds it within a multi-task framework, yielding a more comprehensive diagnostic tool. 45 Hu et al. introduced CATfusion, a cross-attention transformer that integrates WSIs with multi-omics, achieving superior pan-cancer survival prediction (overall C-index ∼0.668) under five-fold cross-validation. 46 Similarly, Wulczyn et al. demonstrated that deep learning can stratify survival risk across multiple cancer types, with incremental gains over baseline models. 47 In contrast, our multi-task framework emphasises mutation classification (32 cancers; overall AUROC ∼0.77) and prognostic outcomes using only histopathology images, offering a deployable alternative when omics data are unavailable. Although our prognostic head identified survival-related patterns in histology, its reduced performance on external cohorts highlights the inherent limitations of relying solely on slides, likely due to missing clinical and molecular context. These findings highlight the need for multimodal integration and disease-specific architectures to achieve robust and generalisable survival prediction in real-world settings. While this study demonstrates the potential of a ViT-based MIL framework for predicting molecular and clinical outcomes directly from WSIs, some limitations should be noted. First, the training datasets were highly imbalanced across tumour types, which may have affected the model’s ability to generalise, especially for underrepresented classes. Although class weighting and extensive data augmentation were applied to mitigate this issue, residual imbalance likely contributed to performance variability and reduced sensitivity in minority classes. Second, the model demonstrated limited prognostic performance, indicating that morphological features alone may not fully represent the complexity of survival-related factors. Next, the model was fine-tuned on downsampled images to reduce computational load and accelerate training, which may overlook finer-grained histological features or spatial context that could enhance the model’s performance. Furthermore, shared attention across multi-task heads may dilute task-specific focus, limiting the model’s ability to highlight regions relevant to TP53 mutation. Finally, interpretability remains a challenge for the ViT-based MIL model in multi-task settings. While attention maps provide some insight into model focus, still required further validation to enhance clinical utility. Future work should explore integration with multi-modal data, broader external validation, and improved interpretability to enhance computational pathology. In summary, the ViT-based multi-task MIL fine-tuned model demonstrated consistent generalisation to unseen WSIs, effectively capturing tumour type and mutation-related patterns, while showing limited predictive capacity for survival outcomes. DECLARATIONS SECTION ETHICAL APPROVAL AND CONSENT TO PARTICIPATE The datasets used in this study were obtained from publicly accessible databases, thereby eliminating the need for direct patient interaction and the collection of personally identifiable information. Therefore, no additional ethical approval was required, and the study adheres to ethical guidelines and data-sharing policies. CONSENT FOR PUBLICATION Not applicable AVAILABILITY OF SUPPORTING DATA All the data used in this study are publicly accessible, and the links are provided. COMPETING INTERESTS A.K.C., M.T.B., P.W.T., and A.W.H. are co-founders of Pandani Solutions Pty Ltd, which is developing tools for computational pathology. FUNDING This work was supported by an Australian National Health and Medical Research Council Leadership Award (A.W.H.). AUTHORS’ CONTRIBUTIONS A.K.C. designed the study, extracted and preprocessed data, selected the optimal architecture, implemented it for training and validating the models, analysed the results, and prepared the manuscript. P.W.T. and M.T.B. critically reviewed and interpreted the results. H.C.H. reviewed the results and provided interpretations within a pathological context. A.W.H. supervised the overall study design, reviewed the clinical significance and validation protocols, interpreted the analyses, provided valuable suggestions for improving the manuscript, and edited it. All authors reviewed the manuscript thoroughly and approved the final version. Data Availability All the data used in this study are publically available. https://portal.gdc.cancer.gov/ ACKNOWLEDGEMENTS We thank the University of Tasmania for providing the research infrastructure and resources that supported this study. REFERENCES 1. ↵ Feng X , Shu W , Li M , et al. Pathogenomics for accurate diagnosis, treatment, prognosis of oncology: a cutting edge overview . Journal of Translational Medicine 2024 ; 22 : 1 – 14 . OpenUrl PubMed 2. ↵ Amin MB , Greene FL , Edge SB , et al. The Eighth Edition AJCC Cancer Staging Manual: Continuing to build a bridge from a population-based to a more ‘personalized’ approach to cancer staging . CA: a cancer journal for clinicians ; 67 . Epub ahead of print March 2017 . DOI: 10.3322/caac.21388 . OpenUrl CrossRef PubMed 3. ↵ The evolving landscape of anatomic pathology . Critical Reviews in Oncology/Hematology 2022 ; 178 : 103776 . OpenUrl PubMed 4. Chakravarty D , Johnson A , Sklar J , et al. Somatic Genomic Testing in Patients With Metastatic or Advanced Cancer: ASCO Provisional Clinical Opinion . Journal of clinical oncology: official journal of the American Society of Clinical Oncology ; 40 . Epub ahead of print 10 April 2022 . DOI: 10.1200/JCO.21.02767 . OpenUrl CrossRef 5. Pan-Cancer Molecular Biomarkers: Practical Considerations for the Surgical Pathologist . Modern Pathology 2025 ; 38 : 100752 . OpenUrl PubMed 6. ↵ Gibbs SN , Peneva D , Carter GC , et al. Comprehensive Review on the Clinical Impact of Next-Generation Sequencing Tests for the Management of Advanced Cancer . JCO Precision Oncology 2023 ; 7 : e2200715 . OpenUrl 7. ↵ Gaining insights into relevance across cancers based on mutation features of TP53 gene . Biochemistry and Biophysics Reports 2021 ; 28 : 101165 . OpenUrl 8. Multiple roles of p53 in cancer development: Regulation of tumor microenvironment, m6A modification and diverse cell death mechanisms . Journal of Advanced Research 2025 ; 75 : 539 – 560 . OpenUrl PubMed 9. ↵ Olivier M , Hollstein M , Hainaut P . TP53 Mutations in Human Cancers: Origins, Consequences, and Clinical Use . Cold Spring Harbor Perspectives in Biology 2010 ; 2 : a001008 . OpenUrl Abstract / FREE Full Text 10. ↵ Khan R , Pari B , Puszynski K . Comprehensive Bioinformatic Investigation of TP53 Dysregulation in Diverse Cancer Landscapes . Genes 2024 ; 15 : 577 . OpenUrl 11. ↵ Delgado A , Guddati AK . Clinical endpoints in oncology – a primer . American Journal of Cancer Research 2021 ; 11 : 1121 . OpenUrl PubMed 12. ↵ Fu Y , Jung AW , Torne RV , et al. Pan-cancer computational histopathology reveals mutations, tumor composition and prognosis . Nature Cancer 2020 ; 1 : 800 – 810 . OpenUrl PubMed 13. ↵ Yan R , Shen Y , Zhang X , et al. Histopathological bladder cancer gene mutation prediction with hierarchical deep multiple-instance learning . Medical image analysis ; 87 . Epub ahead of print July 2023 . DOI: 10.1016/j.media.2023.102824 . OpenUrl CrossRef 14. Deep learning algorithm on H&E whole slide images to characterize TP53 alterations frequency and spatial distribution in breast cancer . Computational and Structural Biotechnology Journal 2024 ; 23 : 4252 – 4259 . OpenUrl 15. Tomita N , Tafe LJ , Suriawinata AA , et al. Predicting oncogene mutations of lung cancer using deep learning and histopathologic features on whole-slide images . Translational oncology ; 24 . Epub ahead of print October 2022 . DOI: 10.1016/j.tranon.2022.101494 . OpenUrl CrossRef 16. ↵ Chen M , Zhang B , Topatana W , et al. Classification and mutation prediction based on histopathology H&E images in liver cancer using deep learning . NPJ precision oncology ; 4 . Epub ahead of print 8 June 2020 . DOI: 10.1038/s41698-020-0120-3 . OpenUrl CrossRef 17. ↵ Exploring multi-instance learning in whole slide imaging: Current and future perspectives . Pathology – Research and Practice 2025 ; 271 : 156006 . OpenUrl 18. ↵ Shi J , Shu T , Jiang Z , et al. Slide-based Graph Collaborative Training for Histopathology Whole Slide Image Analysis . IEEE transactions on medical imaging ; PP. Epub ahead of print 19 May 2025 . DOI: 10.1109/TMI.2025.3571152 . OpenUrl CrossRef 19. ↵ Wu Z , He H , Zhao X , et al. Reimagining cancer tissue classification: a multi-scale framework based on multi-instance learning for whole slide image classification . Medical & Biological Engineering & Computing 2025 ; 63 : 2617 – 2635 . OpenUrl PubMed 20. ↵ Pan-cancer integrative histology-genomic analysis via multimodal deep learning . Cancer Cell 2022 ; 40 : 865 – 878 .e6. OpenUrl CrossRef PubMed 21. ↵ Saldanha OL , Loeffler CML , Niehues JM , et al. Self-supervised attention-based deep learning for pan-cancer mutation prediction from histopathology. npj Precision Oncology 2023 ; 7 : 1 – 5 . OpenUrl 22. Zeng X , Abdullah N , Sumari P . Self-supervised learning framework application for medical image analysis: a review and summary . BioMedical Engineering OnLine 2024 ; 23 : 1 – 36 . OpenUrl PubMed 23. ↵ Campanella G , Chen S , Singh M , et al. A clinical benchmark of public self-supervised pathology foundation models . Nature Communications 2025 ; 16 : 1 – 12 . OpenUrl PubMed 24. ↵ Ellrott K , Bailey MH , Saksena G , et al. Scalable Open Science Approach for Mutation Calling of Tumor Exomes Using Multiple Genomic Pipelines . Cell systems ; 6 . Epub ahead of print 28 March 2018 . DOI: 10.1016/j.cels.2018.03.002 . OpenUrl CrossRef PubMed 25. ↵ UCSC Xena , https://xenabrowser.net/datapages/?cohort=TCGA%20Pan-Cancer%20 (PANCAN) (accessed 19 August 2025). 26. ↵ UCSC Xena , https://xenabrowser.net/datapages/?dataset=EB%2B%2BAdjustPANCAN_IlluminaHiSeq_RNASeqV2.geneExp.xena&host=https%3A%2F%2Fpancanatlas.xenahubs.net&addHub=https%3A%2F%2Fxena.treehouse.gi.ucsc.edu&removeHub=https%3A%2F%2Fxena.treehouse.gi.ucsc.edu%3A443 (accessed 19 August 2025). 27. ↵ UCSC Xena , https://xenabrowser.net/datapages/?dataset=Survival_SupplementalTable_S1_20171025_xena_sp&host=https%3A%2F%2Fpancanatlas.xenahubs.net&addHub=https%3A%2F%2Fxena.treehouse.gi.ucsc.edu&removeHub=https%3A%2F%2Fxena.treehouse.gi.ucsc.edu%3A443 (accessed 19 August 2025). 28. ↵ Download Files , https://cancer.sanger.ac.uk/cosmic/download/cosmic/v102/mutantcensus (accessed 19 August 2025). 29. ↵ TP53 Database: View Tumor Variants in Human Tumor Samples (Data File) , https://tp53.cancer.gov/view_data?bq_view_name=TumorVariantDownload (accessed 19 August 2025). 30. ↵ Universal encoding of pan-cancer histology by deep texture representations . Cell Reports 2022 ; 38 : 110424 . OpenUrl PubMed 31. ↵ [No title], https://arxiv.org/pdf/1706.03762 (accessed 4 October 2025 ). 32. ↵ Darcet T , Oquab M , Mairal J , et al. Vision Transformers Need Registers , http://arxiv.org/abs/2309.16588 ( 2023 , accessed 4 October 2025 ). 33. ↵ GitHub-galatolofederico/pytorch-balanced-batch: A pytorch dataset sampler for always sampling balanced batches . GitHub , https://github.com/galatolofederico/pytorch-balanced-batch ( accessed 4 October 2025 ). 34. ↵ An aggregation of aggregation methods in computational pathology . Medical Image Analysis 2023 ; 88 : 102885 . OpenUrl CrossRef PubMed 35. ↵ Dudley WN , Wickham R , Coombs N . An Introduction to Survival Statistics: Kaplan-Meier Analysis . Journal of the Advanced Practitioner in Oncology 2016 ; 7 : 91 . OpenUrl PubMed 36. ↵ A practical perspective on the concordance index for the evaluation and selection of prognostic time-to-event models . Journal of Biomedical Informatics 2020 ; 108 : 103496 . OpenUrl CrossRef PubMed 37. ↵ Abnar S , Zuidema W . Quantifying Attention Flow in Transformers , http://arxiv.org/abs/2005.00928 ( 2020 , accessed 5 October 2025 ). 38. ↵ van der Maaten L , Hinton G . Visualizing Data using t-SNE . Journal of Machine Learning Research 2008 ; 9 : 2579 – 2605 . OpenUrl 39. ↵ PyTorch Foundation . PyTorch , https://pytorch.org/ (accessed 5 October 2025). 40. ↵ Welcome to. Python.org , https://www.python.org/ (accessed 5 October 2025). 41. ↵ Bland JM , Altman DG . Statistics Notes: Bootstrap resampling methods . BMJ 2015 ; 350 : h2622 . OpenUrl FREE Full Text 42. ↵ torch.argmax — PyTorch 2.8 documentation , https://docs.pytorch.org/docs/stable/generated/torch.argmax.html (accessed 5 October 2025 ). 43. ↵ Youden WJ . Index for rating diagnostic tests . Cancer 1950 ; 3 : 32 – 35 . OpenUrl CrossRef PubMed Web of Science 44. ↵ OneVsRestClassifier. scikit-learn , https://scikit-learn.org/stable/modules/generated/sklearn.multiclass.OneVsRestClassifier.html (accessed 5 October 2025). 45. ↵ Pizurica M , Larmuseau M , Van der Eecken K , et al. Whole Slide Imaging-Based Prediction of TP53 Mutations Identifies an Aggressive Disease Phenotype in Prostate Cancer . Cancer Research 2023 ; 83 : 2970 . OpenUrl PubMed 46. ↵ Hu Y , Li X , Yi Y , et al. Deep learning-driven survival prediction in pan-cancer studies by integrating multimodal histology-genomic data . Briefings in Bioinformatics 2025 ; 26 : bbaf121 . OpenUrl PubMed 47. ↵ Wulczyn E , Steiner DF , Xu Z , et al. Deep learning-based survival prediction for multiple cancer types using histopathology images . PLOS ONE 2020 ; 15 : e0233678 . OpenUrl CrossRef PubMed View the discussion thread. Back to top Previous Next Posted November 13, 2025. Download PDF Supplementary Material Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Prediction of TP53 biomarkers and survival outcomes from whole slide images using a vision transformer-based multi-instance learning framework Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Prediction of TP53 biomarkers and survival outcomes from whole slide images using a vision transformer-based multi-instance learning framework Abadh K Chaurasia , Patrick W Toohey , Matthew T Bennett , Helen C Harris , Alex W Hewitt medRxiv 2025.11.11.25340052; doi: https://doi.org/10.1101/2025.11.11.25340052 Share This Article: Copy Citation Tools Prediction of TP53 biomarkers and survival outcomes from whole slide images using a vision transformer-based multi-instance learning framework Abadh K Chaurasia , Patrick W Toohey , Matthew T Bennett , Helen C Harris , Alex W Hewitt medRxiv 2025.11.11.25340052; doi: https://doi.org/10.1101/2025.11.11.25340052 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Oncology Subject Areas All Articles Addiction Medicine (568) Allergy and Immunology (863) Anesthesia (300) Cardiovascular Medicine (4435) Dentistry and Oral Medicine (444) Dermatology (382) Emergency Medicine (608) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1509) Epidemiology (15229) Forensic Medicine (30) Gastroenterology (1124) Genetic and Genomic Medicine (6600) Geriatric Medicine (668) Health Economics (997) Health Informatics (4536) Health Policy (1368) Health Systems and Quality Improvement (1613) Hematology (541) HIV/AIDS (1264) Infectious Diseases (except HIV/AIDS) (15916) Intensive Care and Critical Care Medicine (1103) Medical Education (623) Medical Ethics (146) Nephrology (667) Neurology (6599) Nursing (346) Nutrition (998) Obstetrics and Gynecology (1144) Occupational and Environmental Health (957) Oncology (3332) Ophthalmology (974) Orthopedics (369) Otolaryngology (420) Pain Medicine (436) Palliative Medicine (130) Pathology (663) Pediatrics (1693) Pharmacology and Therapeutics (691) Primary Care Research (711) Psychiatry and Clinical Psychology (5447) Public and Global Health (9232) Radiology and Imaging (2198) Rehabilitation Medicine and Physical Therapy (1370) Respiratory Medicine (1196) Rheumatology (593) Sexual and Reproductive Health (712) Sports Medicine (530) Surgery (712) Toxicology (99) Transplantation (289) Urology (265) (function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a00c78266b36421a',t:'MTc3OTYyNzQ4MA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00