AI lecture 9
AI lecture 9
Lecture 9
IntelligentAgents, &
AI Related Disciplines
Artificial
Intelligence
Related
Disciplines
3
MainResourcesforthisSection
4
Learning Agents?
What is a learning agent?
• They are agents that have the capability to change themselves.
They change themselves to improve the performance and it is
measured using a performance function
• Each agent has a goal to reach and has a performance measure.
The agent updates and enhances himself to achieve this task.
(increase the performance measure or score)
6
Solution is Machine Learning (ML)?
• Any software even if it interface agent (has no physical appearance
or a robot has not physical appearance). It should have the ability to
learn using feedback (reinforcement learning) or using different
examples he learn from it.
7
Artificial Intelligence Vs. Machine
Learning Vs. Deep Learning ..
A formal short answer:
8
Artificial Intelligence Vs. Machine
Learning Vs. Deep Learning ..
9
Machine Learning Vs. Deep Learning ..
• There are great difference between machine learning and deep
learning. Deep Learning is based on several algorithms, but it is
commonly based on artificial neural networks (ANN).
11
Machine Learning Vs. Deep Learning ..
What is feature extraction?
• If you have a group of objects and you want to divide them into two
classes (car or not a car)
• In Machine learning: we do a step called feature extraction (This step in
machine learning is not done manually(by ML Algorithm), but it is
engineered manually).
• Use ML algorithm looks for the most important features to extract from
the input (it can be image, signal, text) then ML algorithm put code,
equations to extract these features.
• The result is in the form of number of numerical data and these data are
input to the model. (Features can be wheels, windows, a specific color).
• For example (In the Face detection or Face recognition problem) you need
to extract features such as (color of the eye, distance between nose,
mouth, and so on). To differ between other different faces.
• Try to find an algorithm to extract the requested features and then get the
numeric values and input them to the classification step.
• Feature extraction and classification steps are performed separately and12 not
merged together.
Machine Learning Vs. Deep Learning ..
• Deep Learning gets the data and input them to one big model that
performs both feature extraction and classification at the same
time.
• You do not know the features extracted and it is the job of the
deep learning model. Also, the step of training and decision which
is known as a classification step is performed in the same stage.
13
Machine Learning
• You have training data (text, document, audio, signals, images,
videos).
• We extract features as the second step if based on ML.
• The features are input to another ML and then the ML trains on it.
• There is a label that determine the class of the data.
• Face → Class 0
• Not a Face → Class 1
• Cancer → Class 0
• Non a cancer → Class 1
18
Neural Nets and Deep Learning
• One of the most important approaches in machine learning is Neural
Networks: Deep learning is based on it.
• It started with a small models such as perceptron (It is traditional
structure to neural networks) (Single layer neurons algorithms: Single
perceptron, Adaline(Adaptive Linear Neuron), Hebbian rules) or
sometimes (Multi-layer neurons: Multi-layer perceptron (MLP), self-
organization map(SOM)).
• Then, the neural networks has become bigger and the architecture of it
also changed and then we have the concept of deep learning.
• Various types of deep learning networks exists such as convolutional
neural networks (CNN), recurrent neural networks (RNN) examples on it
are (Long term short memory (LSTM) algorithms, gated recurrent unit
(GRU) algorithms, LSM), generative adversarial networks (GAN), and
autoencoders.
19
Machine
Learning?
{Artificial
Intelligence}
Machine
Learning Map
19
Machine Learning Approaches & their
corresponding Applications
• There exist several approaches in ML. Each approach has different types
of algorithms. Each approach is used in specific problems or topics.
Supervised Learning
• Classification: Used in diagnosis (cancer or not) (grade of cancer
(0,1,2,3) Image classification (breast cancer or not , Alzheimer or not).
• Regression: Used in Weather forecasting, Market forecasting, life
expectancy (patient will live how many days or months based on his
health situation, predict population growth (in 5, 10, 20 years), and
stock market.
Unsupervised Learning
• Clustering: Used in recommendation system, amazon, OTLOB,
Souq.com, (Something to buy, books to read, Films to see).
• Dimensionally reduction: used in big data visualization ( you need to see
the most important information). To visualize the most relevant
features.
Reinforcement learning: is used more in games or AI-based games,
robotics, and so on. 5
Machine Learning
Approaches & their
corresponding
Applications
21
What about Data-Mining?
Machine learning and data mining often employ the same
methods and overlap significantly. They can be roughly
distinguished as follows:
o Machine learning focuses on prediction, based on known
properties learned from the training data.
o Data mining focuses on the discovery of (previously) unknown
properties in the data. This is the analysis step of Knowledge
Discovery in Databases.
You have data and you do not know the features or the properties of these
data. Then, you min in the data to search for knowledge and relations that
didn’t appear before.
Example: In supermarket some one bought a product and another one
bought same product. You can use data mining techniques to discover why
both bought the product. What is the relation between them.
7
What about Data-Mining?
8
Artificial Intelligence Vs. Data-Science
DataScience-Some PossibleDefinitions:
Data Science is the science which uses computer science,
statistics and machine learning, visualization and human-
computer interactions to collect, clean, integrate, analyse, visualize,
interact with data to create data products.
24
WhyDataScience?
25
WhyDataScience?
26
WhyDataScience?
What is the difference? .. Data
To understand the
phenomenon that is big data,
it is often described using five
Vs: Volume, Velocity, Variety,
Veracity, and Value.
Recently, Visualization,
Virality, & Viscosity were
added (thus, Eight Vs) ..
13
WhyDataScience?
To Understand Big Data.
You have data generated with a large amount that was not found
before.
• Volume: Has big volume (before we had data in bits, byte, mega)
Now we have data in (tera and peta bytes)
29
WhyDataScience?
• Variety: The data were converted into tabular forms (you have
fields and records and you store them only).
• You have images generated in different forms and formats on
facebook, twitter, Instagram, with our camera, security camera.
• You have audio from different mikes and telephone lines. in
different formats
• You have text (sms, message, in whatsapp, facebooks, tweets, text
in electronic newspaper). All the books has become text with
different formats.
• Old data varies in only 10%.
• In fact, 80% of the world’s data is now unstructured.
16
WhyDataScience?
• An example not very recent a survey from about 2 years
Volume of the data is very large
• In North America more than 3500 peta byte of data
• In Latin America more than 50 peta byte of data
• In Africa more than 200 peta byte of data
• In Japan more than 400 peta byte of data
Velocity
• You have more than 2.9 million email sent every second
• You have more than 20 hours videos uploaded every min
• You have 50 million tweets per day.
32
WhyDataScience?
Variety
• Most of the data goes in people to people (web blogs, social
networks)
• People deal with machine (data are stored on smart cards, medical
devices, archives, digital TV, bank cards)
• Machine to Machine (sensor report to another machine, barcode read
and store on computer, surveillance camera and store the capture to
PC or computer)
• (scanner scan and send the data to another machine)
What are the values that I can get or produce from data that have this
volume, Varity, and velocity
• You can find that 49% productivity increase and sales increase $9.6B
• Increase in the productivity in the air transportation by 21% and sales
increase by $4.3B.
33
Success Stories & a few data science examples …
MoneyBall ?!
Starting around 2001, the Oakland A’s picked players that scouts thought were no good
but data said otherwise.
20
Success Stories & a few data science examples …
Poverty Mapping
21
Exercises
What have we learned?
▪ Define the following terms: (1) Learning Agents, (2) Machine Learning.
▪ Compare between the following: Machine Learning & Deep Learning.
▪ Draw a block diagram that describes a generic Supervised Machine Learning model.
Exercises
What have we learned?
▪ What are the characteristics of Big data (the 5 Vs)? Describe briefly.
▪ Compare between the following: (1) Machine Learning & Data-mining
▪ Which Machine Learning approach is employed when realizing each the following
applications:
▪ Estimating Life expectancy.
▪ Customer Segmentation.
▪ Robot Navigation.
▪ Rcommender Systems.
▪ Market or Weather Forecasting.
▪ Medical Image Classification.
THANK YOU