Académique Documents
Professionnel Documents
Culture Documents
1
AI economic impact
3
Outline of this first lecture: Introducing AI
• Definition and demystification
• Machine Learning (ML)
• Major success stories
• What is data
• Your turn!
• AI terminology
• What ML can learn
• Your turn!
4
Sources in this lecture
• Andrew Ng, AI for Everyone, deeplearning.ai
• Frédéric Precioso, Tout ce que vous avez toujours voulu savoir sur
l’intelligence artificielle, cours à Deep Law for Tech, 2021
5
L’Intelligence Artificielle :
Définition et Démystification
6
L’Intelligence Artificielle
On considère que l'intelligence artificielle, en tant que domaine de
recherche, a été créée à la conférence qui s'est tenue sur le campus de
Dartmouth College pendant l'été 1956, même si cette notion a été présente
depuis l’antiquité (Automates et créatures artificielles d’Héphaïstos, ou le
Golem dans la mythologie juive, etc).
Machines Hypothético-déductives
© Frédéric Precioso
(Figure de : “La revanche des neurones”, D. Cardon, J.-P. Cointet, A. Mazières, Réseaux Volume 211, Issue 5, 2018, pages 173-220, 9
https://hal.archives-ouvertes.fr/hal-01925644/file/RevancheNeurones_Reseaux.pdf )
L’intelligence artificelle, top-down
• Exemple d’un système expert :
© Frédéric Precioso
10
L’intelligence artificelle, top-down
• Quelques échecs récents:
© Frédéric Precioso
https://www.theverge.com/2018/7/26/17619382/ibms-watson-cancer-ai-healthcare-science
https://www.roboticsbusinessreview.com/rbr/a_cyclists_encounter_with_an_indecisive_google_self_driving_car/ 11
L’intelligence artificelle
• "bottom-up“ ou data-driven AI
• Les équations/algorithmes pour prendre les décisions sont modifiés par d’autres
calculs pour s’adapter aux données observées.
• Apprentissage Automatique (Machine learning), Arbres décision (1983), Backpropagation (1984-
1986), Forêt Aléatoire (1995), Support Vector Machine (1995), Boosting (1995), Deep Learning
(1998…2006)…
Machines Inductives
© Frédéric Precioso
(Figure de : “La revanche des neurones”, D. Cardon, J.-P. Cointet, A. Mazières, Réseaux Volume 211, Issue 5, 2018, pages 173-220, 12
https://hal.archives-ouvertes.fr/hal-01925644/file/RevancheNeurones_Reseaux.pdf )
L’Intelligence Artificielle, définition
En 1956, le terme intelligence artificielle est défini comme :
© Frédéric Precioso
14
Demystifying AI
AI
ANI AGI
Artificial Narrow Intelligence Artificial General Intelligence
e.g, smart speakers, self driving cars, face do anything a human can do
recognition, web search, AI in farming and
factories
© Adrew Ng
15
L’intelligence artificelle forte/générale
• Intelligence artificielle forte :
• machine capable non seulement de produire un comportement intelligent, mais
aussi d'éprouver un sentiment d'un vrai sens d'elle-même
• "vrais sentiments" (quoi qu'on puisse mettre derrière ces mots)
• "une compréhension de ses propres arguments".
© Frédéric Precioso
18
Conclusions partielles
• L’IA c’est défini mais la définition est floue !
20
This is the family of bottom-up approaches.
They have improved significantly from the 1990’s, and all
major successes of AI in the last decade are made in the
family of ML approaches, addressing ANI tasks with Deep
Learning, i.e., deep artificial neural networks.
21
The problem of supervised learning
• A machine learning model is a mathematical function that is
determined automatically (learnt) from the data.
• Supervised learning: the function has to match input A to output B
A B
ML model
Input Output
© Adrew Ng
22
Supervised learning: examples
Input A Output B Application
email spam? (0/1) Spam filtering
audio text transcript Speech recognition
English Chinese Machine translation
ad, user info Click? (0/1) Online advertising
image, radar info positions of other cars Self-driving car
human face name Face recognition
© Adrew Ng
23
Why such a success of AI now?
Traditional AI
Amount of data
Big data © Adrew Ng
24
Major applications of AI today
25
Computer vision
• Image classification, object recognition cat
• Face recognition
• Object detection
• Image segmentation
• Tracking
© Adrew Ng
26
Natural Language Processing
• Text classification
• Sentiment analysis
• Information retrieval
• E.g., web search
• Machine translation
© Adrew Ng
27
Natural Language Processing
• Others: part-of-speech tagging, parsing
© Adrew Ng
28
Speech
© Adrew Ng
29
Robotics
• Perception
• Figuring out what is in the world around
you
• Motion planning
• Finding a path for the robot to follow
• Control
• Sending commands to the motors to
follow a path
© Adrew Ng
30
These next 3 examples are
examples of ML-based approaches
for more prospective/research
objectives.
31
Sentiment analysis of IMDB movie Distinguishing French presidents from
review their speech?
32
33
Types of data processed by ML approaches
• Unstructured data (images, audio, text)
• Structured data
34
What is data
35
Example of a table of data (dataset)
© Adrew Ng
36
Acquiring data
• Manual labeling
37
Your turn!
• To understand data what
actually is in a computer, before
we work with it to perform some
ML tasks (sentiment analysis in
part 2).
• https://colab.research.google.co
m/drive/1IaRN7kn6IRtSZUvhM9
gkW_4xjbSDJ8CC?usp=sharing
38
AI terminology
39
Machine learning vs. data science
Home
prices
40
Machine learning vs. data science
© Adrew Ng
41
A peek into Deep learning (non-technical example)
• Assume a prediction problem where we want to predict t-shirt sales
price demand
x
demand
x x “neuron”
x
x
x x
x
x
price
© Adrew Ng
42
A peek into Deep learning (non-technical example)
• Broadening our view: from a single neuron to a network of neurons
price
shipping cost
awareness
demand
marketing
material
© Adrew Ng
43
A peek into Deep learning (non-technical example)
• The above architecture stems from assumptions we make on features determining
demand → we may have missed some some!
• Idea: Do not make any assumption to make the prediction model, and instead let us
learn the best model, i.e., optimize a general neural network, a “deep neural network”
(Artificial) Neural Network
a big mathematical equation
price
shipping cost
demand
marketing
Neural networks were originally
material inspired by the brain, but the
details of how they work are
almost completely unrelated to
how biological brains work.
44
AI vs Machine Learning vs Deep Learning
ARTIFICIAL INTELLIGENCE
A program that can sense, reason, act,
and adapt
MACHINE LEARNING
Algorithms whose performance improve as
they are exposed to more data over time
DEEP LEARNING
Subset of machine
learning in which
multilayered neural
networks learn from
vast amount of data
45
AI has many tools
ARTIFICIAL INTELLIGENCE
• Machine learning and data science A program that can sense, reason, act,
and adapt
46
What ML can learn
47
Supervised learning
Anything you can do with 1 second of thought, we can probably now or
soon automate it.
© Adrew Ng
48
What Machine learning today can and cannot
do
The toy arrived two days late, so I wasn’t able
to give it to my niece for her birthday.
Can I return it? Determining the type of request can be
done (left), but generating a perspective
(understand the temporality of a birthday
event-gift offering) and empathy-driven
response to an uncommon situation (right) is
not possible yet.
49
It is not possible yet to learn an answer:
- which is relatively long
- which is perspective- and empathy-
What happens if you try? drive
- with a little amount of data
50
What makes an ML problem easier
1. Learning a simple concept
≤ 1 sec
© Adrew Ng
51
ML models (“AI”) can detect a car, but it
can hardly distinguish between the
Self-driving car different intentions and situations
represented by similar images of humans
holding up their arm.
Can do Cannot do
52
X-ray diagnosis
Can do Cannot do
53
Strengths and weaknesses of Machine learning
• ML tends to work well when:
1. Learning a “simple” concept
2. There is a lot of data available
• ML tends to work poorly when:
1. Learning complex concepts from small amount of data
2. It is asked to perform on new types of data
© Adrew Ng
54
Your turn!
• To program a ML task: rate
sentiment of written reviews
(Amazon products and films
from IMDB).
• https://colab.research.google.co
m/drive/1IaRN7kn6IRtSZUvhM9
gkW_4xjbSDJ8CC?usp=sharing
55