Unit I AI Reflection
Unit I AI Reflection
Project Cycle
1
2
WHAT IS MACHINE LEARNING
Machine learning is a branch of artificial intelligence that allows
computers to learn and develop without being explicitly programmed.
Machine learning is concerned with the creation of computer programs
that can access data and learn for themselves.
Machine Learning can be used to address difficult problems like detecting
credit card fraud, enabling self-driving automobiles, and detecting and
recognizing faces.
TYPES OF MACHINE LEARNING
3
UNSUPERVISED LEARNING (ML)
Unsupervised learning is a learning method in which a machine learns
without any supervision.
The training is provided to the machine with the set of data that has not
been labeled, classified, or categorized, and the algorithm needs to act on
that data without any supervision. The goal of unsupervised learning is to
restructure the input data into new features or a group of objects with
similar patterns.
In unsupervised learning, we don't have a predetermined result. The
machine tries to find useful insights from the huge amount of data.
4
REINFORCEMENT LEARNING (ML)
Reinforcement learning is a feedback-based learning method, in which a
learning agent gets a reward for each right action and gets a penalty for
each wrong action. The agent learns automatically with these feedbacks
and improves its performance. In reinforcement learning, the agent
interacts with the environment and explores it. The goal of an agent is to
get the most reward points, and hence, it improves its performance.
The robotic dog, which automatically learns the movement of his arms, is
an example of Reinforcement learning.
Three major components make up reinforcement learning: the agent, the
environment, and the actions. The agent is the learner or decision-maker,
the environment includes everything that the agent interacts with, and
the actions are what the agent does.
WHAT IS NATURAL LANGUAGE PROCESSING
Natural language processing (NLP) is an area of artificial intelligence (AI)
that focuses on assisting computers in understanding how humans write
and communicate. This is a difficult task because of the large amount of
unstructured data involved.
WHAT IS EXPERT SYSTEM
An expert system is computer software that can handle complex issues
and make decisions in the same way as a human expert can.
WHAT IS COMPUTER VISION IN AI
Computer vision is a branch of artificial intelligence (AI) that allows
computers and systems to extract useful information from digital photos,
videos, and other visual inputs, as well as to conduct actions or make
recommendations based on that data.
WHAT IS SPEECH RECOGNITION IN AI
Voice messages can now be converted to text using this Speech
technology. It’s also capable of recognizing a person based on their voiced
commands.
WHAT IS PLANNING IN AI
In Artificial Intelligence, planning refers to the decision-making duties
carried out by robots or computer programs in order to attain a given goal.
5
WHAT IS ROBOTICS
Robotics is the production of robots that can do activities without the
need of human interaction, whereas AI is the process of systems imitating
the human mind to make judgments and ‘learn.’
6
THREE DOMAINS OF ARTIFICIAL INTELLIGENCE
There are three types of domains in Artificial Intelligence.
1.Data Science (Data for AI)
2.Natural Language Processing (NLP)
3.Computer Vision (CV)
1. DATA SCIENCE (DATA FOR AI)
The process of converting a raw dataset into valuable knowledge
is known as Data Science. Nowadays Data Science is an
important part of an Industry. Data science is an AI domain
concerned with data systems and processes, in which the system
collects a large amount of data, maintains sets of data, and
extracts meaning from them.
AI GAMES RELATED TO DATA SCIENCE
Rock, Paper, Scissors AI Game (Based on Data Science)
Rock, Paper, Scissors is an easy game to play. Each player chooses
one of the three things (typically by creating the appropriate
hand shape on three counts!) and the following rules are used to
determine who won that round:
• Paper wraps (beats) Rock
• Scissors cut (beat) Paper
• Rock blunts (beats) Scissors
The purpose of the game is to guess your opponent’s choice and
select the proper object to defeat them.
Game link (Play in the computer)
https://rps-ai-game.herokuapp.com
2. NATURAL LANGUAGE PROCESSING (NLP)
Natural language processing (NLP) is a branch of artificial
intelligence. Natural language processing has the ability to
7
understand the text and spoken words in the same manner that
humans can.
AI GAMES RELATED TO NLP
Akinator with alexa AI Game (Based on Natural Language
Processing)
Akinator is a free Amazon Echo app that uses a series of
questions to figure out which character you’re thinking of.
You can ask the app to guess the identity of a real or imaginary
individual.
Game link (Play in mobile phone)
https://play.google.com/store/apps/details?
id=com.digidust.elokence.akinator.freemium&hl=en_IN&gl=US
3. COMPUTER VISION
Computer vision allows computers and systems to extract useful
information from digital photos, videos, and other visual inputs.
The goal of Computer Vision is to take necessary action after
identifying an object or person in a digital image.
AI GAMES RELATED TO COMPUTER VISION
Emoji Scavenger Hunt (Based on Computer Vision)
Emoji Scavenger Hunt is a project that uses neural networks and
your phone’s camera to detect real-world counterparts of the
emoticons we use on a daily basis.
Game link
Website link – https://emojiscavengerhunt.withgoogle.com/
8
their pricing with alternative modes of transportation, such as
public transit or walking, in the Google Maps app.
Face detection (Virtual Filter, Face ID unlocking)
Biometrics are used in a facial recognition system to map facial
traits from a photograph or video. To identify a match, it compares
the information to a database of known faces. Facial recognition
can aid in the verification of a person’s identification, but it also
raises concerns about privacy.
Text editors on autocorrect and autocomplete
Autocorrect: This feature corrects any spelling
mistakes made
while typing.
Autocomplete: If a term has already been used, this
function provides suggestions for automatically
finishing it. If you type ‘msword’ once, it will try to
complete the sentence by displaying msword on the
next line if you type ‘ms’.
AI Ethics
Difference between Morals and Ethics:
AI Ethics:
Ethical principles need to be applied by the
organisations developing and implementing AI Systems
regarding the volume and types of data need to be
collected from the users in order to provide optimal
customised services. The privacy and secrecy of the
users needs to be maintained.
9
Principles in AI Ethics:
10
Scenario 2: If any Automated or Driverless Car hits
someone standing in the middle of a road, who needs to
be held responsible; whom should be penalised.
AI bias
The biased mentality of the developers may result in the
presence of bias in the AI System. Bias might not be
negative always but it may reflect the social norms and
common facts.
Examples of AI Bias:
All the virtual assistants have a female voice.
If searching is done for Salons on Google, the
resultant list mostly contains female salons.
Searching for images of Nurse gives the pictures of
female nurses mostly.
AI Access
Since AI Systems are emerging technology and
expensive, all cannot get access to AI and get
benefitted. AI may create unemployment if not
implemented carefully and with compassion.
Access of AI to kids must be limited for their effective
cognitive development. Smart Assistants can be used for
fun, but problem-solving software like ChatGPT should
not be used for solving math and science related
problems.
AI Project Cycle
Project Cycle is a step-by-step process to solve problems
using AI and drawing inferences about them.
Importance of the AI project cycle:
• Understandability: Understand the process and its
each step better
• Modularity: Break down process into small parts for
ease of development.
11
• Efficiency: Make better, faster and more effective AI
solution in less effort
12
II II. Assess whether it is actually a problem to the
stakeholders
III III. Evidence in support of the problem
A. Rule-based AI Approach:
Example:
Step 1: Train system with training data fed into the
system.
[Dataset containing 1000 images of onions and
carrots with labels]
Step 2: Feed a testing data [Say one image of onion]
Step 3: Compare training data with testing data as per
rules
14
[Compare image of onion with all others]
Step 4: Identify the correct output [Determine its onion]
Advantage:
The algorithms are simple and easy to implement.
Number of data required is limited. Hence training
machine is easy.
Limitation:
This learning is static. The machine once trained, does
not take into consideration any changes made in the
original training dataset. That is, if you try testing the
machine on a dataset which is different from the rules
and data you fed it at the training stage, the machine
will fail and will not learn from its mistake. Once trained,
the model cannot improvise itself based on feedbacks.
B. Learning-based AI Approach:
Advantage:
It is a dynamic model. If the model is trained with a type
of data and the machine designs the algorithm around
it, the model would adjust itself according to the
changes in the data to handle the exceptions.
Disadvantage:
Huge amount quality of data is required for training the
machine. Large storage and efficient algorithm is
required. It is expensive and time taking to implement.
Example:
Step 1: Random data is fed into the system.
[10,000 images of people in a city]
15
Step 2: Machine analyses data. [to identify sick and
healthy people]
Step 3: System tries to extract similar features.
Algorithm needs to derive relationship in data. [Identify
facial expressions and emotions]
Step 4: Cluster same data together.
[Form group with identical facial expressions]
Step 5: Output is the broad trends observed in the data
set. [Identify whether a given picture belong to a sick or
healthy person]
Supervised Learning
In a supervised learning model, the dataset which is fed
to the machine is labelled. A label is some information
which can be used as a tag for data.
i. Regression:
16
forecast future data. Regression works with continuous
data.
e.g. – Prediction of marks in the next exam based on
historical data.
ii. Classification:
Unsupervised Learning
An unsupervised learning model works on unlabelled
dataset. Data fed to the machine is random. The
unsupervised learning models are used to identify
relationships, patterns, and trends out of the training
data. It helps the user in understanding what the data is
about and what are the major features identified by the
machine in it.
Example
A random data of 1000 dog images are fed into the
system and some pattern can be found out of it, like
colour, size of dogs etc.
i. Clustering:
This unsupervised learning algorithm can cluster the
unknown data according to the patterns or trends
17
identified out of it. Cluster works in random, unlabelled,
and discrete data sets. The patterns observed might be
the ones which are known to the developer or it might
even come up with some unique patterns out of it.
Reinforcement Learning:
Reinforcement learning is a machine learning technique
that trains software to make decisions to achieve the
18
most optimal results. It mimics the trial-and-error
learning process that humans use to achieve their goals.
This uses a reward-and-punishment paradigm as they
process data.
Stage 5: Evaluation
After completing all the steps of AI Project Cycle, the
model needs to be evaluated to ensure correctness of
results generated from new data.
Once a model has been made and trained, it needs to go
through proper testing so that one can calculate the
efficiency and performance of the model. Hence, the
model is tested with the help of Testing Data (acquired
during Data Acquisition stage) and the efficiency of the
model is calculated based on the parameters mentioned
below:
19
20