SlideShare a Scribd company logo
1 of 29
Download to read offline
UNCERTAINTIES IN
DEEP LEARNING
There is always some uncertainty in
our predictions
No model is Perfect!
WHY DO WE
NEED TO CARE
ABOUT
UNCERTAINTY??
A THREAT TO
HUMAN LIFE
With the rise of computation
power and ability to collect more
data and store it, Deep Learning
has grown rapidly.
Currently, Deep learning models
are used in all the fields present
in the market in some or the
other form.
With their use in safety systems
and healthcare, their faults pose a
threat to human life.
In May 2016, a self-driving car
made by Tesla was not able
to recognize a white truck
against a brightly lit sky
injuring the person inside
which caused a huge safety
issue on the use of AI
In july 2015, Google Photos
erroneously identified two
African-Americans as Gorillas
raising racism issues
TYPES OF UNCERTAINTY
● EPISTEMIC UNCERTAINTY a.k.a MODEL UNCERTAINTY
● ALEATORIC UNCERTAINTY a.k.a DATA UNCERTAINTY
○ HOMOSCEDASTIC ALEATORIC UNCERTAINTY
○ HETEROSCEDASTIC ALEATORIC UNCERTAINTY
EPISTEMIC UNCERTAINTY
➔ Uncertainty due to limited knowledge and data
➔ Can be reduced by collecting more data intelligently
Intuition Behind Epistemic Uncertainty
LESS DATA vs LARGE DATA
ALEATORIC UNCERTAINTY
➔ Uncertainty representative of noise inherent in data
➔ Cannot be reduced by collecting more data
➔ Homoscedastic Model : The noise is constant for all data points, i.e,
independent of the input
➔ Heteroscedastic Model : The noise is different for all data points, i.e,
input-dependent
Heteroscedastic vs Homoscedastic
SUMMARY
BAYESIAN NEURAL NETWORKS
BAYES BY BACKPROP
VARIATIONAL INFERENCE
● It is an approximation method so that the result of the integration in
bayesian neural networks can be calculated
● Make T forward passes through the network for each data point
● Now use this set of predictions to estimate mean(final prediction) and
variance (which is the uncertainty measure)
DROPOUT AS BAYESIAN APPROXIMATION
● Keep dropout on at test time too
● Make T forward passes for each data
point
● Use this set of predictions to get the
actual final prediction and the uncertainty
measures
MODELLING ALEATORIC UNCERTAINTY
● For Homoscedastic, just add a noise term to the variance as a
hyperparameter and tune it according to the validation data
● For Heteroscedastic, add a standard deviation term alongside the output but
it will require some tweaking to the loss function
L(ŷ,y,𝛔) = ||ŷ-y||2
/(2*𝛔2
) + log(𝛔2
)/2
QUANTILES AND CONFIDENCE INTERVALS
❏ Quantiles are cuts which divide the distribution into two parts
❏ x% Confidence Interval mean an interval [a,b] st the value you are measuring
will lie in this interval x% of times
QUANTILE REGRESSION
● We develop a model to predict a certain quantile of the output we want and
then combine them to generate 95/99% confidence intervals
● Loss function becomes :
L(ŷ,y) = max( q(ŷ-y) , (q-1)(ŷ-y) )
SOME METRICS FOR CLASSIFICATION
● Variation Ratio = 1 - frequency of mode/T
● Entropy of mean of T vectors = - Σc
pc
log(pc
)
● Mutual Information = Entropy of mean of T vectors - Mean of
entropies of T vectors
SOME EXPERIMENTAL DATA
MY EXPERIMENT WITH MC DROPOUT
● Accuracy with Standard Dropout -
96.17%
● Accuracy with MC Dropout - 98.12%
● With uncertainty estimates, we were
able to reduce wrong predictions to
only 34 out of 10000
● Also, 98% CIFAR-10 dataset was
rejected by the model
Results on
MNIST
dataset
Certain Uncertain
Correct 9464 348
Incorrect 34 154
WHEN TO USE WHICH TYPE?
Aleatoric Uncertainty should be used
in the cases of :
● Large data situations
● Real-time applications
Epistemic Uncertainty should be used
in the cases of :
● Safety-critical applications
● Small Datasets
How can this
uncertainty
help us??
● Tells whether our model is
certain or not
● Helps in developing a strategy
for collection of more data
● Bayesian Active Learning
HUMAN INTERFERENCE
Model output
Certain Uncertain
Human CheckingConfident Prediction
EPISTEMIC UNCERTAINTY TO THE RESCUE
● Analyse all the data which results in high epistemic uncertainty
● Try to find patterns in this data
BAYESIAN ACTIVE LEARNING
CHALLENGES
AND
FUTURE WORK
● Real time epistemic uncertainty
estimates are yet to be
achieved
● There is still scope of
improvement in the uncertainty
estimates
● Not all the current models can
be successfully transformed
into Bayesian Neural Networks
Uncertainties in Deep Learning

