FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C....

49
FYS: AI in Healthcare Interpretability in Machine Learning John Lalor October 23, 2018 1

Transcript of FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C....

Page 1: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

FYS: AI in Healthcare

Interpretability in Machine Learning

John Lalor

October 23, 2018

1

Page 2: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Admin

Midterm questions?

2

Page 3: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Why is interpretability important?

Caruana, Rich, et al. “Intelligible models for healthcare: Predicting pneumonia risk and hospital 30-day

readmission.” Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data

Mining. ACM, 2015.

3

Page 4: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Evaluation-Interpretability Relationship

Lipton, Zachary C. “The Mythos of Model Interpretability.” Queue 16.3 (2018): 30.

4

Page 5: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Why do we want interpretability?

Trust

https://waymo.com/ontheroad/ 5

Page 6: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Why do we want interpretability?

Causality

Caruana, Rich, et al. “Intelligible models for healthcare: Predicting pneumonia risk and hospital 30-day

readmission.” Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data

Mining. ACM, 2015.

5

Page 7: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Why do we want interpretability?

Transferability

Paschali, Magdalini, et al. “Generalizability vs. Robustness: Adversarial Examples for Medical Imaging.”

arXiv:1804.00504 (2018).

5

Page 8: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Why do we want interpretability?

Informativeness

Ribeiro, Marco Tulio, Sameer Singh, and Carlos Guestrin. “Why should i trust you?: Explaining the predictions

of any classifier.” Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and

data mining. ACM, 2016.

5

Page 9: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Why do we want interpretability?

Fairness (e.g. the right to an explanation)

5

Page 10: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Transparency

Black

boxX Y

Clear

boxX Y

Model transparency (simulatability)

Parameter transparency (decomposability)

Training transparency (algorithmic transparency)

6

Page 11: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Transparency

Black

boxX Y

Clear

boxX Y

Model transparency (simulatability)

Parameter transparency (decomposability)

Training transparency (algorithmic transparency)

6

Page 12: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Transparency

Black

boxX Y

Clear

boxX Y

Model transparency (simulatability)

Parameter transparency (decomposability)

Training transparency (algorithmic transparency)

6

Page 13: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Model transparency

Given the input data and model parameters:

Could a human produce an output?

In some reasonable amount of time?

Example: BOW logistic regression

Example: fully-connected DNN with hidden layer size 10

7

Page 14: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Model transparency

Given the input data and model parameters:

Could a human produce an output?

In some reasonable amount of time?

Example: BOW logistic regression

Example: fully-connected DNN with hidden layer size 10

7

Page 15: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Model transparency

Given the input data and model parameters:

Could a human produce an output?

In some reasonable amount of time?

Example: BOW logistic regression

Example: fully-connected DNN with hidden layer size 10

7

Page 16: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Parameter transparency

Each part of the model is intuitive

Inputs

Parameters

Calculations

Ex.: Descriptive decision tree nodes

Ex.: Linear model parameters

Caveat: Can be fragile depending on pre-processing

8

Page 17: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Parameter transparency

Each part of the model is intuitive

Inputs

Parameters

Calculations

Ex.: Descriptive decision tree nodes

Ex.: Linear model parameters

Caveat: Can be fragile depending on pre-processing

8

Page 18: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Parameter transparency

Each part of the model is intuitive

Inputs

Parameters

Calculations

Ex.: Descriptive decision tree nodes

Ex.: Linear model parameters

Caveat: Can be fragile depending on pre-processing

8

Page 19: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Parameter transparency

Each part of the model is intuitive

Inputs

Parameters

Calculations

Ex.: Descriptive decision tree nodes

Ex.: Linear model parameters

Caveat: Can be fragile depending on pre-processing

8

Page 20: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Algorithmic transparency

Insight into the decision-making process

Linear models?

DNNs?

Humans?

9

Page 21: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Algorithmic transparency

Insight into the decision-making process

Linear models?

DNNs?

Humans?

9

Page 22: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Algorithmic transparency

Insight into the decision-making process

Linear models?

DNNs?

Humans?

9

Page 23: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Algorithmic transparency

Insight into the decision-making process

Linear models?

DNNs?

Humans?

9

Page 24: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Explanability

Human interpretability

After the fact interpretation

Not part of model training

10

Page 25: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Text

Lei, Tao, Regina Barzilay, and Tommi Jaakkola. “Rationalizing Neural Predictions.” EMNLP 2016.

11

Page 26: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Visualizations

Maaten, Laurens van der, and Geoffrey Hinton. “Visualizing data using t-SNE.” Journal of machine learning

research 9.Nov (2008): 2579-2605.

12

Page 27: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Local explanations

Simonyan, Karen, Andrea Vedaldi, and Andrew Zisserman. “Deep inside convolutional networks: Visualising

image classification models and saliency maps.” arXiv:1312.6034 (2013).

13

Page 28: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Explanations by example

Mikolov, Tomas, et al. “Distributed representations of words and phrases and their compositionality.” Advances

in neural information processing systems. 2013.

14

Page 29: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Explanations by example

15

Page 30: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Explanations by example

15

Page 31: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Interpretability Examples

Page 32: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Saliency maps

argmaxI

Sc(I )− λ||I ||22Simonyan, Karen, Andrea Vedaldi, and Andrew Zisserman. “Deep inside convolutional networks: Visualising

image classification models and saliency maps.” arXiv:1312.6034 (2013).16

Page 33: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Saliency maps

Simonyan, Karen, Andrea Vedaldi, and Andrew Zisserman. “Deep inside convolutional networks: Visualising

image classification models and saliency maps.” arXiv:1312.6034 (2013).

16

Page 34: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Gradient based localization: Grad-CAM

Analyzing failures

Selvaraju, Ramprasaath R., et al. “Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based

Localization.” ICCV. 2017.17

Page 35: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Gradient based localization: Grad-CAM

Handling adversarial noise

Selvaraju, Ramprasaath R., et al. “Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based

Localization.” ICCV. 2017.

17

Page 36: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Gradient based localization: Grad-CAM

Counterfactuals

Selvaraju, Ramprasaath R., et al. “Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based

Localization.” ICCV. 2017.

17

Page 37: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Interpretability in healthcare

Ahmad, M. et al. “Interpretable Machine Learning in Healthcare.” ACM-BCB 2018. 18

Page 38: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Activity: Interpretability

Page 39: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19

Page 40: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19

Page 41: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19

Page 42: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19

Page 43: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19

Page 44: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19

Page 45: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19

Page 46: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19

Page 47: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19

Page 48: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19

Page 49: FYS: AI in Healthcare - GitHub Pages · Evaluation-Interpretability Relationship Lipton, Zachary C. \The Mythos of Model Interpretability." Queue 16.3 (2018): 30. 4

Is it interpretable?

• Food

Grocery store

Restaurant

• Travel

Airlines

Google maps

• Learning

In the classroom

Learning by doing

• Law

• Taxes

19