45
발표자 : 백인성

1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

발표자 : 백인성

Page 2: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 2 -Copyright ⓒ 2019, All rights reserved.

Page 3: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

1. Introduction

Page 4: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 4 -Copyright ⓒ 2019, All rights reserved.

이번 행사의성공 가능성을분석해 보게

네. 지난 행사기록 중심으로분석해 보겠습

니다.

[사업부 팀장] [1년차 신입사원]

Page 5: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 5 -Copyright ⓒ 2019, All rights reserved.

분석 결과,이번행사 성공률은80%입니다.

근데 왜?? 무엇 때문인지알아야 우리가기획을 하지

[사업부 팀장][1년차 신입사원]

Page 6: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 6 -Copyright ⓒ 2019, All rights reserved.

현업에 있는분들 설득하려면근거가 필요해요.

모델에서 중요하다고 하는 변수와저희 예상과 비슷한 지 비교해보죠

[B사 팀장][A사 팀장]

Page 7: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 7 -Copyright ⓒ 2019, All rights reserved.

1. 예측 모델을 실제로 사용하는 사람들의 이해를 돕기 위해

2. 의사결정하는 사람들을 조금 더 쉽게 설득하기 위해

3. 구축한 예측 모델의 결과의 타당함을 직관적으로 보이기 위해

Page 8: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 8 -Copyright ⓒ 2019, All rights reserved.

Page 9: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 9 -Copyright ⓒ 2019, All rights reserved.

Page 10: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

2. [CNN]Convolutional Neural Network

Page 11: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 11 -Copyright ⓒ 2019, All rights reserved.

[Input data][Convolutional Layer] [Neural Network]

아이언맨 : 80%

워머신 : 10%

스파이더맨: 8%

캡틴아메리카: 2%

Page 12: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 12 -Copyright ⓒ 2019, All rights reserved.

Page 13: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 13 -Copyright ⓒ 2019, All rights reserved.

Page 14: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 14 -Copyright ⓒ 2019, All rights reserved.

Page 15: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 15 -Copyright ⓒ 2019, All rights reserved.

Page 16: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 16 -Copyright ⓒ 2019, All rights reserved.

Page 17: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

3. [CAM]Class Activation Map

Page 18: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 18 -Copyright ⓒ 2019, All rights reserved.

Page 19: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 19 -Copyright ⓒ 2019, All rights reserved.

3 2 0

5 2 1

5 0 9

GAP

[3x3x3(Channel)]

3

[1x1x3(channel)]

Page 20: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 20 -Copyright ⓒ 2019, All rights reserved.

1 0 9

3 2 7

4 3 2

0 0 7

5 2 1

2 2 1

3 3 0

5 2 1

5 0 9

* 𝑤1

* 𝑤2

* 𝑤3

Page 21: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

4. Interpretable Convolutional Neural Network

Page 22: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 22 -Copyright ⓒ 2019, All rights reserved.

Page 23: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 23 -Copyright ⓒ 2019, All rights reserved.

Page 24: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 24 -Copyright ⓒ 2019, All rights reserved.

Page 25: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 25 -Copyright ⓒ 2019, All rights reserved.

2 1 0 1

3 7 19 11

0 5 14 5

0 1 2 1

1 0

0 5

[After ReLu Activation] [Filter]

37 96 55

28 77 46

5 15 19

[Feature map]

0 2

1 1

12 26 32

19 57 41

11 31 12

Step1.

Step2.

Page 26: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 26 -Copyright ⓒ 2019, All rights reserved.

𝜇𝑖로 지정한 Template을 구성

1 0

0 5

[Filter]

37 96 55

28 77 46

5 15 19

[Feature map_Train]

0 2

1 1

12 26 32

19 57 41

11 31 12

Step1.

Step2.

[Template]

𝜇𝑖

𝑥𝑖

Page 27: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 27 -Copyright ⓒ 2019, All rights reserved.

9 21 30

5 100 51

0 21 22

[Feature map_Test]

1 11 7

21 88 62

9 30 51

[Template_cat] [after_Template]