More Related Content

Similar to Uncertainties in Deep Learning

Credit Card Fraudulent Transaction Detection Research Paper
Credit Card Fraudulent Transaction Detection Research PaperCredit Card Fraudulent Transaction Detection Research Paper
Credit Card Fraudulent Transaction Detection Research PaperGarvit Burad
 
DATI, AI E ROBOTICA @POLITO
DATI, AI E ROBOTICA @POLITODATI, AI E ROBOTICA @POLITO
DATI, AI E ROBOTICA @POLITOMarcoMellia
 
Predicting Thyroid Disorder with Deep Neural Networks
Predicting Thyroid Disorder with Deep Neural NetworksPredicting Thyroid Disorder with Deep Neural Networks
Predicting Thyroid Disorder with Deep Neural NetworksAnaelia Ovalle
 
Deep Learning for AI (3)
Deep Learning for AI (3)Deep Learning for AI (3)
Deep Learning for AI (3)Dongheon Lee
 
Sequence-to-Sequence Modeling for Time Series
Sequence-to-Sequence Modeling for Time SeriesSequence-to-Sequence Modeling for Time Series
Sequence-to-Sequence Modeling for Time SeriesArun Kejariwal
 
Blood Cell Image Classification for Detecting Malaria using CNN
Blood Cell Image Classification for Detecting Malaria using CNNBlood Cell Image Classification for Detecting Malaria using CNN
Blood Cell Image Classification for Detecting Malaria using CNNIRJET Journal
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationBoston Institute of Analytics
 
Roberti: NEON's approach to uncertainty estimation for sensor-based measurem...
Roberti:  NEON's approach to uncertainty estimation for sensor-based measurem...Roberti:  NEON's approach to uncertainty estimation for sensor-based measurem...
Roberti: NEON's approach to uncertainty estimation for sensor-based measurem...questRCN
 
Building useful models for imbalanced datasets (without resampling)
Building useful models for imbalanced datasets (without resampling)Building useful models for imbalanced datasets (without resampling)
Building useful models for imbalanced datasets (without resampling)Greg Landrum
 
Machine Learning in the Financial Industry
Machine Learning in the Financial IndustryMachine Learning in the Financial Industry
Machine Learning in the Financial IndustrySubrat Panda, PhD
 
205250 crystall ball
205250 crystall ball205250 crystall ball
205250 crystall ballp6academy
 
20220517_KoSAIM_sjp_v1.2.pdf
20220517_KoSAIM_sjp_v1.2.pdf20220517_KoSAIM_sjp_v1.2.pdf
20220517_KoSAIM_sjp_v1.2.pdfSJPark30
 
IRJET- Diagnosis of Diabetic Retinopathy using Machine Learning Algorithms
IRJET- Diagnosis of Diabetic Retinopathy using Machine Learning AlgorithmsIRJET- Diagnosis of Diabetic Retinopathy using Machine Learning Algorithms
IRJET- Diagnosis of Diabetic Retinopathy using Machine Learning AlgorithmsIRJET Journal
 
Churn Modeling-For-Mobile-Telecommunications
Churn Modeling-For-Mobile-Telecommunications Churn Modeling-For-Mobile-Telecommunications
Churn Modeling-For-Mobile-Telecommunications Salford Systems
 
Calculating a Sample Size
Calculating a Sample SizeCalculating a Sample Size
Calculating a Sample SizeMatt Hansen
 

Similar to Uncertainties in Deep Learning (20)

Credit Card Fraudulent Transaction Detection Research Paper
Credit Card Fraudulent Transaction Detection Research PaperCredit Card Fraudulent Transaction Detection Research Paper
Credit Card Fraudulent Transaction Detection Research Paper
 
OOD_PPT.pptx
OOD_PPT.pptxOOD_PPT.pptx
OOD_PPT.pptx
 
DATI, AI E ROBOTICA @POLITO
DATI, AI E ROBOTICA @POLITODATI, AI E ROBOTICA @POLITO
DATI, AI E ROBOTICA @POLITO
 
Predicting Thyroid Disorder with Deep Neural Networks
Predicting Thyroid Disorder with Deep Neural NetworksPredicting Thyroid Disorder with Deep Neural Networks
Predicting Thyroid Disorder with Deep Neural Networks
 
