SlideShare a Scribd company logo
Learn AI
in 45 Minutes
PRESENTED BY Lin GU and Shijie NIE
CONTENTS
Why AI?
ABC of AI
AI is taking human job NOW
Basic knowledge about AI
A Real Case
Conclusion
Write a program in 30 minutes to
replace your colleague’s work
Take away message
Why AI?
People used to believe AI could never
beat human in Go
1997 :
October
2015:
March 2016: April 2017:
Amateur 5-dan Fan Hui
2-Dan
Lee Sedol
4:1
Ke Jie (Top Human Go Player)
3:0
AI Is Replacing
Human Now
50% 90% 85%
Within the next
decade or two,
50% of current
jobs would be
replaced, Oxford
15 years' time,
90% of news will
be written by
machines.
Between 2000-
2010, 85% of
manufacturing
jobs were lost
due to
automation
Top Jobs to Be
Replaced
first
Microsoft is proposing research to let AI write
the codes.
second
AI is replacing doctors.
Data Entry
Keyers
Photo
Processor
Insurance
Underwriters
Office
Clerks
Account
ants
AI in Breast Cancer
Screening
Mammogram
Breast cancer is the most
common invasive cancer in
females worldwide. Therefore,
every woman should take
mammogram screening annually
after 40.
Two Doctors Before
Previously, a mammogram should be
checked by two radiologists.
One Doctor Now
Now, it is read by one computer and
reviewed by a radiologists.
As Good As Doctors
AI shows almost equal
performance (AUC 0.82) with
three of the radiologists (0.77-
0.87).
Trading floor in
UBS’ OFFICE
first second Third
The Swiss bank's trading floor in Connecticut
was as big as 20 basketball courts
Goldman Sachs’s New York headquarters
employed 600 traders, today there are just two
equity traders left. (500K USD per Year)
Across Goldman Sachs, over 30% of their staff
are now computer engineers.
ABC of A.I.
Image
Classification
Assign An Input
Image One Label
For example, in the image below an image
classification model takes a single image and
assigns probabilities to 4 labels, {cat, dog, hat,
mug}. As shown in the image, keep in mind
that to a computer an image is represented as
one large 3-dimensional array of numbers. In
this example, the cat image is 248 pixels wide,
400 pixels tall, and has three color channels
Red,Green,Blue (or RGB for short). Therefore,
the image consists of 248 x 400 x 3 numbers,
or a total of 297,600 numbers. Each number is
an integer that ranges from 0 (black) to 255
(white). Our task is to turn this quarter of a
million numbers into a single label, such as
“cat”.
AI Pipeline
Train Data
Input: Our input consists of a set of N images, each labeled with one of K different classes. We refer to
this data as the training set.
Learning: Our task is to use the training set to learn what every one of the classes looks like. We refer to
this step as training a classifier, or learning a model.
Evaluation: In the end, we evaluate the quality of the classifier by asking it to predict labels for a new set
of images that it has never seen before. We will then compare the true labels of these images to the
ones predicted by the classifier. Intuitively, we’re hoping that a lot of the predictions match up with the
true answers (which we call the ground truth).
AI Prediction
(1.2 million images with 1000 categories)
Nearest Neighbor
Classifier
Which Is Nearest
TEXT
点击此处添加标题
标题数字等都可以通过点击和重新输入进行更改,顶部“开始”面
板中可以对字体、字号、颜色、行距等进行修改。建议正文12号字,
1.3倍字间距。标题数字等都可以通过点击和重新输入进行更改,
顶部“开始”面板中可以对字体、字号、颜色、行距等进行修改。
建议正文12号字,1.3倍字间距。
标题数字等都可以通过点击和重新输入进行更改,顶部“开始”面
板中可以对字体、字号、颜色、行距等进行修改。建议正文12号字,
1.3倍字间距。
Challenges
TEXT
点击此处添加标题
标题数字等都可以通过点击和重新输入进行更改,顶部“开始”面
板中可以对字体、字号、颜色、行距等进行修改。建议正文12号字,
1.3倍字间距。标题数字等都可以通过点击和重新输入进行更改,
顶部“开始”面板中可以对字体、字号、颜色、行距等进行修改。
建议正文12号字,1.3倍字间距。
标题数字等都可以通过点击和重新输入进行更改,顶部“开始”面
板中可以对字体、字号、颜色、行距等进行修改。建议正文12号字,
1.3倍字间距。
Why Deep
Learning
Deep learning (also known as deep structured
learning or hierarchical learning) is the
application to learning tasks of artificial neural
networks (ANNs) that contain more than one
hidden layers.
Pros and Cons
Requires GPU
Over-fitting
Automatic speech recognition,
Image recognition, Natural
language processing, Drug
discovery and toxicology,
Customer relationship
management, Recommendation
systems
Various Applications
The training takes a lot of time,
but it is fast in testing.
Fast in Implementation
What is Deep
Learning
The basic computational unit of the brain is a neuron. The area of Neural
Networks has originally been primarily inspired by the goal of modelling
biological neural systems, but has since diverged and become a matter of
engineering and achieving good results in Machine Learning tasks.
What is Deep
Learning
ConvNets transform the original image layer by layer from the original pixel
values to the final class scores.
What is Deep
Learning
A Real Example
Category
Correction
Many products
are assigned into
a wrong category
Detect the misplaced
products
Reassign into the right
genres
NOISE!
Cat or Dog ?
We will present a few simple yet effective
methods that you can use to build a
powerful image classifier, using only very
few training examples.
First Second Third
Only 2000 training examples (1000
per class).
Training a small network from
scratch (as a baseline)
Fine-tuning the top layers of a pre-
trained network to improve.
Deep Learning for
Small Data
first
Rotation_range is a value in degrees (0-180), a
range within which to randomly rotate pictures
second
Zoom_range is for randomly zooming inside
pictures.
Third
Fill_mode is the strategy used for filling in
newly created pixels, which can appear after a
rotation or a width/height shift.
Training A Small
Convnet from Scratch
first
3 convolution layers with a ReLU activation and
followed by max-pooling layers.
second
On top of it we stick two fully-connected layers.
Third
80% accuracy in 40 lines of code
model = Sequential()
model.add(Conv2D(32, (3, 3), input_shape=(3, 150, 150)))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Conv2D(32, (3, 3)))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Conv2D(64, (3, 3)))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(2, 2)))
Using the bottleneck features of a
pre-trained network.
VGG16
Only instantiate the convolutional part of the model,
everything up to the fully-connected layers. We will then run
this model on our training and validation data once,
recording the output (the "bottleneck features" from th
VGG16 model: the last activation maps before the fully-
connected layers) in two numpy arrays. Then we will train a
small fully-connected model on top of the stored features.
VGG16 architecture, pre-trained on the ImageNet dataset --a
model previously featured on this blog. Because the
ImageNet dataset contains several "cat" classes (persian cat,
siamese cat...) and many "dog" classes among its total of
1000 classes.
Using the bottleneck features of a
pre-trained network.
VGG16
Only instantiate the convolutional part of the model,
everything up to the fully-connected layers. We will then run
this model on our training and validation data once,
recording the output (the "bottleneck features" from th
VGG16 model: the last activation maps before the fully-
connected layers) in two numpy arrays. Then we will train a
small fully-connected model on top of the stored features.
VGG16 architecture, pre-trained on the ImageNet dataset --a
model previously featured on this blog. Because the
ImageNet dataset contains several "cat" classes (persian cat,
siamese cat...) and many "dog" classes among its total of
1000 classes.
Fine-tuning the Network
first
Instantiate the convolutional base of VGG16
and load its weights
second
Add our previously defined fully-connected
model on top, and load its weights
second
Freeze the layers of the VGG16 model up to the
last convolutional block
Fine-tuning the top layers of a a
pre-trained network
VGG16
Instantiate the convolutional base of VGG16 and load its
weights.
Fine-tuning the top layers of a a
pre-trained network
VGG16
Instantiate the convolutional base of VGG16 and load its
weights.
Accuracy
Improvement
79% 90% 94% 98%
First Round Bottleneck
Features
of VGG16
Fine Tune 25,000 training
images.
Off-the-shelf Deep
Learning Techniques
ResNet Pre-Activation Resnet Inception V3 Xception
Q&A
Lin GU
lingu.edu@gmail.com
Shijie Nie
nieshijie2011@gmail.com