Page 28: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 28 -Copyright ⓒ 2019, All rights reserved.

Page 29: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 29 -Copyright ⓒ 2019, All rights reserved.

Page 30: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 30 -Copyright ⓒ 2019, All rights reserved.

Page 31: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 31 -Copyright ⓒ 2019, All rights reserved.

Page 32: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 32 -Copyright ⓒ 2019, All rights reserved.

Data 내용 이미지

Animal-PartHeads and legs of

30 animals

CUB200-2011Bird image of 200

pieces

Pascal VOC Part107 object

landmarks in six animal categories

Page 33: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 33 -Copyright ⓒ 2019, All rights reserved.

𝑑1 𝑝𝑘, Ƹ𝜇 =𝑝𝑘 − 𝑝( Ƹ𝜇)

𝑤2 + ℎ2

Normalized distance :

𝐷𝑓,𝑘 = 𝑣𝑎𝑟𝐼 𝑑𝐼(𝑝𝑘,ෝ𝜇)

Relative location deviation :

Page 34: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 34 -Copyright ⓒ 2019, All rights reserved.

𝑑1 𝑝𝑘, Ƹ𝜇 =𝑝𝑘 − 𝑝( Ƹ𝜇)

𝑤2 + ℎ2

Normalized distance :

𝐷𝑓,𝑘 = 𝑣𝑎𝑟𝐼 𝑑𝐼(𝑝𝑘,ෝ𝜇)

Relative location deviation :

Page 35: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 35 -Copyright ⓒ 2019, All rights reserved.

𝑑1 𝑝𝑘, Ƹ𝜇 =𝑝𝑘 − 𝑝( Ƹ𝜇)

𝑤2 + ℎ2

Normalized distance :

𝐷𝑓,𝑘 = 𝑣𝑎𝑟𝐼 𝑑𝐼(𝑝𝑘,ෝ𝜇)

Relative location deviation :

Page 36: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 36 -Copyright ⓒ 2019, All rights reserved.

𝑑1 𝑝𝑘, Ƹ𝜇 =𝑝𝑘 − 𝑝( Ƹ𝜇)

𝑤2 + ℎ2

Normalized distance :

𝐷𝑓,𝑘 = 𝑣𝑎𝑟𝐼 𝑑𝐼(𝑝𝑘,ෝ𝜇)

Relative location deviation :

Page 37: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 37 -Copyright ⓒ 2019, All rights reserved.

𝑑1 𝑝𝑘, Ƹ𝜇 =𝑝𝑘 − 𝑝( Ƹ𝜇)

𝑤2 + ℎ2

Normalized distance :

𝐷𝑓,𝑘 = 𝑣𝑎𝑟𝐼 𝑑𝐼(𝑝𝑘,ෝ𝜇)

Relative location deviation :

Page 38: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 38 -Copyright ⓒ 2019, All rights reserved.

Page 39: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 39 -Copyright ⓒ 2019, All rights reserved.

Page 40: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 40 -Copyright ⓒ 2019, All rights reserved.

Page 41: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

5. Conclusion

Page 42: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 42 -Copyright ⓒ 2019, All rights reserved.

Page 43: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

감사합니다.

Page 44: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

- 44 -Copyright ⓒ 2019, All rights reserved.

[CAM Last Layer] [Interpretable CNN Last Layer]

Page 45: 1. Introductiondmqm.korea.ac.kr/uploads/seminar/Explainable CNN_190503... · 2019-05-24 · 4. Interpretable Convolutional Neural Network. Copyright ⓒ2019, All rights reserved

Figure: Basic architecture of Convolutional Neural Networks(https://pydeeplearning.weebly.com/blog/basics-

of-convolutional-neural-networks)

https://bcho.tistory.com/1149(조대협의 블로그)

https://blog.ees.guru/50 (EeS의 연구실)

Quanshi Zhang, Ying Nian Wu, and Song-Chun Zhu(2018). Interpretable Convolutional Neural Networks.

Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 8827-8836)

http://taewan.kim/post/cnn/

https://medium.com/@kamwohng/interpretable-convolutional-neural-network-3f7ef6c9b7ae