58
How and Why AI will Revoluntionise our Everyday Life Dr. ManWai MAK Associate Professor Department of Electronic and Information Engineering The Hong Kong Polytechnic University http://www.eie.polyu.edu.hk/~mwmak STEM Lecture, 9 Feb. 2018 http://www.eie.polyu.edu.hk/~mwmak/papers/STEMLecture2018.pdf

and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

  • Upload
    lylien

  • View
    217

  • Download
    0

Embed Size (px)

Citation preview

Page 1: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

How and Why AI will Revoluntionise our Everyday Life

Dr. Man‐Wai MAKAssociate Professor

Department of Electronic and Information EngineeringThe Hong Kong Polytechnic Universityhttp://www.eie.polyu.edu.hk/~mwmak

STEM Lecture, 9 Feb. 2018http://www.eie.polyu.edu.hk/~mwmak/papers/STEM‐Lecture2018.pdf

Page 2: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

2

Contents1. What is AI and Deep Learning?2. Why are They Important?3. Applications of Deep Learning and AI4. How Deep Neural Networks Work5. Impact of AI and How will it Affect our Life6. How to Prepare for the AI Age

2

Page 3: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

3

What is Artificial Intelligence (AI)• AI is a rigorous science focusing on designing intelligent systems using algorithms inspired by what we know about the brain.

• Intelligent systems are capable of performing tasks that normally require human intelligence, such as visual perception, speech recognition, autonomous driving, etc.

• These systems use machine learning algorithms to learn the tasks from massive amount of data 

• The more data they learn, the smarter they become

Page 4: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

4

AI Algorithms

Artificial Intelligence人工智能

Machine Learning機器學習

Deep Learning深度學習

Page 5: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

5

Contents1. What is AI and Deep Learning?2. Why are They Important?3. Applications of Deep Learning and AI4. How Deep Neural Networks Work5. Impact of AI and How will it Affect our Life6. How to Prepare for the AI Age

2

Page 6: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

6

Why AI is Important

http://fortune.com/2016/10/05/ai-artificial-intelligence-deep-learning-employers/

Economic TimesJune 17

Page 7: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

7

Why AI is Important

信報財經月刊 484期 2017年7月號

Page 8: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

8

Why AI is Important

Page 9: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

9

Why AI is Important

Page 10: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

10

Contents1. What is AI and Deep Learning?2. Why are They Important?3. Applications of Deep Learning and AI4. How Deep Neural Networks Work5. Impact of AI and How will it Affect our Life6. How to Prepare for the AI Age

2

Page 11: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

11

Applications of Deep Learning

• Google Neural Machine Translation:LSTM‐RNN w/ Attention & 

Transfer Learning

https://research.googleblog.com/2016/11/zero-shot-translation-with-googles.html

Page 12: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

12

Applications of Deep Learning

• Handwritten Digit Synthesis:

http://dpkingma.com/sgvb_mnist_demo/demo.html

Page 13: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

13

Applications of Deep Learning• Morphing Faces:

http://vdumoulin.github.io/morphing_faces/online_demo.html

Page 14: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

14

Applications of Deep Learning

http://www.vision.caltech.edu/anelia/publications/Tokyo_DeepNets_Anelia.pdf

Page 15: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

15

Applications of Deep Learning• Speech Recognition:

DNN Speech Recognition and Translation by Microsoft Research in Beijing

https://www.youtube.com/watch?v=Nu-nlQqFCKg&feature=youtu.be

Page 16: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

16http://spectrum.ieee.org/consumer-electronics/audiovideo/deep-learning-reinvents-the-hearing-aid

Applications of Deep Learning• Hearing Aids:

Page 17: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

17

Applications of Deep Learning• Emotion Recognition:

https://azure.microsoft.com/en-us/services/cognitive-services/emotion/

Chance of “Anger” = 0.8

Page 18: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

18Elgammal et al. https://arxiv.org/abs/1706.07068 (2017)

Applications of Deep Learning• Generating Arts: Creative Adversarial 

Network 

Page 19: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

19

Applications of Deep Learning• Generating speech and music: Generative 

Adversarial Network (GAN) 

https://deepmind.com/blog/wavenet‐generative‐model‐raw‐audio/

Text‐to‐speech synthesis

Same speech different speakers

Piano music produced by the GAN

Page 20: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

20

Music Generation and Composition• DeepBach: A symphony could be in the style of composer Johann Sebastian Bach

Page 21: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

21

Applications of Deep Learning• Editing photos:

