Joshi, P., Dhar, R. EpICC: A Bayesian neural network model with uncertainty correction for a more accurate classificatio
Joshi, P., Dhar, R. EpICC: A Bayesian neural network model with uncertainty correction for a more accurate classification of cancer. Sci Rep 12, 14628 (2022). Computational Cancer Research Seminar Talk by Abhinav Mishra December 7th, 2022
“It really is a nice theory. The only defect I think it has is probably common to all philosophical theories. It’s wrong
“It really is a nice theory. The only defect I think it has is probably common to all philosophical theories. It's wrong.” Saul Kripke (1980, ‘Naming and Necessity’, pg. 64)
EpiCC
EpiCC Epistemic Invariance in Cancer Classi cation* Motivation Goal Background Methods Remarks fi
Motivation
Measure of confidence can improve decision-making ability
Goal
Classification of individual patient samples into cancer types, and subtypes with uncertainty with each prediction.
Background
Uncertainty Aleatoric Epistemic Quality of data Model Labels Measurements Parameter selection
What is Epistemic Uncertainty ?
Variations in model tting Variations in classi cation
Variations in model tting Variations in classi cation fi fi
What is Epistemic Invariance ?
The property of being always equally accessible.
Kripke’s semantics Epistemology Isomorphism Epistemic modal logic Uncertainty Invariance Epistemic Invariance
Priori Posterior Weights Probability distribution
Methods
3-layered BNN + uncertainty corrected
3-layered BNN + uncertainty corrected First Layer - 250 units, Hidden layer - 95 units, Output layer - 31 units Source: Figure 1, pg. 3, https://doi.org/10.1038/s41598-022-18874-6
Data
Data Trancriptome (TCGA level 3) Sequencing Illumina HiSeq 200 Counts log2(x + 1) transformed RSEM normalized Samples Splitting 80% → training + feature selection | 20% → testing
Data
Data Trancriptome (TCGA level 3) Cancer types Cancer subtypes 4 out of 31 Source UCSC XENA
Data
Data Binary classi cation: Cancer vs. Non-cancer Values Gene expression values of normal samples (GTEx) Counts log2(x + 1) transformed RSEM normalized Samples Splitting 80% → training + feature selection | 20% → testing fi
Data
Data Binary classi cation: Cancer vs. Non-cancer Missing values Model L2-regularised logistic regression fi
Data
Data Cancer subtype Expression values assigned to respective types 9 subtypes (n=50) Phenotypic information
Feature Selection
Feature Selection Two-step PCA Why ? Reducing the risk of over- tting, and redundancy. 1. Selecting a set of genes (n=103) from the original RNA-seq data. 2. Selecting an ever smaller set from the step above fi
Feature Selection
Feature Selection Two-step PCA First step Principal Component Analysis For each component up to 10, number of optimal genes ∼ gene = max |Factor loading| Second step Logistic Regression Minimum number of genes required to achieve high accuracy
Bayesian Neural Network Data points D: for i predictor variable and target variable y i D = (x i ,y i )∀i ∈ 1,2,3,...,N
Bayesian Neural Network BNN Objective th Data points D: for i predictor variable and target variable yi D = (xi,yi)∀i ∈ 1,2,3,...,N, N = number of sample points
Bayesian Neural Network w = arg max p(D | w)
Bayesian Neural Network BNN Learn the parameters w such that the probability of occurrence of data given the model parameters is maximised. Maximum likehood estimate w = arg max p(D | w) w
Bayesian Neural Network
Bayesian Neural Network BNN w = arg max p(D | w) Occurence w True Posteriori p(w | D) = p(D | w)p(w) ∫ p(D | w)p(w)dx Baye’s theorem Assumed Priori
Bayesian Neural Network N(w j | μ j , σ ) w j ’s mean and variance
Bayesian Neural Network BNN Solution of p(w | D) is controllable & feasible by minimising KL divergence between variational posterior and true posterior. q’s parameters q(w | δ) = j N(wj | μj, σ ) wj’s mean and variance
Bayesian Neural Network
Bayesian Neural Network BNN 1. Minimise the di erence between the distributions q(w | δ) & p(w | D) . 2. Maximise the probability of occurrence p(D|w). What is q ? The probability distribution that the model extracts. What is p ? The probability distribution that already exists. ff
Example
Example KL Divergence P(x) DKL(P | | Q) = P(x) ln( Q(x) x∈X x ln( ) + ln( ) + ln( X P(X) Q(X) Source: Table 2.1, Kullback, Solomon (1959), Information Theory and Statistics (Information loss?) => Loss function ?? Subtract from log(N) to get Shannon Entropy
Bayesian Neural Network δ = arg min KL δ [q(w | δ) | | p(w | D)]
Bayesian Neural Network BNN Kullback-Leibler divergence δ’s estimate from q δ = arg min KLδ[q(w | δ) | | p(w | D)] p is the true posterior Reference distribution q is the variational posterior
Evaluation Metrics
Evaluation Metrics BNN: prediction of individual cancer types before correction Source: Fig 2(b), pg. 4, https://doi.org/10.1038/s41598-022-18874-6
Overall Accuracy comparison
Overall Accuracy comparison Source: Fig 2(a), pg. 4, https://doi.org/10.1038/s41598-022-18874-6
Precision & Recall > 0.75
Precision & Recall > 0.75 Top 20 genes (Highest F1 scores) Source: Fig S4, Supplementary Material, https://doi.org/10.1038/s41598-022-18874-6
( p t ̂ − p ) T ∑
Uncertainty Estimation Why ? Getting an idea about the con dence of predictions of a model. Mean value for 500 iterations t=T i i 2 Epistemic Uncertainity, ξi = ( p t̂ − p ) T∑ t=1 Softmax prediction for tth monte-carlo iteration Index of the class fi
f(E[ p i ̂ ]) = α + β ξ i + ϵ, error ∼ N(0,σ ) p corr,i ̂ = f (E[ p i ̂ ] − β ξ i )
Uncertainty Correction 1. Fit a linear model between the log-odds of E[ p î ] and x f(x) = ln( 1−x ξi . f(E[ pi ̂]) = α + β ξi + ϵ, error ∼ N(0,σ ) 2. Calculate the coe cients α, β of the linear model using OLS. 3. Calculate the corrected prediction probabilities for each cancer class. pcorr,i ̂ = f (E[ pi ̂] − β ξi) ffi
3-layered BNN + uncertainty corrected
3-layered BNN + uncertainty corrected First Layer - 250 units, Hidden layer - 95 units, Output layer - 31 units Source: Figure 1, pg. 3, https://doi.org/10.1038/s41598-022-18874-6
Evaluation Metrics
Evaluation Metrics EpiCC: Comparison of F1 scores after uncertainty correction Source: Fig 3(b), pg. 5, https://doi.org/10.1038/s41598-022-18874-6
Subtype Classification
Subtype Classification Accuracy & F1 Score TP + FN Accuracy = TP + FN + FP + TN TP Precision(P) = TP + FP TP Recall(R) = TP + FN 2PR F1 Score = P+R Source: Fig 4, pg. 7, https://doi.org/10.1038/s41598-022-18874-6
Filtering Cutoff
Filtering Cutoff Accuracy & Number of samples Source: Fig 3(c), pg. 5, https://doi.org/10.1038/s41598-022-18874-6
Distribution of Epistemic Uncertainty
Distribution of Epistemic Uncertainty Source: Fig. S5, Supplementary Materials, https://doi.org/10.1038/s41598-022-18874-6
Comparison of Mean Uncertainty
Comparison of Mean Uncertainty correct and incorrect predictions
Independent validation: Accuracy
Independent validation: Accuracy UCSC XENA Source: Fig 3(d), pg. 5, https://doi.org/10.1038/ s41598-022-18874-6 Source: Fig 3(e), pg. 5, https://doi.org/10.1038/ s41598-022-18874-6
Combining transcriptomic data with epigenetic modification patterns in cancers can increase subtype classification accur
Combining transcriptomic data with epigenetic modification patterns in cancers can increase subtype classification accuracy.
This work* demonstrates the value of modelling uncertainty in cancer classification.
„Die Grenzen meiner Sprache sind die Grenzen meiner Welt”
„Die Grenzen meiner Sprache sind die Grenzen meiner Welt” Ludwig Wittgenstein (1922, ’Tractatus logigo-philosphicus’)
References
References & Credits *Joshi, P., Dhar, R. EpICC: A Bayesian neural network model with uncertainty correction for a more accurate classi cation of cancer. Sci Rep 12, 14628 (2022). https://doi.org/10.1038/s41598-022-18874-6. Repo: https://github.com/pjoshi-hub/Bayesian_classi cation_model Theodoridis, K. (2007). Kripke and the Predicament of Epistemic Invariance. Philosophical Inquiry, 29(1/2), 72-83. Presentation software ‘Keynote’ was used to develop slides. Background images on the rst, and last slide belongs to the presenter. fi fi fi