Professional Documents
Culture Documents
Chapter 1
Chapter 1
Machine Learning
Chapter 1 - Introduction
Outline
❑ History and relationships to other fields
❑ Essential math and statistics for
machine learning
❑ Applications of machine learning
❑ Types of machine learning techniques
2
Introduction
❑ Machine Learning is branch of AI that focuses on using data and algorithms to
mimic human learning, allowing machines to improve over time, becoming
increasingly accurate when making predictions or classifications, or
uncovering data-driven insights.
❑ In recent years, the use of machine learning technologies has become
ubiquitous in everyday life.
❑ It is a research field at the intersection of statistics, artificial intelligence, and
computer science and is also known as predictive analytics or statistical
learning. T
3
Did you know?
Arthur Samuel created the term "machine learning" in reference to his
research in the early 1960s. That research was based on the checkers
game that Robert Nealy played against an IBM 7094 computer and lost.
Although this is minor compared to what machines can do today, it
was a groundbreaking milestone at the time.
4
Why Machine Learning?
• Scalability: Early intelligent applications used handcoded rules of "if" and "else" decisions.
These systems are often limited in their ability to handle large and complex datasets. ML
algorithms can handle vast amounts of data and can scale to meet the needs of modern
applications.
• Flexibility: Rule-based systems are often rigid and inflexible, requiring manual intervention
to update the rules. In contrast, ML models can adapt and learn from new data, allowing
them to improve over time and handle a wider range of tasks.
• Automation: Rule-based systems often require significant manual effort to create and
maintain the rules. In contrast, ML models can be trained using data, which reduces the
need for manual intervention.
• Improved accuracy: ML algorithms can often achieve higher accuracy than rule-based
systems, particularly when dealing with complex data such as images or natural language.
5
Why Machine Learning?
Think of a spam filter, whose job is to move the appropriate incoming email messages
to a spam folder. You could make up a blacklist of words that would result in an email
being marked as spam. This would be an example of using an expert-designed rule-
based system to design an “intelligent” application. Manually crafting decision rules is
feasible for some applications, particularly those in which humans have a good
understanding of the process to model.
However, using handcoded rules to make decisions has two major disadvantages:
• The logic required to make a decision is specific to a single domain and task.
Changing the task even slightly might require a rewrite of the whole system.
• Designing rules requires a deep understanding of how a decision should be made by
a human expert.
6
Applications of ML
7
Applications of ML …Cont’d
Image Recognition
• Image recognition is one of the most common applications of machine learning.
It is used to identify objects, persons, places, digital images, etc.
• One of the popular use case of image recognition and face detection is,
Automatic friend tagging suggestion:
• Facebook provides us a feature of auto friend tagging suggestion. Whenever we
upload a photo with our Facebook friends, then we automatically get a tagging
suggestion with name, and the technology behind this is machine learning's face
detection and recognition algorithm.
8
Applications of ML …Cont’d
Speech Recognition
• While using Google, we get an option of "Search by voice," it comes under
speech recognition, and it's a popular application of machine learning.
• Speech recognition is a process of converting voice instructions into text, and it
is also known as "Speech to text", or "Computer speech recognition."
• At present, machine learning algorithms are widely used by various applications
of speech recognition. Google assistant, Siri, Cortana, and Alexa are using
speech recognition technology to follow the voice instructions.
9
Applications of ML …Cont’d
Product Recommendation
• Machine learning is widely used by various e-commerce and entertainment
companies such as Amazon, Netflix, etc., for product recommendation to the
user.
• Whenever we search for some product on Amazon, then we started getting an
advertisement for the same product while internet surfing on the same browser
and this is because of machine learning.
• Google understands the user interest using various machine learning algorithms
and suggests the product as per customer interest.
• As similar, when we use Netflix, we find some recommendations for
entertainment series, movies, etc., and this is also done with the help of
machine learning. 10
Applications of ML …Cont’d
Self-driving cars
• One of the most exciting applications of machine learning is self-driving
cars.
• Tesla, the most popular car manufacturing company is working on self-
driving car. It is using unsupervised learning method to train the car
models to detect people and objects while driving.
11
Applications of ML …Cont’d
12
Applications of ML …Cont’d
13
Applications of ML …Cont’d
14
Machine learning Life cycle
15
1 2 3
Data Gathering Data Preparation
4
Data Wrangling Data Analysing
7 6 5
Deployment Test Model Train Model
17
Supervised learning
• This machine learning type got its name because the machine is
“supervised” while it's learning, which means that you’re feeding the
algorithm information to help it learn.
• Supervised Learning is defined as the category of data analysis where
the target outcome is known or labeled e.g. whether the customer(s)
purchased a product, or did not.
• Supervised learning relies on labeled data to train algorithms.
• Common algorithms used during supervised learning include neural
networks, decision trees, linear regression, and support vector
machines. 18
Supervised learning …Cont’d
19
Supervised learning …Cont’d
20
Unsupervised learning
• Unsupervised learning is a learning method in which a machine learns
without any supervision.
• Unsupervised learning doesn't use labeled training sets and data,
Instead, the machine looks for patterns in the data.
• This machine learning type is very helpful when you need to identify
patterns and use data to make decisions.
• Common algorithms used in unsupervised learning include Hidden
Markov models, k-means, hierarchical clustering, and Gaussian mixture
models.
21
Unsupervised learning …Cont’d
22
Unsupervised learning …Cont’d
23
Reinforcement learning
24
Reinforcement learning …Cont’d
25
Reinforcement learning …Cont’d
26
Introduction to AI
"Artificial intelligence is the future and the future
is here.” Dave Waters
27