Deep Learning for AI (3)
Deep Learning for AI (3)Deep Learning for AI (3)
Deep Learning for AI (3)
 
presentationIDC - 14MAY2015
presentationIDC - 14MAY2015presentationIDC - 14MAY2015
presentationIDC - 14MAY2015
 
Sequence-to-Sequence Modeling for Time Series
Sequence-to-Sequence Modeling for Time SeriesSequence-to-Sequence Modeling for Time Series
Sequence-to-Sequence Modeling for Time Series
 
Why am I doing this???
Why am I doing this???Why am I doing this???
Why am I doing this???
 
Blood Cell Image Classification for Detecting Malaria using CNN
Blood Cell Image Classification for Detecting Malaria using CNNBlood Cell Image Classification for Detecting Malaria using CNN
Blood Cell Image Classification for Detecting Malaria using CNN
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health Classification
 
Roberti: NEON's approach to uncertainty estimation for sensor-based measurem...
Roberti:  NEON's approach to uncertainty estimation for sensor-based measurem...Roberti:  NEON's approach to uncertainty estimation for sensor-based measurem...
Roberti: NEON's approach to uncertainty estimation for sensor-based measurem...
 
Building useful models for imbalanced datasets (without resampling)
Building useful models for imbalanced datasets (without resampling)Building useful models for imbalanced datasets (without resampling)
Building useful models for imbalanced datasets (without resampling)
 
Image Analytics In Healthcare
Image Analytics In HealthcareImage Analytics In Healthcare
Image Analytics In Healthcare
 
Machine Learning in the Financial Industry
Machine Learning in the Financial IndustryMachine Learning in the Financial Industry
Machine Learning in the Financial Industry
 
Parkinson disease classification recorded v2.0
Parkinson disease classification recorded   v2.0Parkinson disease classification recorded   v2.0
Parkinson disease classification recorded v2.0
 
205250 crystall ball
205250 crystall ball205250 crystall ball
205250 crystall ball
 
20220517_KoSAIM_sjp_v1.2.pdf
20220517_KoSAIM_sjp_v1.2.pdf20220517_KoSAIM_sjp_v1.2.pdf
20220517_KoSAIM_sjp_v1.2.pdf
 
IRJET- Diagnosis of Diabetic Retinopathy using Machine Learning Algorithms
IRJET- Diagnosis of Diabetic Retinopathy using Machine Learning AlgorithmsIRJET- Diagnosis of Diabetic Retinopathy using Machine Learning Algorithms
IRJET- Diagnosis of Diabetic Retinopathy using Machine Learning Algorithms
 
Churn Modeling-For-Mobile-Telecommunications
Churn Modeling-For-Mobile-Telecommunications Churn Modeling-For-Mobile-Telecommunications
Churn Modeling-For-Mobile-Telecommunications
 
Calculating a Sample Size
Calculating a Sample SizeCalculating a Sample Size
Calculating a Sample Size
 

More from Silversparro Technologies (10)

Interpreting NLP Predictions
Interpreting NLP PredictionsInterpreting NLP Predictions
Interpreting NLP Predictions
 
Video Classification Basic
Video Classification Basic Video Classification Basic
Video Classification Basic
 
Video analytics in manufacturing
Video analytics in manufacturingVideo analytics in manufacturing
Video analytics in manufacturing
 
The unchartered territory of Deep fakes
The unchartered territory of Deep fakesThe unchartered territory of Deep fakes
The unchartered territory of Deep fakes
 
Building voice bots for customer service
Building voice bots for customer serviceBuilding voice bots for customer service
Building voice bots for customer service
 
Video analytics on the edge
Video analytics on the edgeVideo analytics on the edge
Video analytics on the edge
 
The promise of self supervised learning
The promise of self supervised learningThe promise of self supervised learning
The promise of self supervised learning
 
Latest trends in NLP - Exploring BERT
Latest trends in NLP -  Exploring BERTLatest trends in NLP -  Exploring BERT
Latest trends in NLP - Exploring BERT
 
Temporal Action Detection
Temporal Action DetectionTemporal Action Detection
Temporal Action Detection
 
How to Build Recommendation Systems
How to Build Recommendation SystemsHow to Build Recommendation Systems
How to Build Recommendation Systems
 

Recently uploaded

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 