Generative Adversarial Network 

https://www.youtube.com/watch?v=FDELBFSeqQs

Page 22: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

22

Applications of Deep Learning• Synthesize photos:

Generative Adversarial Network 

https://www.youtube.com/watch?v=u7kQ5lNfUfg

Page 23: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

23

Automatic Article/Report Generation• AI programs have been used to compile information and turn them into financial summaries and sports score recaps.

• The Associated Press uses Wordsmith to transform raw earnings data into thousands of publishable stories, covering hundreds more quarterly earnings stories than previous manual efforts.

• These AI programs use technologies known as “Natural Language Processing 自然語言處理”

Page 24: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

24

Automatic Article/Report Generation

Page 25: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

25

Automatic Article/Report GenerationMarvin Lee Minsky, 88, passed away January 24, 2016 in Boston, Massachusetts of cerebral hemorrhaging.

Born August 9, 1927 in New York City, New York, to parents Fannie Reiser and Henry Minsky, Marvin Minsky was known for his pioneer contribution to the field of artificial intelligence (AI). After graduating from Phillips Academy, Minskyattended Harvard University, graduating with a BA in Mathematics in 1950. He continued his education at Princeton University, ultimately graduating with a a PhD in Mathematics in 1954.

Minsky is survived by his wife Gloria Minsky; three children, Margaret Minsky, Julie Minsky, and Henry Minsky.

Minsky’s name and age, the cause of death, and names of family members

Page 26: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

26

AI Playing Video Games

https://www.youtube.com/watch?v=V1eYniJ0Rnk

Page 27: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

27

Contents1. What is AI and Deep Learning?2. Why are They Important?3. Applications of Deep Learning and AI4. How Deep Neural Networks Work5. Impact of AI and How will it Affect our Life6. How to Prepare for the AI Age

2

Page 28: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

28

Geometric Interpretation• Slope‐intercept form of a straight line:

y = mx+ b

Slope = m b

x

y

y = f (x)

Slope = m b

x

z= mx+ b

z

z = f (x)

1b

Page 29: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

29

Geometric Interpretation• Slopes‐intercept form of a plane:

b

1b

Page 30: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

30

Geometric Interpretation• A linear equation cannot solve complex problems• So, we apply a non‐linear function to z

z

x

y

b

Page 31: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

31

A Neural Network with One Neuron

1

b

Artificial Neuron

Biological Neuron

Our brain has about 80 billion neurons, 100 trillion connections

Connection Weights

Page 32: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

32

• Neural network can be used as a classifier, e.g., classifying cats and dogs

A Neural Network with One Neuron

x

b

zy

mx

my z0= σ(z)

Page 33: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

33

A Neural Network with One Neuron• One neuron cannot do much, not even for the following problem:

Page 34: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

34

A Neural Network with Multiple Neurons• To solve more complex problems, we may use multiple neurons and combine the outputs of these neurons

• Then, we have an artificial neural network (ANN) with one hidden layer.

11

Hidden Layer

Page 35: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

35

A Neural Network with Multiple Layers• To solve real‐world problems, we need multiple layers• Then, we have deep neural networks (DNN)

Input stimulus (human) that leads to max activation of this node

Input stimulus (cat) that leads to max activation of this node

CatNot Cat

Page 36: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

36

A Neural Network with Multiple Layers

Identifying light and dark

Identifying edge and 

simple shapesIdentifying 

complex shapes and objects

Identifying objects that can be used for recognizing 

faces

周潤發

http://www.nature.com/news/computer-science-the-learning-machines-1.14481

Page 37: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

37

A Neural Network with Multiple Layers• GoogleNet for image classification

• We use deep learning algorithms to find the weights of this network.

Page 38: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

38

How Deep Learning Find the Weights• A DNN could have millions of weights• How to find these weights has been a problem for computer scientists and engineers for many years.

• The basic idea is to start from randomized weights.• Then, we tell the network what went wrong and adjust the weights to reduce the number of mistakes.

• By repeating this process hundreds of times, we obtain a DNN with a proper set of weights that can solve our problem.

• This is called supervised learning, which is similar to how we learn things when a teacher tells us what is right and what is wrong.

• Instead of write computer programs to define the rules, we let the DNN to learn the rules from the data. 

Page 39: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

39

Deep Learning Software Stack

TensorFlow(Google)

Theano(U. of Montreal)

BLAS          cuBLAS, cuDNN, cuRAND

NumPy Gpuarray

Eigen::Tensor

Keras

CPU GPU