More Related Content

PDF
Fashion product de-duplication with image similarity and LSH
Eddie Bell
 
PDF
Finding needles in haystacks with deep neural networks
Calvin Giles
 
PDF
Learning from Simulated and Unsupervised Images through Adversarial Training....
eraser Juan José Calderón
 
PDF
John Maxwell, Data Scientist, Nordstrom at MLconf Seattle 2017
MLconf
 
PPTX
Intro to machine learning
Akshay Kanchan
 
PDF
Machine learning
Andrea Iacono
 
PDF
The ABC of Implementing Supervised Machine Learning with Python.pptx
Ruby Shrestha
 
PPTX
A friendly introduction to GANs
Csongor Barabasi
 
Fashion product de-duplication with image similarity and LSH
Eddie Bell
 
Finding needles in haystacks with deep neural networks
Calvin Giles
 
Learning from Simulated and Unsupervised Images through Adversarial Training....
eraser Juan José Calderón
 
John Maxwell, Data Scientist, Nordstrom at MLconf Seattle 2017
MLconf
 
Intro to machine learning
Akshay Kanchan
 
Machine learning
Andrea Iacono
 
The ABC of Implementing Supervised Machine Learning with Python.pptx
Ruby Shrestha
 
A friendly introduction to GANs
Csongor Barabasi
 