Recently uploaded (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

Uncertainties in Deep Learning

  • 1. UNCERTAINTIES IN DEEP LEARNING There is always some uncertainty in our predictions No model is Perfect!
  • 2. WHY DO WE NEED TO CARE ABOUT UNCERTAINTY??
  • 3. A THREAT TO HUMAN LIFE With the rise of computation power and ability to collect more data and store it, Deep Learning has grown rapidly. Currently, Deep learning models are used in all the fields present in the market in some or the other form. With their use in safety systems and healthcare, their faults pose a threat to human life.
  • 4. In May 2016, a self-driving car made by Tesla was not able to recognize a white truck against a brightly lit sky injuring the person inside which caused a huge safety issue on the use of AI
  • 5. In july 2015, Google Photos erroneously identified two African-Americans as Gorillas raising racism issues
  • 6. TYPES OF UNCERTAINTY ● EPISTEMIC UNCERTAINTY a.k.a MODEL UNCERTAINTY ● ALEATORIC UNCERTAINTY a.k.a DATA UNCERTAINTY ○ HOMOSCEDASTIC ALEATORIC UNCERTAINTY ○ HETEROSCEDASTIC ALEATORIC UNCERTAINTY
  • 7. EPISTEMIC UNCERTAINTY ➔ Uncertainty due to limited knowledge and data ➔ Can be reduced by collecting more data intelligently
  • 9. LESS DATA vs LARGE DATA
  • 10. ALEATORIC UNCERTAINTY ➔ Uncertainty representative of noise inherent in data ➔ Cannot be reduced by collecting more data ➔ Homoscedastic Model : The noise is constant for all data points, i.e, independent of the input ➔ Heteroscedastic Model : The noise is different for all data points, i.e, input-dependent
  • 15. VARIATIONAL INFERENCE ● It is an approximation method so that the result of the integration in bayesian neural networks can be calculated ● Make T forward passes through the network for each data point ● Now use this set of predictions to estimate mean(final prediction) and variance (which is the uncertainty measure)
  • 16. DROPOUT AS BAYESIAN APPROXIMATION ● Keep dropout on at test time too ● Make T forward passes for each data point ● Use this set of predictions to get the actual final prediction and the uncertainty measures
  • 17. MODELLING ALEATORIC UNCERTAINTY ● For Homoscedastic, just add a noise term to the variance as a hyperparameter and tune it according to the validation data ● For Heteroscedastic, add a standard deviation term alongside the output but it will require some tweaking to the loss function L(ŷ,y,𝛔) = ||ŷ-y||2 /(2*𝛔2 ) + log(𝛔2 )/2
  • 18. QUANTILES AND CONFIDENCE INTERVALS ❏ Quantiles are cuts which divide the distribution into two parts ❏ x% Confidence Interval mean an interval [a,b] st the value you are measuring will lie in this interval x% of times
  • 19. QUANTILE REGRESSION ● We develop a model to predict a certain quantile of the output we want and then combine them to generate 95/99% confidence intervals ● Loss function becomes : L(ŷ,y) = max( q(ŷ-y) , (q-1)(ŷ-y) )
  • 20. SOME METRICS FOR CLASSIFICATION ● Variation Ratio = 1 - frequency of mode/T ● Entropy of mean of T vectors = - Σc pc log(pc ) ● Mutual Information = Entropy of mean of T vectors - Mean of entropies of T vectors
  • 22. MY EXPERIMENT WITH MC DROPOUT ● Accuracy with Standard Dropout - 96.17% ● Accuracy with MC Dropout - 98.12% ● With uncertainty estimates, we were able to reduce wrong predictions to only 34 out of 10000 ● Also, 98% CIFAR-10 dataset was rejected by the model Results on MNIST dataset Certain Uncertain Correct 9464 348 Incorrect 34 154
  • 23. WHEN TO USE WHICH TYPE? Aleatoric Uncertainty should be used in the cases of : ● Large data situations ● Real-time applications Epistemic Uncertainty should be used in the cases of : ● Safety-critical applications ● Small Datasets
  • 24. How can this uncertainty help us?? ● Tells whether our model is certain or not ● Helps in developing a strategy for collection of more data ● Bayesian Active Learning
  • 25. HUMAN INTERFERENCE Model output Certain Uncertain Human CheckingConfident Prediction
  • 26. EPISTEMIC UNCERTAINTY TO THE RESCUE ● Analyse all the data which results in high epistemic uncertainty ● Try to find patterns in this data
  • 28. CHALLENGES AND FUTURE WORK ● Real time epistemic uncertainty estimates are yet to be achieved ● There is still scope of improvement in the uncertainty estimates ● Not all the current models can be successfully transformed into Bayesian Neural Networks