Joshi, P., Dhar, R. EpICC: A Bayesian neural network model with uncertainty correction for a more accurate classificatio

Slide 1 of 49: 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

Slide 2 of 49: “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

Slide 3 of 49: EpiCC
EpiCC Epistemic Invariance in Cancer Classi cation* Motivation Goal Background Methods Remarks fi

Motivation

Slide 4 of 49: Motivation

Measure of confidence can improve decision-making ability

Slide 5 of 49: Measure of confidence can improve decision-making ability

Goal

Slide 6 of 49: Goal

Classification of individual patient samples into cancer types, and subtypes with uncertainty with each prediction.

Slide 7 of 49: Classification of individual patient samples into cancer types, and subtypes with uncertainty with each prediction.

Background

Slide 8 of 49: Background

Uncertainty Aleatoric Epistemic Quality of data Model Labels Measurements Parameter selection

Slide 9 of 49: Uncertainty Aleatoric Epistemic Quality of data Model Labels Measurements Parameter selection

What is Epistemic Uncertainty ?

Slide 10 of 49: What is Epistemic Uncertainty ?

Variations in model tting Variations in classi cation

Slide 11 of 49: Variations in model tting Variations in classi cation
Variations in model tting Variations in classi cation fi fi

What is Epistemic Invariance ?

Slide 12 of 49: What is Epistemic Invariance ?

The property of being always equally accessible.

Slide 13 of 49: The property of being always equally accessible.

Kripke’s semantics Epistemology Isomorphism Epistemic modal logic Uncertainty Invariance Epistemic Invariance

Slide 14 of 49: Kripke’s semantics Epistemology Isomorphism Epistemic modal logic Uncertainty Invariance Epistemic Invariance

Priori Posterior Weights Probability distribution

Slide 15 of 49: Priori Posterior Weights Probability distribution

Methods

Slide 16 of 49: Methods

3-layered BNN + uncertainty corrected

Slide 17 of 49: 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

Slide 18 of 49: 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

Slide 19 of 49: Data
Data Trancriptome (TCGA level 3) Cancer types Cancer subtypes 4 out of 31 Source UCSC XENA

Data

Slide 20 of 49: 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

Slide 21 of 49: Data
Data Binary classi cation: Cancer vs. Non-cancer Missing values Model L2-regularised logistic regression fi

Data

Slide 22 of 49: Data
Data Cancer subtype Expression values assigned to respective types 9 subtypes (n=50) Phenotypic information

Feature Selection

Slide 23 of 49: 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

Slide 24 of 49: 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

Slide 25 of 49: 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)

Slide 26 of 49: 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

Slide 27 of 49: 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

Slide 28 of 49: 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

Slide 29 of 49: 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

Slide 30 of 49: 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)]

Slide 31 of 49: 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

Slide 32 of 49: 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

Slide 33 of 49: 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

Slide 34 of 49: 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 ∑

Slide 35 of 49: ( 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 )

Slide 36 of 49: 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

Slide 37 of 49: 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

Slide 38 of 49: 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

Slide 39 of 49: 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

Slide 40 of 49: 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

Slide 41 of 49: 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

Slide 42 of 49: Comparison of Mean Uncertainty
Comparison of Mean Uncertainty correct and incorrect predictions

Independent validation: Accuracy

Slide 43 of 49: 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

Performance Comparison

Slide 44 of 49: Performance Comparison
Performance Comparison Accuracy Source: Table 1, pg. 8, https://doi.org/10.1038/s41598-022-18874-6

Remarks

Slide 45 of 49: Remarks

Combining transcriptomic data with epigenetic modification patterns in cancers can increase subtype classification accur

Slide 46 of 49: 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.

Slide 47 of 49: This work* demonstrates the value of modelling uncertainty in cancer classification.

„Die Grenzen meiner Sprache sind die Grenzen meiner Welt”

Slide 48 of 49: „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

Slide 49 of 49: 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