AI Modeling: Supervised & Unsupervised Learning
AI Modeling: Supervised & Unsupervised Learning
Summary: There are two main categories of AI models: Rule based and Learning based.
Learning based models can be further classified as: Supervised Learning, where machines are
taught using labeled data; Unsupervised Learning, where machines independently uncover
patterns from unlabeled data; and Reinforcement Learning, enabling computers to optimize
decisions for rewards without direct programming. Neural networks, mimicking the brain's
neurons, automatically extract data features through interconnected nodes, making them
efficient for processing large datasets like images.
Learning Objectives:
Learning Outcomes:
Key-concepts:
* Images shown here are the property of individual organisations and are used here for reference purpose only.
2.1 Revisiting AI, ML, DL
Artificial Intelligence, or AI for short, refers to any technique that enables computers to mimic
human intelligence. An artificially intelligent machine works on algorithms and data fed to it and gives the
desired output.
Machine Learning, or ML for short, enables machines to improve at tasks with experience. The machine here
learns from the new data fed to it while testing and uses it for the next iteration. It also takes into account
the times when it went wrong and considers the exceptions too.
Deep Learning, or DL for short, enables software to train itself to perform tasks with vast amounts of data.
Since the system has got huge set of data, it is able to train itself with the help of multiple machine
learning algorithms working altogether to perform a specific task.
Artificial Intelligence is the umbrella term which holds both Deep Learning as well as Machine Learning.
Deep Learning, on the other hand, is the very specific learning approach which is a subset of
Machine Learning as it comprises of multiple Machine Learning algorithms.”
As you can see in the Venn Diagram given below, Artificial Intelligence is the umbrella
terminology which covers machine and deep learning under it and Deep Learning comes
under Machine Learning. It is a funnel type approach where there are a lot of applications of
AI out of which few are those which come under ML out of which very few go into DL.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Machine Learning (ML)
Machine Learning, or ML, enables machines to improve at tasks with experience. The
machine learns from its mistakes and takes them into consideration in the next execution. It
improvises itself using its own experiences.
This is just a broad representation of how a machine learning model works. Input (past or
historical data) is given to the ML model and the model generates output by learning from the
input data.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Here is an example which shows labelled images (every image is tagged either as apple or
strawberry) are given as input to the ML model. ML model learns from the input data to
classify between apples and strawberries and predicts the correct output as shown.
Object Classification
Identifies and labels objects present withinan
image or data point. It determines the
category an object belongs to.
Anomaly Detection
Anomaly detection helps us find the
unexpected things hiding in our data. For
example, tracking your heart rate, and finding
a sudden spike could be an anomaly, flagging
a potential issue.
Deep Learning, or DL, enables software to train itself to perform tasks with vast amounts of
data. In deep learning, the machine is trained with huge amounts of data which helps it into
training itself around the data. Such machines are intelligent enough to develop algorithms for
themselves. Deep Learning is the most advanced form of Artificial Intelligence out of these
three. Following is the block diagram of deep learning:
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Block Representation- Deep Learning (DL)
Input is given to an ANN, and after processing, the output is generated by the DL block. Here
is an example which shows pixels of a bird image given as input to the DL Model and the model
is able to analyze and correctly predict that it is a bird using a deep learning algorithm (ANN).
Object Identification
Object classification in deep learning
tackles the task of identifying and labeling
objects within an image. It essentially uses
powerful algorithms to figure out what's
ina picture and categorize those things.
Digit Recognition
Digit recognition in deep learning tackles
the challenge of training computers to
identify handwritten digits (0-9) within
images.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Common terminologies used with data
What is Data?
▪ Data is information in any form
▪ For e.g. A table with information about
fruits is data
▪ Each row will contain information about
different fruits
▪ Each fruit is described by certain features
Labeled Data
▪ Data to which some tag/label is attached.
▪ For e.g. Name, type, number, etc.
Unlabeled Data
▪ The raw form of data
▪ Data to which no tag is attached.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
What do you mean by a testing data set?
▪ The testing data set is used to test the accuracy of the model.
▪ Just like how a teacher takes a class test related to a topic to evaluate the
understanding level of students.
▪ Test is performed without labeled data and then verify results with labels.
2.2 Modelling
Purpose: Classification of Models into Rule-based approach and Learning approach.
Say: “In general, there are two approaches taken by researchers when building AI models. They either
take a rule-based approach or learning approach. A Rule based approach is generally based on the data
and rules fed to the machine, where the machine reacts accordingly to deliver the desired output.
Under learning approach, the machine is fed with data and the desired output to which the machine
designs its own algorithm (or set of rules) to match the data to the desired output fed into the machine”
AI Modelling refers to developing algorithms, also called models which can be trained to get
intelligent outputs. That is, writing codes to make a machine artificially intelligent.
Types of AI Models
Generally, AI models can be classified as follows:
Supervised Learning
Unsupervised
Machine Learning
Learning
Reinforcement
Learning
Learning Based
AI Models
Artificial Neural
Networks
Rule Based
Deep Learning
Convolution Neural
Networks
* Images shown here are the property of individual organisations and are used here for reference purpose only.
defined by the developer. The machine follows the rules or instructions mentioned by the
developer, and performs its task accordingly.
Rule-based Chatbots are commonly used on websites to answer frequently asked questions
(FAQs) or provide basic customer support. Here's an example:
Scenario: A clothing website has a Chabot to answer questions about order tracking.
1. Data: The Chabot doesn't require a massive dataset for training. It relies on a
predefined set of questions and corresponding answers.
2. Rules: The Chabot uses a decision tree approach with clearly defined rules to
understand user queries and provide responses. Here's a simplified example:
o Rule 1: If the user's message contains keywords like "track order," "shipment
status," or "delivery," proceed to order tracking options.
o Rule 2: Under order tracking options:
▪ If the user asks for their order number, prompt them to enter it.
▪ If the user enters a valid order number, retrieve the tracking
information from the database and display it.
▪ If the user enters an invalid order number, provide an error message
and ask them to re-enter it.
o Rule 3: If the user's message doesn't match any defined rules, offer a message
like "Sorry, I can't help you with that. Perhaps you can try searching our FAQs
or contact customer support."
3. Interaction: When a user chats with the bot, their message is analyzed based on the
defined rules. The Chabot responds with a pre-written answer or prompts the user for
additional information depending on the scenario.
A drawback/feature for this approach is that the 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 on the basis of feedbacks. Thus, machine learning gets
introduced as an extension to this as in that case, the machine adapts to change in data and
rules and follows the updated path only, while a rule-based model does what it has been
taught once.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Learning Based Approach
A learning-based approach is a method where a computer learns how to do something by looking at
examples or getting feedback, similar to how we learn from experience. Instead of being explicitly
programmed for a task, the computer learns to perform it by analyzing data and finding patterns or rules
on its own.
We can say that it refers to the AI modelling where the machine learns by itself. Under the
Learning Based approach, the AI model gets trained on the data fed to it and then is able to
design a model which is adaptive to the change in data. That is, if the model is trained with X
type of data and the machine designs the algorithm around it, the model would modify itself
according to the changes which occur in the data so that all the exceptions are handled in this
case.
For example, A learning-based spam email filter is a computer program that automatically
identifies whether an incoming email is spam or not. Instead of being explicitly programmed
with rules for identifying spam, the filter learns from examples of labeled emails during a
training phase.
During training, the filter is provided with a large dataset of emails, each labeled as either
spam or legitimate (non-spam). The filter analyzes the content and characteristics of these
emails, such as words used, sender information, and presence of attachments. Using machine
learning algorithms, the filter learns to recognize patterns that distinguish spam from
legitimate emails.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Once trained, the filter can classify new incoming emails as spam or not spam based on the
patterns it learned. It continuously adapts and improves its accuracy over time as it encounters
new examples. This learning-based approach allows the filter to effectively identify and filter
out spam emails, helping users manage their email inbox more efficiently.
Supervised
(Machine Learning)
Learning
Unsupervised
Learning
Reinforcement
Learning
Supervised Learning
In a supervised learning model, the dataset which is fed to the machine is labelled. In other
words, we can say that the dataset is known to the person who is training the machine only
then he/she is able to label the data. A label is some information which can be used as a tag
for data. For example, students get grades according to the marks they secure in
examinations. These grades are labels which categorize the students according to their marks.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
▪ Similarly, Supervised Learning is when you make the machine learn by teaching or
training the machine using labeled data.
So, if a model is trained in tagging the features i.e., the weights of the coin with the targets
i.e., currency, the trained model can be further be used to identify a coin based on its
weight (since it has already learnt).
▪ In the example shown in the
image, the model has learned
from labeled input data and
produces output to classify them
as dogs and cats.
▪ Therefore, you can see that the
model learns from the training
data and then applies the same
knowledge to test data.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Unsupervised Learning
An unsupervised learning model works on unlabelled
dataset. This means that the data which is fed to the
machine is random and there is a possibility that the
person who is training the model does not have any
information regarding it. The unsupervised learning
models are used to identify relationships, patterns and
trends out of the data which is fed into it. It helps theuser
in understanding what the data is about and whatare the
major features identified by the machine in it.
For example, you have a random data of 1000 dog images and you wish to understand some
pattern out of it, you would feed this data into the unsupervised learning model and would
train the machine on it. After training, the machine would come up with patterns which it
was able to identify out of it. The Machine might come up with patternswhich are already
known to the user like colour or it might even come up with somethingvery unusual like the
size of the dogs.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
• In the example shown in the image, the model
has to process information without any labels.
• It has to analyze and process the data to identify
hidden patterns and attributes and then uses
that to classify the animals into two categories
based on similarities
As you observe in the image, input is not labeled but
the model can come up with two clusters by identifying similar patterns and attributes and
have grouped them together-
• All Cats have been grouped into cluster 1
• All Dogs have been grouped into cluster 2
Test Yourself:
Identify the model: Supervised or Unsupervised?
Case 1: Social Media platforms identify your friend in a picture from an album of tagged
photographs
It is supervised learning. Here social media platform is using tagged photos to recognize the
person. Therefore, the tagged photos become the labels of the pictures and we know that
when the machine is learning from labeled data, it is supervised learning.
Case 2: OTT platform Recommendations based on someone’s watch history
It is unsupervised learning. This is what OTT platforms like Netflix, Pandora, and Spotify do all
the time; they collect the songs/movies that you like already, evaluate the features based on
your likes/dislikes and then recommend new movies/songs based on similar features.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Case 3: Analyze bank data for suspicious-looking transactions and flag the fraud transactions
[Note that suspicious transactions are not defined in this case]
It is unsupervised learning. In this case, the suspicious transactions are not defined, hence
there are no labels of "fraud" and "not fraud". The model tries to identify outliers by looking
at anomalous transactions and flags them as 'fraud'.
Supervised Vs. Unsupervised Learning
Reinforcement Learning
This learning approach enables the computer to make a series of decisions that maximize a
reward metric for the task without human intervention and without being explicitly
programmed to achieve the task.
Reinforcement Learning – Example
* Images shown here are the property of individual organisations and are used here for reference purpose only.
▪ Then again, you ask the machine to
predict the fruit by giving an image of an
apple as input;
▪ Now, it knows it is not a cherry.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Summary of ML Models
Family of
ML Models
Determine Learn by
Discover New
relationships Rewarding
Patterns
through training Actions
There are two types of Supervised Learning models: Classification model and Regression
model.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Classification Model
In this case, the model would be trained on historical weather data that includes
temperature information labeled as "hot" or "cold". The model would learn the patterns
that differentiate hot and cold weather based on
factors like:
Classifying emails as spam or not: The model is shown tons of emails, both real ones (like
from friends or colleagues) and spam. The model learns what makes an email look like spam.
Once trained, the model sees a new email. It analyzes the clues in the email and decides: is
this spam or not? It assigns a category - "spam" or "not spam" - just like sorting your mail.
In modern-day Email, classifiers identify if the email is spam and have evolved into other
categories such as social, advertisement, notifications, etc. Similar models are increasingly
being used in messaging applications.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Regression Model
Regression: Such models work on continuous data. For
example, if you wish to predict your next salary, then you
would put in the data of your previous salary, any
increments, etc., and would train the model. Here, the data
which has been fed to the machine is continuous.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
▪ years of service,
▪ the number of previous owners,
▪ kilometers driven,
▪ transmission type (manual/automatic)
This type of model will be of type regression since it will predict an approximate price
(continuous value) of the car based on the training dataset.
Test Yourself:
Identify the model: Classification or Regression?
Case 1: Predicting whether a customer is eligible for a bank loan or not?
It is Regression because predicting weather for next 24 hours will be a continuous range
(it will keep changing over the period of 24 hours)
* Images shown here are the property of individual organisations and are used here for reference purpose only.
What is Clustering?
In this example, we have input data with no class labels (unlabeled data), and this input data
comprises of birds and animals. Note that, even though there were no class labels, the
unsupervised learning model was able to divide this data into two clusters based on clustering.
The two clusters have been formed based on the similarity of characteristics. The first cluster
comprises all the animals, and the second cluster comprises all the birds.
Clustering – Example
Jim enjoys listening to music. Jim likes to listen to music having slow tempo and soft
intensity whereas he dislikes songs having fast tempo and high intensity.
▪ We have grouped all the songs having slow tempo and soft intensity into 1 cluster that
he likes
▪ While, songs with a fast tempo and high intensity into another cluster
▪ Now if he listens to a new song X with a slow tempo and soft intensity. Could you
predict will he like the song X or not?
This is how clustering techniques work. The clustering model will be able to identify
clusters based on some similarities or patterns which are not defined in the input. For
example, tempo and intensity are the only features known, but clusters based on likes and
dislikes have been grouped together and given as output. Similar techniques are used in
OTT platforms like Netflix/Spotify for recommendations.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Association
Association Rule is an unsupervised learning method that is used to find interesting
relationships between variables from the database.
Based on the purchase pattern of customers A and B, can you predict any Customer X who
buys bread will most probably buy?
Based on the purchase pattern of other customers, we can predict that there is highprobability
that any customer x who buys bread will most probably buy butter.
Therefore, such meaningful associations can be useful to recommend items to customers. Thisis
called Association Rule.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Summary of detailed classification of ML models
Test Yourself:
Let’s have knowledge check based on learning approaches and its types!
Q1. Which learning approach uses labelled data for training?
Unsupervised Learning
Q3. Which algorithmic model would you use when you have to predict a continuous
valued output?
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Q5. Clustering is learning and its goal is to ?
Artificial Neural networks (ANN) - Artificial Neural networks are modelled on the human brain
and nervous system. They are able to automatically extract features without input from the
programmer. Every neural network node is essentially a machine learning algorithm. It is
useful when solving problems for which the data set is very large.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
2.3 Artificial Neural Networks
Brief:
Neural networks are loosely modelled after how neurons in the human brain behave.
The key advantage of neural networks is that they are able to extract data features
automatically without needing the input of the programmer. A neural network is essentially
a system of organizing machine learning algorithms to perform certain tasks. It isa fast and
efficient way to solve problems for which the data set is very large, such as in images.
▪ A Neural Network is divided into multiple layers and each layer is further divided into
several blocks called nodes. Each node has its own task to accomplish which is then
passed to the next layer.
▪ Neural Network consists of an input layer, hidden layer which performs computation
using weights and biases on each node and finally, information is passed through these
layers to reach the output layer.
• The first layer of a Neural Network is known as the input layer. The job of an input
layer is to acquire data and feed it to the Neural Network. No processing occurs at
the input layer.
• Next to it, are the hidden layers. Hidden layers are the layers in which the whole
processing occurs. Their name essentially means that these layers are hidden and are
not visible to the user. Each node of these hidden layers has its own machine
learning algorithm which it executes on the data received from the input layer.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
▪ The hidden layer performs computation by means of weights and biases Information
passes from one layer to the other after the value found from this calculation passed
through a selected activation function.
▪ The process of finding the right output begins with trial and error until the network
finally learns.
▪ With each try, the weights are adjusted based on the error found between the
desired output and the network output.
There can be multiple hidden layers in a neural network system and their number
depends upon the complexity of the function for which the network has been
configured. Also, the number of nodes in each layer can vary accordingly. The last
hidden layer passes the final processed data to the output layer which then gives it to
the user as the final output. Similar to the input layer, output layer too does not process
the data which it acquires. It is meant for user-interface.
Most of us would want to avoid getting soaked in the rain. These are possible factors that
may influence your decision whether to go out. So, the first question that you may ask is,
“Should I bring a rain jacket?”
Then, you may also ask, “Should I bring an umbrella?”Or
you may also ask, “What is the weather now?”
And finally, “What will the weather be like, later in the day?”
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Now, you have the factors that will influence your
decision to go out. But take note, not all factors are
equal. Some factors are more important, while some
are not.
Let's see which one is more important. Let us rank
them from the most important to the least
important.
For me, “is it sunny now” is more important than
“the weather forecast later”. And “having a jacket”
is more important than “having an umbrella. We can
put the ranking for this example.
Going back to the earlier example, we have four inputs. So, let’s draw the perceptron with
four inputs (from X1 to X4). Next, we have their weights (from W1 to W3). Then, we also
have the bias B, with weight WB.
Finally, we sum them all up, compare with threshold, and we will get our output.
Now we will fill in the four inputs with the factors that we have listed out.
•Do I have a jacket?
•Do I have umbrella?
•Is it sunny now?
•What is the weather forecast for later?
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Now we will fill in the importance. But the importance is not very useful in mathematical
calculations.
Next, let us assign some numbers to them. At the same time, we will also assign a numberfor
the bias weight (WB).
How do we know what should be the actual values for the weights? We will not know whatare
the actual weights. However, we can make some assumptions.
The values for the weights can come from experience. He may have an experience being
sunny now would most likely mean a bright day ahead, hence the high importance there.
It can also come from personal preference. A person may judge a particular factor more
heavily as compared to another person. For example, she may be more concerned with
the weather forecast, hence the higher importance there.
The values for WB are also based on personal preference. If a person is more cautious,
he may set the value for WB to be higher, hence his decision would gear towards staying
indoors unless he is sure that it would not rain. On another hand, a person who is more
daring will have a lower WB, hence he is more likely to go out regardless of the current
situation. In this example, we choose 4 as we want to be more cautious.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Therefore, there is no right or wrong answers in coming up with the values for the
weights. However, the effects of the values will determine the outcome that the person
is going to take, whether to go out or not. That is the reason why everyone comes up
with a different decision, even though the situation is the same for everyone.
For this example, let’s say: I have a jacket, I don’t have an umbrella, it is sunny now, and
the weather forecast is going to rain. We can convert the yes and no to numbers 1 and
0. For bias, we will always take 1.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
From this calculation, the output is 0.5. Since this is higher than the threshold (which is
zero), the result is I will go out to the park.
From this calculation, the output is -0.5. Since this is lower than the threshold (which is
zero), the result is I will not go out to the park.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Activity 1
Human Neural Network – The Game
Session Preparation
Materials Required:
ITEM QUANTITY
Images (To be kept with the facilitator) 2
Post-It Notes 80
Sketch-pens 40
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Purpose: To understand and experience what a neural network is like.
Brief:
Students will now experience how Neural networks work with the help of an activity. Each
of the students will be considered as the node of either Input Layer,1 st Hidden Layer, 2nd
Hidden Layer or the Output Layer. The instructions and rules have been mentioned in the
Students Handbook.
After arranging the students at their positions and handing them sticky notes to write,
show the sample image print-out to the input layer students. Let the students
understand and do by themselves after this.
When to intervene?
Ask the students to play the game with honesty. No two nodes can discuss anything.
Each one of them has to use their own discretion to understand and play.
Let us develop a better understanding about this concept with the help of a game called
Human Neural Network.
Game Structure:
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Ground Rules:
● No one is allowed to talk or discuss till the game ends. Fun of the game lies in playing it
honestly.
● Each layer should sit distant to each other.
● The image should only be shown to the Input layer and no one else.
● The game is supposed to be played silently. This means that one has to write a word on the
chit and pass on the chit without speaking out aloud.
● One needs to process the data as fast as possible, hence not take much time can be taken
to write and pass on the chits.
● Input layer nodes cannot discuss the image shown with each other. Everyone has to use
their own discretion.
● No sentences or multiple words are to be written on the chit. Only one word per chit is
allowed.
● Once the task of a layer is finished, that layer needs to go and sit aside and not
disturb others till the game ends.
Game Instructions:
Input Layer:
7 students will be standing as the nodes of an input layer.
All of them will be shown an image. After looking at it, they need to write 6 different
words on 6 different chits. They have to choose the words which describe the image in
the best way possible. They can also repeat the words if needed.
After making these chits, they need to pass on one chit to each of the nodes of hidden
layer 1. That is, 1 chit will be given to one member.
Hidden Layer 1:
6 students will be standing as the nodes of hidden layer 1.
Each of them will receive 7 chits from 7 different input nodes. Now they have to take a
good look at the chits and then write down 4 different words on 4 different chits. For this,
they can either use the same words as the input layer did, or they can make their own
information (relevant to the context) and write it.
Now these 4 chits are to be given randomly to any 4 nodes of Hidden Layer [Link] of the
6 nodes of 2nd hidden layer, one can choose any 4 and give once chit to each. (For best
results, each node of hidden layer 2 should get almost same number of chits thus the
division should be done properly)
Hidden Layer 2:
6 Students will be standing as the nodes of hidden layer 2.
Each one of them will get some number of chits from the previous layer. Now they have
to perform the same task as hidden layer 1 and have to write down2 different words on
2 different chits and pass it on to the output layer.
Output Layer:
Finally, the output layer node will get 12 chits. Now s/he has to understand all the words
and has to guess which image was shown to the input layer initially.
Output layer will then write a summary out of all the words received to explain his/her
deduction. The summary should not be more than 5 lines.
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Finally, the output layer presents this summary in-front of everyone and the real image
is finally revealed to all.
If the summary is accurate enough, the whole network wins else they lose.
Test Yourself:
Choose the most appropriate answer for each question.
1. In which type of machine learning is the data labeled with the desired output?
a) Supervised Learning
b) Unsupervised Learning
c) Reinforcement Learning
d) Deep Learning
2. An email spam filter that learns to identify spam emails based on labeled examples is an
application of:
a) Supervised Learning
b) Unsupervised Learning
c) Reinforcement Learning
d) Transfer Learning
3. A machine learning algorithm that groups similar customer purchases into clusters for
recommendation systems uses:
a) Supervised Learning
b) Unsupervised Learning
c) Reinforcement Learning
d) Neural Networks
4. An AI agent playing a game and learning from its rewards and penalties is an example of:
a) Supervised Learning
b) Unsupervised Learning
c) Reinforcement Learning
d) Evolutionary Learning
* Images shown here are the property of individual organisations and are used here for reference purpose only.
5. Which of the following statements is NOT true about supervised learning?
a) Requires labeled data for training.
b) Used for classification and regression tasks.
c) Can be less efficient for large datasets.
d) Often used in image recognition applications.
9. Imagine an AI playing a game and learning to win by trial and error. This is an example of:
a) Supervised Learning
b) Unsupervised Learning
c) Reinforcement Learning
d) Natural Language Processing
* Images shown here are the property of individual organisations and are used here for reference purpose only.
10. Artificial neural networks are inspired by the structure and function of:
a) The human brain
b) Quantum computers
c) Complex mathematical models
d) High-speed processors
11. The process of adjusting the weights in a neural network to improve performance is called:
a) Activation
b) Learning
c) Optimization
d) Training
* Images shown here are the property of individual organisations and are used here for reference purpose only.
Assertion and reasoning-based questions:
Q1. Assertion: Unsupervised Learning is a type of learning without any guidance.
Reasoning: Unsupervised learning models work on unlabeled datasets, where the data fed
into the machine is random and the person training the model may not have any prior
information about it.
Options:
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
Q2. Assertion (A): Information processing in a neural network relies on weights and biases
assigned to nodes.
Reasoning (R): These weights and biases determine how strongly a node is influenced by its
inputs and its overall contribution to the next layer.
Reflection Time:
Answer the following questions:
Q1. Give difference between rule based and learning based AI models.
Q2. What is supervised, unsupervised and reinforcement learning? Explain with examples.
Q3. What is clustering and how is it different from classification?
Q4. Explain neural networks. Also give functions of three layers of neural networks.Q5.
Differentiate between classification and regression model.
Q6. What is neural network? Give the functioning of its three layers?
Q7. Identify the type of learning (supervised, unsupervised, reinforcement learning) are the
following case studies most likely based on?
a) Case Study 1:
A company wants to predict customer churn based on past purchasing behavior,
demographics, and customer interactions. They have a dataset with labeled examples
of customers who churned and those who did not.
b) Case Study 2:
A social media platform wants to group users based on their interests and behavior to
recommend relevant content. They have a large dataset of user interactions but no
predefined categories. Which type of learning is this case study most likely based on?
c) Case Study 3:
* Images shown here are the property of individual organisations and are used here for reference purpose only.
An autonomous vehicle is learning to navigate through a city environment. It receives
feedback in the form of rewards for reaching its destination safely and penalties for
traffic violations. Which type of learning is this case study most likely based on?
d) Case Study 4:
A healthcare provider wants to identify patterns in patient data to personalize
treatment plans. They have a dataset with various patient attributes but no predefined
labels indicating specific treatment plans. Which type of learning is this case study
most likely based on?
e) Case Study 5:
A manufacturing company wants to optimize its production process by detecting
anomalies in sensor data from machinery. They have a dataset with examples of
normal and anomalous behavior. Which type of learning is this case study most likely
based on?
Q8. Identify the type of model (classification, regression, clustering, association model) are
the following case studies most likely based on?
a) A bank wants to predict whether a loan applicant will "default" or "non-default" on
their loan payments. They have a dataset containing information such as income,
credit score, loan amount, and employment status.
b) A real estate agency wants to predict the selling price of houses based on various
features such as size, location, number of bedrooms, and bathrooms. They have a
dataset containing historical sales data.
c) A marketing company wants to segment its customer base into distinct groups based
on purchasing behavior for targeted marketing campaigns. They have a dataset
containing information such as purchase history, frequency of purchases, and amount
spent.
Q9. A healthcare provider wants to improve patient care by predicting the length of hospital
stays for different medical conditions. They have a dataset containing patient demographics,
medical history, and treatment details. The task involves:
* Images shown here are the property of individual organisations and are used here for reference purpose only.