What's hot (20)

PPTX
[Revised] Intro to CNN
Vincent Tatan
 
PPTX
Diving into Deep Learning (Silicon Valley Code Camp 2017)
Oswald Campesato
 
PDF
Data Science - Part XVII - Deep Learning & Image Processing
Derek Kane
 
PDF
“Introducing Machine Learning and How to Teach Machines to See,” a Presentati...
Edge AI and Vision Alliance
 
PPTX
Ml ppt at
pradeep kumar
 
PDF
Introduction to Machine Learning in Python using Scikit-Learn
Amol Agrawal
 
PDF
Using Deep Learning to Find Similar Dresses
HJ van Veen
 
PDF
Classification case study + intro to cnn
Vincent Tatan
 
PDF
Bol.com
BigDataExpo
 
PDF
Generative Adversarial Networks (D2L5 Deep Learning for Speech and Language U...
Universitat Politècnica de Catalunya
 
PPTX
Learning to compare: relation network for few shot learning
Simon John
 
PPTX
Deep Learning: Chapter 11 Practical Methodology
Jason Tsai
 
PPTX
brief Introduction to Different Kinds of GANs
Parham Zilouchian
 
PDF
Sara Hooker & Sean McPherson, Delta Analytics, at MLconf Seattle 2017
MLconf
 
PDF
Deep Learning for Computer Vision: Generative models and adversarial training...
Universitat Politècnica de Catalunya
 
PDF
Hanie Sedghi, Research Scientist at Allen Institute for Artificial Intelligen...
MLconf
 
PDF
Evolutionary Design of Swarms (SSCI 2014)
Benjamin Bengfort
 
PDF
Variants of GANs - Jaejun Yoo
JaeJun Yoo
 
PPTX
Few shot learning/ one shot learning/ machine learning
ﺁﺻﻒ ﻋﻠﯽ ﻣﯿﺮ
 
PDF
Machine Learning for Everyone
Dhiana Deva
 
[Revised] Intro to CNN
Vincent Tatan
 
Diving into Deep Learning (Silicon Valley Code Camp 2017)
Oswald Campesato
 
Data Science - Part XVII - Deep Learning & Image Processing
Derek Kane
 
“Introducing Machine Learning and How to Teach Machines to See,” a Presentati...
Edge AI and Vision Alliance
 
Ml ppt at
pradeep kumar
 
Introduction to Machine Learning in Python using Scikit-Learn
Amol Agrawal
 
Using Deep Learning to Find Similar Dresses
HJ van Veen
 
Classification case study + intro to cnn
Vincent Tatan
 
Bol.com
BigDataExpo
 
Generative Adversarial Networks (D2L5 Deep Learning for Speech and Language U...
Universitat Politècnica de Catalunya
 
Learning to compare: relation network for few shot learning
Simon John
 
Deep Learning: Chapter 11 Practical Methodology
Jason Tsai
 
brief Introduction to Different Kinds of GANs
Parham Zilouchian
 
Sara Hooker & Sean McPherson, Delta Analytics, at MLconf Seattle 2017
MLconf
 
Deep Learning for Computer Vision: Generative models and adversarial training...
Universitat Politècnica de Catalunya
 
Hanie Sedghi, Research Scientist at Allen Institute for Artificial Intelligen...
MLconf
 
Evolutionary Design of Swarms (SSCI 2014)
Benjamin Bengfort
 
Variants of GANs - Jaejun Yoo
JaeJun Yoo
 
Few shot learning/ one shot learning/ machine learning
ﺁﺻﻒ ﻋﻠﯽ ﻣﯿﺮ
 
Machine Learning for Everyone
Dhiana Deva
 
Ad

Similar to Ai in 45 minutes (20)

PPTX
Cat and dog classification
omaraldabash
 
PPTX
DOC-20240319-WA0000_240319_161313 (1).pptx
AmitSinghYadav21
 
DOCX
Designing a neural network architecture for image recognition
ShandukaniVhulondo
 
PDF
Integrating Artificial Intelligence with IoT
bplay2086
 
PPTX
694893918-ppt-on-handwritten-digit-recognition.pptx
AarishTickoo
 
PPTX
Ai use cases
Sparsh Agarwal
 
PDF
Separating Hype from Reality in Deep Learning with Sameer Farooqui
Databricks
 
PPTX
ARTIFICIAL INTELLIGENCE.pptx
abbu03oct
 
PDF
Deep Learning Demystified
Affine Analytics
 
PPTX
Facial expression recognition projc 2 (3) (1)
AbhiAchalla
 
PPTX
Computer_Vision_ItsHistory_Advantages_and Uses.pptx
YashikaTanwar11
 
PPTX
Build a simple image recognition system with tensor flow
DebasisMohanty37
 
PPTX
How to implement artificial intelligence solutions
Carlos Toxtli
 
PDF
Computer Vision.pdf
BantuBytes
 
PPTX
Introduction to machine learning november 25, 2017
Manish Panchmatia
 
PPTX
ppt on the pet identification sem4-1.pptx
PrabhatKumar900791
 
PPTX
One shot learning
Vuong Ho Ngoc
 
PPTX
House price prediction
SabahBegum
 
PPTX
Inception V3 Image Processing .pptx
MahmoudMohamedAbdelb
 
PDF
Artificial Intelligence IA at the service of Laboratories
Yvon Gervaise
 
Cat and dog classification
omaraldabash
 
DOC-20240319-WA0000_240319_161313 (1).pptx
AmitSinghYadav21
 
Designing a neural network architecture for image recognition
ShandukaniVhulondo
 
Integrating Artificial Intelligence with IoT
bplay2086
 
694893918-ppt-on-handwritten-digit-recognition.pptx
AarishTickoo
 
Ai use cases
Sparsh Agarwal
 
Separating Hype from Reality in Deep Learning with Sameer Farooqui
Databricks
 
ARTIFICIAL INTELLIGENCE.pptx
abbu03oct
 
Deep Learning Demystified
Affine Analytics
 
Facial expression recognition projc 2 (3) (1)
AbhiAchalla
 
Computer_Vision_ItsHistory_Advantages_and Uses.pptx
YashikaTanwar11
 
Build a simple image recognition system with tensor flow
DebasisMohanty37
 
How to implement artificial intelligence solutions
Carlos Toxtli
 
Computer Vision.pdf
BantuBytes
 
Introduction to machine learning november 25, 2017
Manish Panchmatia
 
ppt on the pet identification sem4-1.pptx
PrabhatKumar900791
 
One shot learning
Vuong Ho Ngoc
 
House price prediction
SabahBegum
 
Inception V3 Image Processing .pptx
MahmoudMohamedAbdelb
 
Artificial Intelligence IA at the service of Laboratories
Yvon Gervaise
 
Ad

Recently uploaded (20)

PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Software Development Methodologies in 2025
KodekX
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Software Development Methodologies in 2025
KodekX
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 

Ai in 45 minutes