Torch(Facebook)

Caffe/Caffe2(Berkeley AI Researcy)

pyTorch

CNTK(Microsoft)

They are all free!

Page 40: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

40

Cloud Computing Platforms for AI

AI Software

Page 41: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

41

Cloud Computing Platforms for AI

Google Cloud Platform

Amazon EC2

Microsoft Azure

Page 42: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

42

The Next Frontier of AI

• Affective Computing: Teaching computers to understand human emotions and to express emotions.

• Neuroscience: Understand how the brain works• Consciousness: Making computers to become self‐aware• Quantum Computing: 100 million times faster than today’s computers 

Page 43: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

43

Contents1. What is AI and Deep Learning?2. Why are They Important?3. Applications of Deep Learning and AI4. How Deep Neural Networks Work5. Impact of AI and How will it Affect our Life6. How to Prepare for the AI Age7. Tools and Platform for Development AI Applications

2

Page 44: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

44

Impact of AI

Page 45: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

45

Impact of AI

信報財經月刊 484期, 2017年7月號

Page 46: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

46

www.hkej.com, 20/9/17 Impact of AI

Page 47: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

Impact of AI

47Hong Kong Economic Journal, 2017

Page 48: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

Impact of AI

48Hong Kong Economic Journal, 2017

Page 49: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

Impact of AI

49

https://www.youtube.com/watch?v=wlz6XDQooUI

https://www.youtube.com/watch?v=mQO2PcEW9BY

The AI Race ‐ Documentary ABC TV

A.I. is Progressing Faster Than You Think!

Page 50: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

50

Contents1. What is AI and Deep Learning?2. Why are They Important?3. Applications of Deep Learning and AI4. How Deep Neural Networks Work5. Impact of AI and How will it Affect our Life6. How to Prepare for the AI Age

2

Page 51: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

51

How to Prepare for the AI Age• A number of reports predict that about 50% of the current jobs will gone in the next two decades.

• History tells us that automation replaces jobs but will also create new opportunities.

• Almost all industries will be benefit from AI.• People with tech skills will have more opportunities in the future, because even the most intelligent of machines cannot function without humans.

Page 52: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

52

How to Prepare for the AI Age• Microsoft co‐founder, Bill Gates, said people with three backgrounds will be the most in‐demand in the future: – science, – engineering and – economics. 

Page 53: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

53

How to Prepare for the AI Age• Schools need to do a better job of teaching computer skills to build up the new generation of knowledge workers

• Instead of showing students how to type Microsoft Word documents, they should be teaching how to write code

• We need to stop preparing kids for specific jobs; instead, we should give them the opportunity to build up their intuition and creativity

• Our next generation should be guided toward careers that can’t be substituted by technology

• We should stop asking kids what they want to be when they grow up; instead, we need to give them the tools and the ability to innovate in whichever direction they want to go in

Page 54: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

• AI and Robotics• Big Data• Genomics• FinTech

How to Prepare for the AI Age

Page 55: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

55https://code.facebook.com/posts/384869298519962/artificial-intelligence,-revealed/

Message from Yann LeCun, Head of AI Research in Facebook

“Math and physics classes are where one learns the basic methods for AI, machine learning, data science, and many of the jobs of the future. Take all the math class you can possibly take, including Calc I, Calc II, Calc III, Linear Algebra, Probability, and Statistics.”

How to Prepare for the AI Age

Page 56: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

56

Take Home Messages for Students• Learn math and physics in high schools• Learn how to write computer programs• Get a degree in engineering, information technology, or computer science

• Be creative and like to learn new things 

Page 57: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

57

To Probe Further1. Domingos, Pedro. The master algorithm: How the quest for the ultimate learning 

machine will remake our world. Basic Books, 2015.2. Ford, Martin. Rise of the Robots: Technology and the Threat of a Jobless Future. 

Basic Books, 2015. 3. 李开复, 人工智能:李开复谈AI如何重塑个人、商业与社会的未来图谱, 

Cultural Development Press, 2017.4. Alex Ross, The Industries of the Future, Simon & Schuster, 20165. Pistono, Federico. Robots will steal your job, but that's ok: How to survive the 

economic collapse and be happy. Federico Pistono, 2014.6. 信報財經月刊 484期, 2017年7月號

Page 58: and Why AI will Revoluntionise our Everyday Lifemwmak/papers/STEM-Lecture2018.pdf · How and Why AI will Revoluntionise our ... Marvin Lee Minsky, 88, passed away January 24,

58

Thanks