Artificial Intelligence Part B - Unit 2 4 Study Options Available

Unit 2: Advanced Concepts of Modeling in AI

CHAPTER PDF

Complete curriculum textbook chapter document for reading and offline study.

NOTES

Complete conceptual breakdown, formulas, diagrams, and memory aids.

CBSE Class 10 AI | Unit 2 – Advanced Concepts of Modeling in AI
CBSE Class 10 · Artificial Intelligence · Unit 2

Advanced Concepts of Modeling in AI

Complete student-friendly chapter notes covering AI, ML and DL; rule-based and learning-based models; learning approaches; model categories; artificial neural networks; perceptrons; activities; textbook checks and solved board-style practice.

Prepared from the uploaded 38-page PDF. Topics and questions follow the textbook sequence. Original examples and diagrams are explained in text-based learning diagrams.

38-page textbook unit

Unit overview

There are two main categories of AI models: Rule-based and Learning-based. Learning-based models include supervised, unsupervised and reinforcement learning. Deep learning includes neural-network models that automatically extract features from large datasets.

Learning objectives
  1. Become familiar with supervised, unsupervised and reinforcement learning approaches.
  2. Understand neural networks.
Learning outcomes
  1. Understand the three learning approaches.
  2. Understand neural networks.

Prerequisite: Essential understanding of Artificial Intelligence.

Key concepts: Supervised, unsupervised and reinforcement learning; neural networks.

2.1 Revisiting AI, ML and DL

To build an AI-based project, we work with artificially intelligent models or algorithms. We may design our own model or use an existing AI model. Before studying modelling, it is important to understand AI, ML and DL.

Artificial Intelligence (AI)

Artificial Intelligence: Any technique that enables computers to mimic human intelligence. An AI machine works on algorithms and data supplied to it and produces a desired output.

Machine Learning (ML)

Machine Learning: A method that enables machines to improve at tasks through experience. The machine learns from new data, testing, mistakes and exceptions, and uses what it has learned in later iterations.

Deep Learning (DL)

Deep Learning: A learning approach in which software trains itself to perform tasks using vast amounts of data. Multiple machine-learning algorithms work together; neural networks are commonly used to learn complex patterns.

Relationship between AI, ML and DL

Artificial Intelligence (AI)
Machine Learning (ML)
Deep Learning (DL)

AI is the broad umbrella term. Machine Learning is a subset of AI, and Deep Learning is a more specific subset of Machine Learning. Thus, every DL application is within ML and AI, but not every AI application uses ML or DL.

BasisAIMLDL
MeaningMachines mimic human intelligence.Machines improve by learning from data and experience.Software learns complex patterns from very large amounts of data.
ScopeBroadest field.Subset of AI.Subset of ML.
How it worksMay use programmed rules, search, ML or other techniques.Learns patterns from examples and feedback.Uses deep multi-layer neural-network learning.
ExampleRule-based FAQ chatbot.Spam detection learned from examples.Recognising objects in images using a neural network.

Machine Learning: basic working

Input
Past / historical data
→
ML Model
Learns patterns
→
Output
Prediction

The textbook illustrates labelled pictures of apples and strawberries given to an ML model. The model learns their distinguishing patterns and predicts the fruit category for a new input.

Examples of Machine Learning

  • Object classification: Identifies and labels objects in an image or data point and determines the category to which an object belongs.
  • Anomaly detection: Finds unexpected patterns. For example, a sudden spike in a person's heart-rate readings may be flagged as an anomaly requiring attention.

Deep Learning: basic working

Input
Pixels / data
→
Artificial Neural Network
Multiple connected layers
→
Output
Predicted class

The PDF gives a bird-image example: pixels of a bird are supplied to a deep-learning model. An Artificial Neural Network (ANN) processes the visual information and predicts that the image contains a bird.

Examples of Deep Learning

  • Object identification: Identifies and labels objects in an image, such as recognising a cat or dog.
  • Digit recognition: Trains computers to identify handwritten digits from 0 to 9 in images.
Exam tip: Remember the nested relationship AI ⊃ ML ⊃ DL. Explain each term in one or two clear sentences and give a relevant example.

Common Terminologies Used with Data

What is Data?

Data is information in any form. A table containing information about fruits is an example of data. Each row contains information about a different fruit, and each fruit is described using features.

What are Features?

The columns of a data table are called features. In a fruit dataset, features may include fruit name, colour, size or price. Some features are specially designated as labels.

What are Labels?

Data labelling is the process of attaching meaning or a tag to data. The label depends on the problem being solved. If the aim is to predict the fruit using its colour, colour is the feature and fruit name is the label.
FruitColour (feature)Price (feature)Fruit name (label in a colour-based prediction task)
AppleRed$1.8Apple
OrangeOrange$2Orange
BananaYellow$1Banana
GrapePurple$3Grape

Labelled and Unlabelled Data

Labelled data

Data to which a tag or label is attached, such as a name, type or number. Example: pictures labelled “cat” or “dog”.

Unlabelled data

Raw data to which no tag is attached. Example: a collection of animal pictures with no category names.

Training Dataset

A training dataset is a collection of examples supplied to a model so it can analyse them and learn. Like a teacher explaining a topic through examples and illustrations, an AI model learns patterns from its training data.

Testing Dataset

A testing dataset is used to test the accuracy of a trained model. Like a class test checks a student's understanding, test data checks the model's performance on examples it has not used for training. Predictions are compared with the known labels to evaluate accuracy.
Important distinction: Training data teaches the model; testing data evaluates the model. Features are input columns; a label is the target or answer the model is expected to learn/predict.

2.2 Modelling

AI modelling means developing algorithms, also called models, which can be trained to produce intelligent outputs. In simple words, it means writing code and designing a model that enables a machine to behave intelligently.

Two main approaches

AI Models
→
Rule-based
Learning-based

In a rule-based approach, the developer supplies data and rules, and the machine follows those rules to produce an output. In a learning-based approach, the machine is supplied with data and (where appropriate) desired outputs or feedback, and learns patterns or rules from the data.

Detailed classification of AI models in the textbook

AI ModelsRule-based approach
Learning-based → Machine LearningSupervised, Unsupervised and Reinforcement Learning
Learning-based → Deep LearningArtificial Neural Networks (ANN) and Convolutional Neural Networks (CNN)

Rule-Based Approach

Rule-based approach: An AI modelling approach in which the developer defines the relationships or patterns in the data. The machine follows the developer's rules or instructions and performs the task accordingly.

Example: Rule-based chatbot on a clothing website

A clothing website may use a chatbot to answer frequently asked questions and help customers track orders. It does not need a massive training dataset; it uses predefined questions, answers and decision rules.

  1. Data: A predefined set of questions and corresponding answers.
  2. Rules: A decision tree or sequence of conditions determines how a query is handled.
  3. Interaction: The user's message is checked against the rules. The chatbot gives a prepared response or asks for more information.
Simplified order-tracking rules
  1. If the message contains “track order”, “shipment status” or “delivery”, open the order-tracking process.
  2. Ask the customer to enter an order number.
  3. If the order number is valid, retrieve tracking details from the database and display them.
  4. If the number is invalid, show an error and ask the customer to enter it again.
  5. If the message does not match a rule, suggest searching the FAQs or contacting customer support.

Limitation of rule-based models

Learning is static. Once programmed, the model does not automatically take account of changes in the original data or learn from its mistakes. If it receives an unfamiliar input that is not covered by its rules, it may fail. Learning-based models address this limitation by adapting patterns from data and feedback.

Learning-Based Approach

Learning-based approach: A method in which a computer learns how to perform a task by examining examples or receiving feedback. Instead of being explicitly programmed for every situation, it analyses data and discovers patterns or rules.

The textbook gives an example of 1,000 images of stray dogs from an area. If the trainer does not know the breed, colour or other patterns, the model can analyse the images and discover groups based on colour, size, fur style or other similarities.

Learning-based spam filter example

  1. Provide a large dataset of emails labelled as spam or legitimate.
  2. The model analyses words, sender information and attachments.
  3. Machine-learning algorithms identify patterns that distinguish spam from legitimate email.
  4. After training, the filter classifies new incoming emails as spam or not spam.
  5. As it encounters additional examples, the system can be updated and improved.

Three categories of Machine Learning

Supervised LearningLearn from labelled examples.
Unsupervised LearningDiscover patterns in unlabelled data.
Reinforcement LearningLearn through actions, rewards and penalties.

Supervised Learning

Supervised Learning: A learning approach in which the dataset supplied to the machine is labelled. The model learns the relationship between input features and known target labels.

The term “supervised” is compared with a teacher guiding students. A mathematics teacher explains solved examples during training and then gives students problems to solve independently during testing. Similarly, a machine learns from labelled examples and applies what it has learned to new data.

Textbook example: Currency coins

Problem statement: Build a model that predicts the type of currency coin based on its weight.

CoinWeight
1 Euro5 grams
1 Dirham7 grams
1 Dollar3 grams
1 Rupee4 grams
  • Feature: Weight of the coin.
  • Label: Currency name.

The model is trained with coin weights and their corresponding currency labels. Later, it can predict a coin's currency from its weight. The textbook also shows labelled dog and cat pictures: the model learns from labelled training images and applies the learned knowledge to test images.

Unsupervised Learning

Unsupervised Learning: A learning approach that works on unlabelled data. The model independently identifies relationships, patterns, similarities, differences and trends in the supplied data.

The trainer may not know the categories in advance. The model explores the data and discovers groups or patterns. The textbook compares this with a child learning to swim without supervision: the child explores and discovers techniques independently.

Example 1: 1,000 dog images

Give a collection of dog images without labels to the model. It may discover groups based on colour, size or fur style. These patterns may be known to the user or may be unexpected.

Example 2: Supermarket customer groups

A supermarket has customer purchase records. The marketing manager wants to send grocery offers to regular grocery shoppers, but no customer has been labelled as a grocery shopper or non-grocery shopper. An unsupervised model can discover two groups (clusters) from purchasing patterns.

Example 3: Grouping cats and dogs

With unlabelled animal images, the model can discover visual similarities and group the images. In the textbook illustration, cats are grouped in Cluster 1 and dogs in Cluster 2.

Textbook Test Yourself: identify supervised or unsupervised

Case 1 – Social media recognises a friend in tagged photographs
Supervised Learning. The photographs are tagged with a person's identity. These tags act as labels, so the model learns from labelled examples.
Case 2 – OTT recommendations based on watch history
Unsupervised Learning (as classified by this textbook example). The platform examines viewing or listening patterns and similarities in likes and dislikes to recommend related movies or songs. The PDF names Netflix, Pandora and Spotify.
Case 3 – Bank data used to flag suspicious transactions when suspicious patterns are not predefined
Unsupervised Learning. Since the examples are not labelled “fraud” or “not fraud”, the model looks for unusual transactions or outliers and flags them for attention.

Supervised vs Unsupervised Learning

Supervised LearningUnsupervised Learning
Uses labelled data.Uses unlabelled data.
Useful for known tasks such as predicting prices from past trends or classifying examples.Useful for finding unknown patterns within large datasets.
Training data has known target labels.Model discovers groups or relationships without target labels.
Examples: labelled coin identification, spam/not-spam classification.Examples: customer clustering, discovering anomalous transactions.

Reinforcement Learning

Reinforcement Learning: A learning approach in which a computer makes a series of decisions to maximise a reward for a task. It learns through repeated trial and error, receiving positive or negative feedback for its actions.

Textbook example: Apple predicted as a cherry

  1. An image of an apple is given to the machine.
  2. The machine first predicts “cherry”.
  3. The trainer gives negative feedback because the prediction is incorrect.
  4. The machine learns that the image is not a cherry.
  5. The apple image is presented again; the machine predicts “apple”.
  6. Positive feedback confirms the correct prediction and reinforces the successful action.

What makes reinforcement learning different?

  1. Supervised and unsupervised learning usually require a reasonable understanding of the available data and problem.
  2. Some problems have large and complex possible states.
  3. The system may face unforeseen situations for which there is insufficient specific data.
  4. The environment may change, so the system needs to adapt.
  5. Reinforcement learning is useful because it can learn useful behaviour through rewards and penalties without requiring extensive pre-existing knowledge of every situation.

Applications shown in the textbook

Parking a car

An agent can learn suitable steering and movement actions through feedback while attempting to park.

Humanoid walking

A simulated or physical agent can learn to balance and walk by trying actions and receiving feedback.

Remember: Supervised = labelled examples; Unsupervised = discover patterns; Reinforcement = reward and penalty mechanism.

Summary and Subcategories of Machine Learning Models

Learning typeMain purpose
SupervisedDetermine relationships through training on labelled data.
UnsupervisedDiscover new patterns from data.
ReinforcementLearn by a reward mechanism and improve actions.

Supervised learning: Classification and Regression

Supervised Learning
→
Classification
Regression

1. Classification Model

Classification: A supervised learning model that assigns data to predefined labels or categories. It generally predicts discrete outputs, such as “hot/cold” or “spam/not spam”.

Example A – Weather: hot or cold

The model is trained on historical weather data labelled “hot” or “cold”. It learns from factors such as location, season, high and low temperatures, and humidity. For tomorrow's data, it predicts the most likely category: hot or cold.

Example B – Email classification

The model learns from examples of genuine and spam emails. It analyses clues in a new email and assigns it to a category such as spam or not spam. Modern email systems may further classify messages as social, advertisements or notifications. Similar models are used in messaging applications.

2. Regression Model

Regression: A supervised learning model that predicts a continuous numerical value from input variables. Examples of continuous values include temperature, price, income and age.

Example A – Predicting temperature

Temperature can take many numerical values within a range, so regression is suitable for predicting a temperature value.

Example B – Predicting house price

  • Independent variables / features: Number of bedrooms, carpet size and garage area.
  • Dependent variable / label: House price.

The model learns the relationship between house features and historical prices, then predicts a price for a new house.

Example C – Used-car price prediction

The model estimates a car's selling price using parameters such as fuel type, years of service, number of previous owners, kilometres driven and transmission type (manual/automatic). The predicted price is a continuous value.

Textbook Test Yourself: Classification or Regression?

Case 1 – Predict whether a customer is eligible for a bank loan
Classification (binary classification). The result is one of two discrete categories: eligible/yes or not eligible/no.
Case 2 – Predict weather over the next 24 hours
Regression when the task is to predict a continuously changing numerical weather variable over time, as stated in the textbook.
ClassificationRegression
Predicts a category or class.Predicts a continuous numerical value.
Examples: spam/not spam, hot/cold, loan eligible/not eligible.Examples: temperature, house price, used-car price.
Output is discrete/categorical.Output is continuous/numerical.

Unsupervised Learning Subcategories: Clustering and Association

1. Clustering

Clustering: An unsupervised learning process that divides data points into different groups or clusters based on similarities between them.

The textbook illustration uses unlabelled images of birds and animals. The model identifies similarities and creates two clusters: one containing animals and another containing birds, even though the input data did not have class labels.

Difference between Classification and Clustering

ClassificationClustering
Uses predefined classes or labels.Finds similarities and creates groups from unlabelled data.
Usually supervised learning.Unsupervised learning.
Example: classify an email as spam or not spam.Example: group customers according to purchasing behaviour.

Clustering example – Jim's music preferences

Jim likes songs with a slow tempo and soft intensity, and dislikes songs with a fast tempo and high intensity.

  1. Group slow-tempo, soft-intensity songs into one cluster.
  2. Group fast-tempo, high-intensity songs into another cluster.
  3. When a new song X has slow tempo and soft intensity, the model places it with the similar songs. It may therefore be recommended as a song Jim is likely to enjoy.

The textbook connects this type of technique with recommendations on OTT platforms such as Netflix and Spotify.

2. Association Rule

Association: An unsupervised learning method used to find interesting relationships between variables in a database.

Textbook example – Supermarket purchases

Customer A buys bread, butter and milk. Customer B buys rice, bread and butter. From these purchase patterns, the model can identify that customers who buy bread may also be likely to buy butter. Such relationships can help recommend products to customers.

Exam distinction: Clustering groups similar records; Association discovers items or events that occur together.

Subcategories of Deep Learning

Deep Learning enables software to train itself to perform tasks using vast amounts of data. The textbook identifies two types of deep-learning models:

Deep Learning
→
Artificial Neural Networks (ANN)
Convolutional Neural Networks (CNN)

Artificial Neural Networks (ANN)

Artificial Neural Networks are modelled on the human brain and nervous system. They can automatically extract features without the programmer manually specifying every feature. Each neural-network node performs a computational role. ANNs are useful for problems involving very large datasets.

Convolutional Neural Networks (CNN)

A Convolutional Neural Network is a deep-learning algorithm designed to process images. It assigns learnable importance (weights and biases) to different aspects or objects in an image so that it can distinguish one object or visual pattern from another.

The source PDF's final CNN sentence on page 23 is visibly cut off after “differentiate one from the o…”. The explanation above completes the concept in standard, student-friendly language; it is not presented as a verbatim continuation of the missing source text.

2.3 Artificial Neural Networks

Purpose of this section: To understand and experience what a neural network is like.

What is a Neural Network?

Neural Network: A computing system loosely modelled on how neurons in the human brain behave. It organises machine-learning algorithms into interconnected layers and nodes. Its important advantage is automatic feature extraction, which makes it useful for large and complex datasets such as images.

Structure of a Neural Network

Input Layer
Receives data
→
Hidden Layer(s)
Computations
→
Output Layer
Final result

A neural network has multiple layers. Each layer contains nodes. Each node performs a task and passes information to the next layer.

1. Input Layer

The first layer receives or acquires input data and feeds it into the neural network. No processing is performed at this layer.

2. Hidden Layer(s)

Hidden layers perform the main computations. Their nodes process information received from the previous layer. Calculations use weights and biases, and values pass through an activation function before being sent forward. A network may have multiple hidden layers; their number and the number of nodes depend on the complexity of the task.

3. Output Layer

The final hidden layer passes processed information to the output layer. The output layer presents the final result to the user; like the input layer, it is described in the textbook as an interface layer rather than a processing layer.

How does a neural network learn?

  1. Input data enters the input layer.
  2. Hidden-layer nodes calculate using weights and biases.
  3. The calculated value passes through an activation function.
  4. The network produces an output.
  5. The predicted output is compared with the desired output to find an error.
  6. Weights are adjusted based on the error.
  7. The process is repeated through trials until the network learns to produce a better output.

Real-world applications listed in the textbook

  • Facial recognition.
  • Customer-support chatbot.
  • Vegetable-price prediction.

How Does AI Make a Decision? – Perceptron Example

The textbook explains a simple decision using the example of deciding whether to go to a park. A person may consider whether they have a jacket, whether they have an umbrella, whether it is sunny now and what the weather forecast predicts for later.

Inputs and importance

InputQuestion / factorAssigned weight in textbook example
X1Do I have a jacket?W1 = 1.5
X2Do I have an umbrella?W2 = 1.0
X3Is it sunny now?W3 = 3.0
X4What is the weather forecast for later?W4 = 2.5
BiasPersonal caution / bias termWB = 4.0

Not all factors have equal importance. In the textbook example, current sunshine is considered more important than the later forecast, and having a jacket is considered more important than having an umbrella. Weights may reflect experience or personal preference. A cautious person may choose a larger bias value; a more daring person may choose a smaller one.

Perceptron structure

X1, X2, X3, X4
Input values
→
Weights + Bias
Weighted sum
→
Threshold
Compare
→
Y
Go / Do not go

Perceptron formula used for the textbook calculation

Output score = (X1 × W1) + (X2 × W2) + (X3 × W3) + (X4 × W4) − (1 × WB)

Yes/no inputs are converted into numbers: Yes = 1 and No = 0. The bias input is taken as 1. The threshold in the example is 0.

Scenario 1 – Go to the park

Situation: I have a jacket; I do not have an umbrella; it is sunny now; the forecast says rain.

InputValueWeightMultiplication
X1 – Jacket11.51 × 1.5 = 1.5
X2 – Umbrella01.00 × 1.0 = 0
X3 – Sunny now13.01 × 3.0 = 3.0
X4 – Forecast02.50 × 2.5 = 0
Bias14.01 × 4.0 = 4.0
Notebook-style solution
Output = (1 × 1.5) + (0 × 1.0) + (1 × 3.0) + (0 × 2.5) − (1 × 4.0)
= 1.5 + 0 + 3.0 + 0 − 4.0
= 4.5 − 4.0
= 0.5
Comparison: 0.5 is greater than threshold 0. Therefore, the decision is GO TO THE PARK.

Scenario 2 – Do not go to the park

Situation: I do not have a jacket; I have an umbrella; it is not sunny now; the forecast is okay.

InputValueWeightMultiplication
X1 – Jacket01.50 × 1.5 = 0
X2 – Umbrella11.01 × 1.0 = 1.0
X3 – Sunny now03.00 × 3.0 = 0
X4 – Forecast12.51 × 2.5 = 2.5
Bias14.01 × 4.0 = 4.0
Notebook-style solution
Output = (0 × 1.5) + (1 × 1.0) + (0 × 3.0) + (1 × 2.5) − (1 × 4.0)
= 0 + 1.0 + 0 + 2.5 − 4.0
= 3.5 − 4.0
= −0.5
Comparison: −0.5 is lower than threshold 0. Therefore, the decision is DO NOT GO TO THE PARK.
Perceptron exam points: Identify the inputs, assign binary values, multiply each input by its weight, include the bias term, calculate the final score and compare it with the threshold. The textbook's chosen weights are illustrative and may vary with personal preference.

Activity 1 – Human Neural Network: The Game

Purpose: To understand and experience how a neural network works. Students act as nodes in the input layer, hidden layers and output layer. The facilitator shows a sample image only to the input-layer students. Information is passed through the layers using written words on chits.

Session preparation

Logistics in the PDF: The preparation table says a class of 40 students, individual activity.

MaterialQuantity
Images (kept with facilitator)2
Post-it notes80
Sketch pens40

Game structure

LayerNumber of studentsNumber of chits written by each node
Input Layer76
Hidden Layer 164
Hidden Layer 262
Output Layer1—
Total20—
Source detail: The logistics line refers to a class of 40, while the game-structure table specifies 20 participating nodes. Preserve both figures as printed in the source.

Ground rules

  1. No one may talk or discuss until the game ends; the activity should be played honestly.
  2. Each layer should sit at a distance from the other layers.
  3. Only the input layer may see the image.
  4. The game is silent: write a word on a chit and pass it without speaking.
  5. Work quickly; do not spend too much time writing and passing chits.
  6. Input-layer nodes cannot discuss the image with one another. Each uses their own judgement.
  7. Only one word may be written on each chit; no sentences or multiple words.
  8. After completing their task, members of a layer sit aside without disturbing others.

Game instructions by layer

  1. Input Layer: Seven students act as input nodes. Each sees the image and writes six descriptive words on six separate chits. Words may be repeated if needed. Each input node passes one chit to each of the six nodes in Hidden Layer 1.
  2. Hidden Layer 1: Each of the six students receives seven chits from the seven input nodes. Each reads the chits and writes four words, using the same words or creating relevant words. The four chits are passed to any four nodes in Hidden Layer 2. Distribute chits so that the second hidden layer receives a reasonably balanced number.
  3. Hidden Layer 2: Each of six students receives chits from the previous layer. Each writes two words and passes them to the output layer.
  4. Output Layer: One student receives 12 chits, interprets the words and guesses the original image. The student writes a summary of no more than five lines explaining the deduction.

The output-layer student presents the summary to the class, and the facilitator reveals the original image. If the summary is sufficiently accurate, the network wins; otherwise, it loses.

Learning connection: Each student-node receives partial information, processes it and passes a transformed representation to the next layer. The final node combines information to produce an output. This models information flow through layers of a neural network.

Textbook Test Yourself – 14 MCQs with Answers

1. In which type of machine learning is the data labelled with the desired output?
  1. Supervised Learning ✓
  2. Unsupervised Learning
  3. Reinforcement Learning
  4. Deep Learning
Answer: A. Supervised Learning.
Supervised learning uses labelled training data.
2. An email spam filter that learns to identify spam based on labelled examples is an application of:
  1. Supervised Learning ✓
  2. Unsupervised Learning
  3. Reinforcement Learning
  4. Transfer Learning
Answer: A. Supervised Learning.
The examples are labelled spam or legitimate, so the task is supervised.
3. A machine-learning algorithm that groups similar customer purchases into clusters for recommendation systems uses:
  1. Supervised Learning
  2. Unsupervised Learning ✓
  3. Reinforcement Learning
  4. Neural Networks
Answer: B. Unsupervised Learning.
Grouping similar records without predefined labels is clustering, an unsupervised approach.
4. An AI agent playing a game and learning from rewards and penalties is an example of:
  1. Supervised Learning
  2. Unsupervised Learning
  3. Reinforcement Learning ✓
  4. Evolutionary Learning
Answer: C. Reinforcement Learning.
The agent learns actions through rewards and penalties.
5. Which statement is NOT true about supervised learning?
  1. Requires labelled data for training
  2. Used for classification and regression tasks
  3. Can be less efficient for large datasets ✓
  4. Often used in image recognition applications
Answer: C. Can be less efficient for large datasets.
The source's intended answer is C. The other statements describe supervised learning; C is not a defining characteristic and is framed as the false statement in this MCQ.
6. In an unsupervised learning scenario, the goal is to:
  1. Predict a specific output based on labelled data
  2. Identify patterns and relationships within unlabelled data ✓
  3. Train an AI agent through rewards and penalties
  4. Develop complex neural-network architectures
Answer: B. Identify patterns and relationships within unlabelled data.
Unsupervised learning discovers patterns in unlabelled data.
7. Clustering algorithms are commonly used in unsupervised learning for:
  1. Spam filtering
  2. Image classification
  3. Stock price prediction
  4. Grouping similar data points ✓
Answer: D. Grouping similar data points.
Clustering places similar data points into groups.
8. Reinforcement learning is particularly useful for scenarios where:
  1. Large amounts of labelled data are available
  2. The desired outcome is clear, but the path to achieve it is unknown ✓
  3. The data is structured and easily categorised
  4. The task requires reasoning and logical deduction
Answer: B. The desired outcome is clear, but the path to achieve it is unknown.
An agent can learn a route or policy through feedback when the best sequence of actions is not already known.
9. An AI playing a game and learning to win by trial and error is an example of:
  1. Supervised Learning
  2. Unsupervised Learning
  3. Reinforcement Learning ✓
  4. Natural Language Processing
Answer: C. Reinforcement Learning.
Trial and error with rewards is reinforcement learning.
10. Artificial neural networks are inspired by the structure and function of:
  1. The human brain ✓
  2. Quantum computers
  3. Complex mathematical models
  4. High-speed processors
Answer: A. The human brain.
ANNs are loosely modelled on neurons in the human brain and nervous system.
11. The process of adjusting weights in a neural network to improve performance is called:
  1. Activation
  2. Learning
  3. Optimization ✓
  4. Training
Answer: C. Optimization.
The most specific option is optimisation: weights are adjusted to reduce error and improve output. This takes place during training/learning.
12. A neural network with multiple layers of interconnected neurons is called a:
  1. Single-layer network
  2. Deep Neural Network ✓
  3. Linear network
  4. Perceptron
Answer: B. Deep Neural Network.
A network with multiple layers is a deep neural network.
13. Neural networks are particularly well-suited for tasks involving:
  1. Simple calculations and mathematical operations
  2. Recognising patterns in complex data like images and text ✓
  3. Performing logical deductions and reasoning tasks
  4. Storing and retrieving large amounts of information
Answer: B. Recognising patterns in complex data like images and text.
Neural networks automatically learn complex features and patterns, including visual and textual patterns.
14. Training a neural network often requires:
  1. A small set of labelled data samples
  2. A significant amount of data and computational resources ✓
  3. A specific set of programming instructions
  4. A human expert to guide the learning process
Answer: B. A significant amount of data and computational resources.
Neural-network training often requires substantial data and computational resources.
Accuracy note: Question 5 is worded awkwardly in the source. Its intended answer is option C, but the phrase “can be less efficient for large datasets” is not a universal property of supervised learning. For school-level MCQ practice, use the intended key while understanding that efficiency depends on the dataset, algorithm and task.

Assertion–Reason Questions

Q1

Assertion: Unsupervised Learning is a type of learning without any guidance.

Reason: Unsupervised learning models work on unlabelled datasets, where the data fed into the machine is random and the person training the model may not have prior information about it.

Show answer
Correct option: (a). Both Assertion and Reason are true, and the Reason is the correct explanation of the Assertion. The model discovers patterns from unlabelled data rather than being given the correct target labels.

Q2

Assertion: Information processing in a neural network relies on weights and biases assigned to nodes.

Reason: These weights and biases determine how strongly a node is influenced by its inputs and its overall contribution to the next layer.

Show answer
Correct option: (a). Both statements are true, and the Reason correctly explains the Assertion. Weights control the strength of input connections, while bias shifts the node's weighted calculation.

For Q2, the PDF lists the assertion and reason but does not print the four options. The answer above uses the standard assertion–reason format.

Reflection Time – All Textbook Questions with Model Answers

Q1. Give difference between rule-based and learning-based AI models.
A rule-based model follows rules and instructions explicitly written by the developer. Its behaviour is static and it does not automatically learn from mistakes or unfamiliar data. A learning-based model analyses examples or feedback to discover patterns or rules. It can adapt when it is trained or updated with new data. Example: a fixed FAQ chatbot is rule-based; a spam filter trained on labelled emails is learning-based.
Q2. What is supervised, unsupervised and reinforcement learning? Explain with examples.
(1) Supervised learning uses labelled data. Example: train a model with coin weights labelled by currency so it can predict the currency of a new coin. (2) Unsupervised learning uses unlabelled data and discovers patterns. Example: group supermarket customers by purchase behaviour without preassigned customer categories. (3) Reinforcement learning learns through actions, trial and error, rewards and penalties. Example: a game-playing agent learns which actions help it win.
Q3. What is clustering and how is it different from classification?
Clustering is an unsupervised process of grouping data points according to similarities without predefined labels. Classification is a supervised process that assigns an input to one of the predefined classes using labelled training data. Example: grouping customers by purchase patterns is clustering; classifying an email as spam or not spam is classification.
Q4. Explain neural networks. Also give functions of three layers of neural networks.
A neural network is a computing system loosely modelled on the human brain. It consists of connected nodes arranged in layers and can automatically extract features from data. (1) Input layer: receives data and passes it into the network; it does not perform processing. (2) Hidden layer(s): perform computations using weights, biases and activation functions. Weights are adjusted based on error during learning. (3) Output layer: receives the final processed information and presents the network's result to the user.
Q5. Differentiate between classification and regression model.
Classification predicts discrete categories or labels, such as hot/cold, spam/not spam or loan eligible/not eligible. Regression predicts a continuous numerical value, such as temperature, salary, house price or used-car price. Both are supervised-learning model types.
Q6. What is neural network? Give the functioning of its three layers?
A neural network is a layered system of interconnected nodes inspired by the brain. The input layer receives raw data; hidden layers process it using weights, biases and activation functions; the output layer presents the final prediction. During training, the predicted result is compared with the desired result and weights are adjusted to reduce error.
Q7(a). Customer churn prediction using past behaviour, demographics and labelled examples of customers who churned or did not churn.
Supervised learning. The training dataset includes known labels: churned and did not churn. The model learns the relationship between customer features and the churn label.
Q7(b). Group social-media users by interests and behaviour when no predefined categories exist.
Unsupervised learning. The model discovers similarities and groups users into clusters without supplied category labels.
Q7(c). An autonomous vehicle receives rewards for reaching a destination safely and penalties for traffic violations.
Reinforcement learning. The vehicle's agent learns actions and navigation behaviour from rewards and penalties.
Q7(d). Find patterns in patient attributes when no treatment-plan labels are supplied.
Unsupervised learning. The model explores unlabelled patient data to discover groups or patterns that may support personalisation.
Q7(e). Detect machinery anomalies when the dataset contains examples of normal and anomalous behaviour.
The source does not fully specify whether these examples are labelled. If each record is labelled normal/anomalous, it is supervised learning (classification). If the model is expected to discover unusual patterns without labels, it is unsupervised anomaly detection. The question should be answered according to whether labels are supplied.
Q8(a). Predict whether a bank loan applicant will default or not default.
Classification, specifically binary classification, because the output is one of two discrete categories: default or non-default.
Q8(b). Predict house selling price from size, location, bedrooms and bathrooms.
Regression, because the target is a continuous numerical price.
Q8(c). Segment customers into groups based on purchasing behaviour.
Clustering, because the task is to discover groups of similar customers without predefined class labels.
Q8(d). Identify products commonly purchased together from transaction records.
Association, because the model discovers relationships between items that occur together in transactions.
Q9. Identify model types for hospital-stay tasks (a–d).
(a) Predict short or long stay: Classification, because the output is a category. (b) Predict the number of days: Regression, because the output is a numerical value. (c) Segment patients into similar groups: Clustering. (d) Identify patterns in treatments and outcomes: Association when the aim is to find relationships among treatment and outcome variables in records.
Q10. Convert the work-from-home decision into a perceptron.
Inputs: X1 = employee performs well remotely; X2 = upcoming team meetings/collaborative projects; X3 = company policy supports remote work; X4 = benefit to employee and company. Encode each as 1 for Yes and 0 for No. Assign weights W1–W4 according to importance and choose a bias weight based on the decision-maker's caution. Calculate S = X1W1 + X2W2 + X3W3 + X4W4 − WB. Compare S with a chosen threshold: if S is above the threshold, approve; otherwise, do not approve. The PDF does not prescribe numerical weights, so they must be stated as assumptions.
Q10. Convert the solar-panel investment decision into a perceptron.
Inputs: X1 = sufficient sunlight in the area; X2 = incentives or rebates available; X3 = installation affects home value positively; X4 = solar energy provides environmental benefits. Encode Yes as 1 and No as 0. Assign weights according to importance, choose a bias weight and calculate S = X1W1 + X2W2 + X3W3 + X4W4 − WB. Compare the score with the selected threshold to decide whether to invest. Since the source gives no numerical weights, any worked numerical values must be clearly identified as assumptions.

Additional CBSE Board-Oriented Practice with Solutions

Very Short Answer Questions (1 mark)

Define a feature.
A feature is an input attribute or column in a dataset that describes each data record.
What is a label?
A label is the target tag or answer attached to data for a particular learning task.
Name the three types of machine learning.
Supervised learning, unsupervised learning and reinforcement learning.
Which learning approach uses rewards and penalties?
Reinforcement learning.
What is the output of a regression model?
A continuous numerical value.
Name the two deep-learning model types listed in the chapter.
Artificial Neural Networks (ANN) and Convolutional Neural Networks (CNN).
What is the role of the input layer?
It receives input data and passes it into the neural network.
What is an association rule?
It is an unsupervised method for discovering relationships between variables or items in a database.

Short Answer Questions (2–3 marks)

Explain training data and testing data.
Training data is the collection of examples used by a model to learn patterns and relationships. Testing data is a separate collection used to evaluate the trained model on examples it has not used for learning. Training builds the model; testing checks how well it performs.
Explain any two applications of deep learning from the chapter.
(1) Object identification: a deep-learning model analyses an image and identifies objects such as cats and dogs. (2) Digit recognition: a model learns to recognise handwritten digits from 0 to 9 in images.
Why can a rule-based chatbot fail when a user asks an unexpected question?
A rule-based chatbot follows only the conditions and responses written by its developer. If a new query does not match any predefined rule, the chatbot cannot independently learn the intended meaning and may return a fallback response.
Differentiate between clustering and association.
Clustering groups records that are similar to one another, such as customers with similar purchase behaviour. Association discovers relationships between items or events, such as bread being frequently purchased with butter.
Explain the role of weights and biases in a neural network.
Weights determine the influence of each input on a node's calculation. Bias provides an additional adjustable value that shifts the calculation. Together with an activation function, they help the network transform input data. During training, weights are adjusted using the error between predicted and desired outputs.

Long Answer Questions (4–5 marks)

Explain the three machine-learning approaches with examples.
Supervised learning trains a model using labelled data. For example, a coin-identification model learns from coin weights paired with currency labels. Unsupervised learning uses unlabelled data and discovers patterns independently. For example, a supermarket can group customers according to purchase records without pre-labelled shopper categories. Reinforcement learning trains an agent through actions, trial and error, rewards and penalties. For example, an autonomous vehicle can learn safer navigation by receiving rewards for safe driving and penalties for traffic violations.
Explain the difference between classification and regression with examples.
Classification predicts a discrete category. A weather classifier may predict hot or cold, while an email classifier may predict spam or not spam. Regression predicts a continuous numerical value. A temperature model predicts a numerical temperature, and a house-price model predicts a price from features such as bedrooms, carpet area and garage area. Both are supervised learning methods.
Describe the architecture and working of a neural network.
A neural network is made of interconnected nodes arranged in an input layer, one or more hidden layers and an output layer. The input layer receives data. Hidden layers perform calculations using weights and biases, and pass values through activation functions. The output layer presents the final result. During training, the network compares its prediction with the desired output, calculates error and adjusts weights. Repeated learning improves the prediction. Neural networks are used in facial recognition, customer-support chatbots and price prediction.
Explain the perceptron park-decision example and calculate both outcomes.
The model has four inputs: jacket, umbrella, sunshine now and later weather forecast. Their weights are 1.5, 1.0, 3.0 and 2.5. Bias weight is 4.0 and threshold is 0. For scenario 1, inputs are 1,0,1,0: score = 1(1.5)+0(1.0)+1(3.0)+0(2.5)−1(4.0)=0.5. Since 0.5 > 0, go to the park. For scenario 2, inputs are 0,1,0,1: score = 0+1+0+2.5−4=−0.5. Since −0.5 < 0, do not go to the park.

Competency-Based Questions

A school has student marks and grade labels from previous examinations. It wants to predict the grade of a new student from marks. Identify the learning approach and model type.
Supervised learning with a classification model. Historical examples contain marks and known grade labels; the predicted grade is a category.
A retailer has transaction records but no product-group labels. It wants to discover products often purchased together.
Unsupervised learning using association rules. The model discovers co-occurrence relationships in transaction data.
A robot learns to balance by trying movements. Successful balance earns a reward and falling receives a penalty. Identify the approach.
Reinforcement learning, because the robot learns an action policy from rewards and penalties through trial and error.
A housing website wants to estimate a property's sale price using area, location and bedroom count. Identify the model.
Regression, because the target variable is a continuous numerical house price. It is supervised if historical examples include known sale prices.
An image dataset contains thousands of unlabelled animal pictures. The system groups visually similar pictures. Identify the model.
Unsupervised learning using clustering, because no predefined category labels are supplied and the model discovers groups based on similarity.

Chapter Summary and Last-Minute Revision

Definitions to memorise

  • AI: Techniques that enable computers to mimic human intelligence.
  • ML: Enables machines to improve by learning from data and experience.
  • DL: A subset of ML that learns complex patterns from vast amounts of data using deep models.
  • Data: Information in any form.
  • Feature: An input attribute or column describing data.
  • Label: A target tag attached to data.
  • Training dataset: Examples used by a model to learn.
  • Testing dataset: Data used to evaluate the trained model.
  • Rule-based model: A model that follows developer-defined rules.
  • Learning-based model: A model that learns patterns from examples or feedback.
  • Classification: Prediction of a predefined category.
  • Regression: Prediction of a continuous numerical value.
  • Clustering: Grouping unlabelled data by similarity.
  • Association: Finding relationships between variables or items.
  • Neural network: A layered system of interconnected nodes inspired by the brain.
  • Perceptron: A simple computational unit that combines weighted inputs and a bias to produce an output.

Model selection quick guide

Question in a problemChooseReason
Is the target a category?ClassificationOutput is discrete.
Is the target a number on a continuous scale?RegressionOutput is continuous.
Do we need to discover groups?ClusteringFinds similarity-based groups without predefined labels.
Do we need to find items that occur together?AssociationFinds relationships in transaction or other data.
Does an agent learn from rewards and penalties?Reinforcement LearningUses feedback from actions.

Important diagrams to practise drawing

  1. Nested relationship of AI, ML and DL (page 2).
  2. Input → ML Model → Output (page 3).
  3. Input → ANN → Output (page 5).
  4. AI model classification tree: rule-based and learning-based (pages 7 and 10).
  5. Supervised, unsupervised and reinforcement learning (pages 10 and 16).
  6. Classification and regression branches (page 16).
  7. Clustering and association branches (pages 19–21).
  8. ANN layers: input, hidden and output (pages 24–25).
  9. Perceptron with weighted inputs and bias (pages 26–29).
  10. Human Neural Network activity flow (pages 30–33).

Exam strategy

  • For comparisons, use a two-column table and include examples.
  • For a case study, identify whether labels exist, whether the output is a category or number, and whether rewards are used.
  • For a neural-network question, explain all three layers in order.
  • For a perceptron numerical question, show each multiplication, addition, bias subtraction and threshold comparison.
  • Use textbook examples where possible: coins, spam filters, supermarket purchases, bread and butter, park decision, car parking and humanoid walking.
Quick recall: AI contains ML; ML contains DL. ML types: supervised, unsupervised, reinforcement. Supervised subtypes: classification and regression. Unsupervised subtypes: clustering and association. Deep-learning types in this unit: ANN and CNN.

PDF Coverage and Verification Notes

The uploaded source is a 38-page PDF. The resource follows its sequence and includes the content listed below.

PDF pagesContent covered
1Unit title, lesson summary, objectives, outcomes, prerequisites and key concepts.
2–5AI, ML, DL; their relationship; ML and DL block representations; object classification, anomaly detection, object identification and digit recognition.
6–7Data, features, labels, labelled/unlabelled data, training/testing datasets; introduction to modelling and AI model classification.
8–9Rule-based chatbot example and limitations; learning-based approach; stray-dog image example and spam filter.
10–11Supervised learning, teacher analogy, coin-weight example and labelled animal-image example.
12–15Unsupervised learning, swimming analogy, supermarket/customer clustering, cats/dogs grouping, three supervised/unsupervised identification cases, reinforcement learning, apple/cherry feedback example and applications.
16–19ML summary; classification and regression definitions, examples and textbook identification questions; unsupervised subcategories.
20–23Clustering, classification comparison, Jim's music example, association rule and bread/butter example, ML knowledge check, ANN and CNN.
24–29Neural-network definition and architecture; functions of layers; decision-making example; perceptron, weights, bias, inputs, calculations and two outcomes.
30–33Human Neural Network activity: preparation, material list, game structure, ground rules and layer-by-layer instructions; Test Yourself questions 1–4.
34–35Test Yourself questions 5–14.
36–38Assertion–Reason questions; Reflection Time questions 1–10, including learning-type case studies, model-selection cases and perceptron design prompts.

Visuals and source-specific notes

  • Page 2: The nested AI/ML/DL diagram is represented as a nested hierarchy in the notes.
  • Pages 3–5: ML and DL block diagrams are recreated as text flows; the apple/strawberry and bird-image examples are explained.
  • Page 6: The fruit table and feature/label callouts are reproduced as an HTML table.
  • Pages 10, 16, 19 and 23: Learning-model classification diagrams are recreated as hierarchy and flow diagrams.
  • Pages 26–29: Perceptron visuals are translated into input tables and step-by-step arithmetic, preserving the printed weights and results.
  • Pages 30–33: Activity diagrams are represented through the original game structure and detailed instructions.

The PDF contains no separate mathematical formula sheet. The perceptron calculation is the mathematical procedure shown in the source and is worked through in full. The CNN definition on page 23 is cut off in the uploaded PDF; its intended meaning is explained without claiming to reproduce missing text. Reflection prompts are answered using the chapter's concepts. Where a case does not provide enough information to decide between labelled and unlabelled learning (Q7e), the answer states both possible interpretations rather than inventing missing facts.

CBSE Class 10 · Artificial Intelligence · Unit 2: Advanced Concepts of Modeling in AI

TEXTBOOK SOLUTION

Step-by-step solved textbook exercises, derivations, and solutions.

Class 10 AI Unit 2 – Textbook Back Exercise Solutions
CBSE · Class 10 · Artificial Intelligence (417)

Unit 2: Advanced Concepts of Modeling in AI

Complete textbook back-exercise solutions · Test Yourself · Assertion–Reason · Reflection Time

About these solutions

This document answers the exercise questions from the uploaded Unit 2 textbook. The answers use simple language for Class 10 students. MCQs include the correct option and a reason. Short questions are answered directly, while questions that ask to explain, differentiate, identify or convert a scenario are answered with sufficient detail, examples and step-by-step working.

Exam tip: In a long answer, explain each point in a complete sentence and connect the example to the concept. For case studies, first identify the clue in the question (labelled data, unlabelled data, reward/penalty, category or numerical value), then select the correct model.

1. Test Yourself — Multiple-Choice Questions (Textbook Pages 33–35)

Q1. In which type of machine learning is the data labelled with the desired output?
a) Supervised Learning
b) Unsupervised Learning
c) Reinforcement Learning
d) Deep Learning
Correct answer: a) Supervised Learning.

Explanation: Supervised Learning uses labelled data. Each training example contains input data along with its correct output or label. The model learns the relationship between the input and the known answer. For example, pictures labelled “cat” and “dog” can be used to train a model to recognise cats and dogs.

Q2. An email spam filter that learns to identify spam emails based on labelled examples is an application of:
a) Supervised Learning
b) Unsupervised Learning
c) Reinforcement Learning
d) Transfer Learning
Correct answer: a) Supervised Learning.

Explanation: During training, the spam filter is given emails labelled as “spam” or “not spam”. It studies the words, sender details and other features of these labelled emails. It then uses the learned patterns to classify new incoming emails.

Q3. 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
Correct answer: b) Unsupervised Learning.

Explanation: Unsupervised Learning works with unlabelled data and discovers patterns or similarities on its own. A clustering algorithm can group customers who have similar purchase behaviour. These groups can then be used to recommend products.

Q4. 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
Correct answer: c) Reinforcement Learning.

Explanation: Reinforcement Learning teaches a machine through repeated trial and error. The agent receives rewards for useful actions and penalties for incorrect actions. It gradually learns which actions help it achieve its goal.

Q5. Which of the following statements is NOT true about supervised learning?
a) Requires labelled 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.
Expected textbook answer: c) Can be less efficient for large datasets.

Explanation: Supervised Learning is defined by the use of labelled training data. It is commonly used for classification and regression, including image-recognition tasks. Option (c) is the intended “NOT true” choice in this exercise; the efficiency of a supervised-learning system depends on the algorithm, dataset, hardware and training requirements, so it is not a defining limitation of all supervised-learning models.

Q6. In an unsupervised learning scenario, the goal is to:
a) Predict a specific output based on labelled data.
b) Identify patterns and relationships within unlabelled data.
c) Train an AI agent through rewards and penalties.
d) Develop complex neural network architectures.
Correct answer: b) Identify patterns and relationships within unlabelled data.

Explanation: Unsupervised Learning does not require predefined labels. The model examines the data and discovers similarities, differences, groups or hidden relationships. For example, it can group customers according to their shopping habits without being told the groups in advance.

Q7. Clustering algorithms are commonly used in unsupervised learning for:
a) Spam filtering
b) Image classification
c) Stock price prediction
d) Grouping similar data points
Correct answer: d) Grouping similar data points.

Explanation: Clustering divides unlabelled data into groups based on similarities. Data points in the same cluster share similar characteristics. For example, a supermarket may group customers according to their purchasing behaviour.

Q8. Reinforcement learning is particularly useful for scenarios where:
a) Large amounts of labelled data are available.
b) The desired outcome is clear, but the path to achieve it is unknown.
c) The data is structured and easily categorized.
d) The task requires reasoning and logical deduction.
Correct answer: b) The desired outcome is clear, but the path to achieve it is unknown.

Explanation: In Reinforcement Learning, the agent knows the goal but may not know the best sequence of actions to reach it. It explores the environment, receives rewards or penalties and improves its decisions through experience. Learning to play a game or navigate a vehicle are examples.

Q9. 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
Correct answer: c) Reinforcement Learning.

Explanation: The AI agent tries different actions while playing the game. Successful actions receive rewards and unsuccessful actions may receive penalties. By repeating this process, the agent learns strategies that improve its chance of winning.

Q10. 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
Correct answer: a) The human brain.

Explanation: Artificial Neural Networks are loosely modelled on the way neurons in the human brain are connected and communicate. They use interconnected nodes arranged in layers to process information and learn patterns.

Q11. The process of adjusting the weights in a neural network to improve performance is called:
a) Activation
b) Learning
c) Optimization
d) Training
Correct answer: d) Training.

Explanation: During training, a neural network compares its predicted output with the expected output. The error is used to adjust the weights and biases so that the network can make better predictions in later attempts. Optimisation methods may be used during this training process.

Q12. A neural network with multiple layers of interconnected neurons is called a:
a) Single-layer network
b) Deep Neural Network
c) Linear network
d) Perceptron
Correct answer: b) Deep Neural Network.

Explanation: A Deep Neural Network contains multiple layers of interconnected nodes. These layers process information at different stages and help the network learn complex patterns from large datasets.

Q13. Neural networks are particularly well-suited for tasks involving:
a) Simple calculations and mathematical operations
b) Recognizing patterns in complex data like images and text
c) Performing logical deductions and reasoning tasks
d) Storing and retrieving large amounts of information
Correct answer: b) Recognizing patterns in complex data like images and text.

Explanation: Neural networks can learn complex relationships and automatically extract useful features from large amounts of data. They are widely used in image recognition, speech processing and text analysis.

Q14. Training a neural network often requires:
a) A small set of labelled data samples
b) A significant amount of data and computational resources
c) A specific set of programming instructions
d) A human expert to guide the learning process
Correct answer: b) A significant amount of data and computational resources.

Explanation: Neural networks, especially deep neural networks, often contain many parameters and need substantial data and computing power for training. The exact requirement depends on the size and complexity of the model and the task.

2. Assertion and Reasoning-Based Questions (Textbook Page 36)

Q1. Assertion: Unsupervised Learning is a type of learning without any guidance. Reason: Unsupervised learning models work on unlabelled 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.

Correct answer: (a) Both A and R are true and R is the correct explanation for A.

Explanation: Unsupervised Learning uses unlabelled data. The model is not given the correct output for each example. Instead, it independently searches for patterns, similarities and relationships in the data. This is why it is described as learning without direct guidance, and the Reason correctly explains the Assertion.

Q2. Assertion: Information processing in a neural network relies on weights and biases assigned to nodes. Reason: These weights and biases determine how strongly a node is influenced by its inputs and its overall contribution to the next layer.

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.

Correct answer: (a) Both A and R are true and R is the correct explanation for A.

Explanation: A neural network uses weights to control the importance of different inputs. A bias helps shift the value calculated by a node. Together, weights and biases influence the node's output and the information passed to the next layer. Therefore, the Reason correctly explains the Assertion.

3. Reflection Time — Descriptive Answers (Textbook Pages 36–38)

Q1. Give difference between rule-based and learning-based AI models.

AI models can be developed using two main approaches: Rule-Based Approach and Learning-Based Approach. The main difference is that a rule-based model follows instructions written by a developer, whereas a learning-based model learns patterns from data or feedback.

BasisRule-Based ModelLearning-Based Model
MeaningThe model follows predefined rules and instructions given by the developer.The model learns patterns or rules by analysing data or receiving feedback.
LearningIt does not learn automatically from new examples or mistakes.It can improve its behaviour through training and updated data.
FlexibilityIt is less flexible when situations or input data change.It is more adaptable to patterns and changes represented in the data.
DevelopmentThe developer manually defines the conditions and corresponding actions.The developer provides data and selects a learning method; the model learns relationships from the data.
ExampleA website chatbot that responds using a fixed set of questions and answers.An email spam filter trained on examples labelled as spam and not spam.

Example explained: A rule-based order chatbot may respond when it detects words such as “track order” and then ask for an order number. A learning-based spam filter studies many labelled emails and learns the patterns that distinguish spam from genuine messages.

Conclusion: Rule-based models are useful when rules are clear and fixed. Learning-based models are useful when patterns are complex or may change over time.
Q2. What is supervised, unsupervised and reinforcement learning? Explain with examples.

Supervised Learning, Unsupervised Learning and Reinforcement Learning are three major approaches of Machine Learning. They differ mainly in the way a machine receives information and learns to perform a task.

1. Supervised Learning: Supervised Learning is a type of machine learning in which a model is trained using labelled data. Each input example is provided with the correct output, called a label. The model studies the relationship between inputs and labels and uses it to predict the output for new data.

Example: Suppose we want to identify different currency coins using their weights. The training data contains coin weights with their currency names. For example, a coin weighing 4 grams may be labelled as a rupee coin in the given training example. Weight is the feature and currency is the label. After training, the model can predict the currency of a new coin from its weight.

2. Unsupervised Learning: Unsupervised Learning is a type of machine learning in which the model is trained using unlabelled data. The correct output is not provided. The model independently discovers patterns, similarities, differences and groups in the data.

Example: A supermarket has information about the products purchased by its customers, but the customers are not labelled as grocery shoppers or non-grocery shoppers. An unsupervised model can analyse purchase patterns and group customers with similar shopping habits. The supermarket can use these groups to send relevant offers.

3. Reinforcement Learning: Reinforcement Learning is a type of machine learning in which a machine learns through repeated trial and error. It receives rewards for correct or useful actions and penalties for incorrect actions. Its aim is to learn actions that maximise the total reward.

Example: An AI agent learning to play a game tries different moves. It receives a reward when it makes a successful move and a penalty when it makes a poor move. After many attempts, it learns which actions help it win the game.

Learning typeTraining informationMain purposeExample
SupervisedLabelled dataLearn input-output relationshipsSpam email detection using labelled emails
UnsupervisedUnlabelled dataDiscover hidden patterns and groupsGrouping customers by shopping habits
ReinforcementRewards and penaltiesLearn actions through trial and errorAI learning to play a game
Q3. What is clustering and how is it different from classification?

Clustering is an unsupervised learning technique used to divide data points into different groups, called clusters, on the basis of similarities. Data points in the same cluster have similar characteristics, while data points in different clusters have different characteristics. The groups are discovered by the model; they are not provided in advance as labels.

Example of clustering: A music application analyses songs using features such as tempo and intensity. It may group slow and soft songs into one cluster and fast and loud songs into another cluster. These groups can help the application recommend songs to listeners with similar preferences.

Difference between clustering and classification:

BasisClusteringClassification
Learning typeUnsupervised LearningSupervised Learning
DataUses unlabelled data.Uses labelled data for training.
Groups/classesGroups are discovered automatically from similarities in data.Predefined classes are already known.
PurposeFinds hidden patterns and groups similar data points.Assigns a new data point to one of the known classes.
ExampleGrouping customers according to shopping behaviour.Classifying an email as spam or not spam.

In simple words: Classification assigns data to already known categories, whereas clustering discovers categories or groups from the data itself.

Q4. Explain neural networks. Also give functions of three layers of neural networks.

A Neural Network is a model of Artificial Intelligence that is loosely inspired by the structure and working of the human brain. It consists of interconnected units called nodes or neurons, arranged in layers. These nodes process information and pass it from one layer to another.

The important advantage of a neural network is that it can automatically extract useful features from data without requiring the programmer to specify every feature. Neural networks are especially useful when the dataset is large or complex, such as images, audio and text.

A neural network generally consists of three types of layers:

1. Input Layer:

  • It is the first layer of the neural network.
  • Its main function is to receive or acquire input data and pass it to the next layer.
  • It does not perform the main processing of the data.
  • For example, in an image-recognition system, the input layer receives the image data or pixel values.

2. Hidden Layer:

  • It is present between the input layer and the output layer.
  • This is where most of the processing and computation takes place.
  • Each node performs calculations using weights and biases and passes the result through an activation function.
  • A neural network can contain one or more hidden layers, depending on the complexity of the problem.
  • During training, the network adjusts its weights to reduce the difference between the predicted output and the expected output.

3. Output Layer:

  • It is the final layer of the neural network.
  • It receives the processed information from the last hidden layer.
  • It provides the final result or prediction to the user.
  • For example, an image-recognition network may produce the output “Bird” after analysing an image.

Working of a neural network: First, the input layer receives the data. Next, the hidden layer or layers process the data using weights, biases and activation functions. During training, the network compares its prediction with the expected result and adjusts its weights to improve. Finally, the output layer produces the result.

Remember: Input Layer = receives data; Hidden Layer = processes data; Output Layer = gives the final result.
Q5. Differentiate between classification and regression model.

Classification and Regression are two types of supervised learning models. Both learn from labelled training data, but they produce different types of outputs.

BasisClassification ModelRegression Model
MeaningIt predicts a category or class for the given input.It predicts a continuous numerical value for the given input.
OutputDiscrete or categorical values.Continuous numerical values.
PurposeTo decide which class an item belongs to.To estimate or predict a quantity.
ExamplesSpam/not spam, hot/cold, eligible/not eligible.House price, temperature, salary, used-car price.
Type of question“Which category does this belong to?”“How much or how many?”

Example of classification: A bank uses a model to predict whether a customer is eligible or not eligible for a loan. The output is one of two categories, so it is a classification problem.

Example of regression: A real-estate agency predicts the selling price of a house using its size, location and number of bedrooms. Since the output is a numerical price, it is a regression problem.

Q6. What is neural network? Give the functioning of its three layers?

A Neural Network is an AI model inspired by the way neurons are connected in the human brain. It contains interconnected nodes arranged in layers. It learns from data by processing information and adjusting weights and biases to improve its output.

Functioning of its three layers:

  1. Input Layer: Receives the input data and passes it to the hidden layer. It acts as the entry point of information. For example, it receives the pixel values of an image.
  2. Hidden Layer: Performs calculations on the received data. Nodes use weights and biases, and the values pass through activation functions. There may be multiple hidden layers. During training, weights are adjusted according to the error so that the model improves its predictions.
  3. Output Layer: Receives the processed information from the last hidden layer and generates the final prediction or result. For example, it may identify an image as a cat, dog or bird.

Example: When a neural network is given an image of a dog, the input layer receives the image data, the hidden layers identify useful patterns such as edges and shapes, and the output layer predicts that the image contains a dog.

Thus, the three layers work together to receive information, process it and generate a meaningful output.

Note: Q4 and Q6 cover the same core concept in the textbook. Q6 is written as a separate, complete answer so students can prepare it independently.
Q7. Identify the type of learning (supervised, unsupervised, reinforcement learning) most likely used in the following case studies.

(a) Case Study 1 — Customer churn prediction using labelled examples.

Answer: Supervised Learning.

Reason: The dataset contains labelled examples of customers who churned and customers who did not churn. The model learns from these known labels and predicts whether a new customer is likely to leave the company.

(b) Case Study 2 — Grouping social media users by interests and behaviour without predefined categories.

Answer: Unsupervised Learning.

Reason: The dataset contains user interactions but no predefined categories. The model discovers similarities in users’ interests and behaviour and groups similar users into clusters. These groups can be used to recommend relevant content.

(c) Case Study 3 — An autonomous vehicle learns to navigate using rewards and penalties.

Answer: Reinforcement Learning.

Reason: The vehicle receives rewards for reaching its destination safely and penalties for traffic violations. It learns through trial and error which actions are safer and more effective.

(d) Case Study 4 — Finding patterns in patient data without predefined treatment labels.

Answer: Unsupervised Learning.

Reason: The dataset contains patient attributes but no predefined labels indicating treatment plans. The model can discover hidden patterns and similarities among patients and group them to support personalised treatment planning.

(e) Case Study 5 — Detecting unusual machinery sensor behaviour using examples of normal and anomalous behaviour.

Answer based on the wording: Supervised Learning.

Reason: The case explicitly says that the company has examples of both normal and anomalous behaviour. If these examples are labelled and used as training targets, the model learns to classify new sensor readings as normal or anomalous. This is supervised learning. (If the labels were absent and the model had to discover unusual readings by itself, it would instead be an unsupervised anomaly-detection task.)

Q8. Identify the type of model (classification, regression, clustering, association model) most likely used in the following case studies.

(a) Bank predicts whether a loan applicant will default or not default.

Answer: Classification Model.

Reason: The output is one of two predefined categories: “default” or “non-default”. A model that predicts a category is a classification model.

(b) Real-estate agency predicts the selling price of houses.

Answer: Regression Model.

Reason: The model predicts a numerical house price using features such as size, location and number of bedrooms. Price is a continuous numerical value, so regression is appropriate.

(c) Marketing company divides customers into groups based on purchasing behaviour.

Answer: Clustering Model.

Reason: The company wants to discover groups of customers with similar purchasing patterns. Clustering automatically forms these groups based on similarities in the data.

(d) Grocery store finds products commonly purchased together.

Answer: Association Model.

Reason: Association models discover relationships between items in transaction records. For example, customers who purchase bread may also frequently purchase butter. This relationship can be used for product recommendations and store planning.

Q9. A healthcare provider wants to improve patient care by predicting hospital stays. Identify the type of model for each task: (a) predict short or long stay, (b) predict number of days, (c) segment patients into similar groups, (d) identify patterns in treatments and outcomes.

(a) Predict whether a patient will have a short or long hospital stay.

Answer: Classification Model.

Reason: “Short stay” and “long stay” are two categories. The model must assign the patient to one of these predefined classes.

(b) Predict the number of days a patient will stay in the hospital.

Answer: Regression Model.

Reason: The output is a numerical value representing the expected number of days. Predicting a continuous numerical quantity is a regression task.

(c) Segment patients into groups with similar characteristics for personalised treatment plans.

Answer: Clustering Model.

Reason: The model groups patients based on similarities in their demographic details, medical history or other attributes. The groups are discovered from the data.

(d) Identify patterns in patient treatments and outcomes.

Answer: Association Model.

Reason: The model searches for relationships between treatments and outcomes in the patient records. It may discover that certain treatments are frequently associated with particular outcomes. These relationships can support further analysis; they do not by themselves prove that a treatment caused an outcome.

4. Q10 — Convert the Following Scenarios to Perceptron (Textbook Page 38)

A perceptron is a simple neural-network model that takes several inputs, assigns a weight to each input, adds a bias and produces an output by comparing the calculated value with a threshold. The textbook asks students to convert each decision-making situation into a perceptron. The questions do not provide fixed numerical weights or a threshold, so the following are clear model designs with reasonable illustrative values. Other sensible weight choices may also be acceptable if properly justified.

Q10 (a). A manager is deciding whether to approve a work-from-home request from an employee. Convert the scenario into a perceptron using the given factors.

Step 1: Identify the inputs. The four factors become the four input nodes:

InputFactorInput value
X1Does the employee perform well when working remotely?1 = Yes, 0 = No
X2Are there upcoming team meetings or collaborative projects?1 = Yes, 0 = No
X3Does the company policy support remote work?1 = Yes, 0 = No
X4Is it beneficial for both the employee and the company?1 = Yes, 0 = No

Step 2: Assign illustrative weights. The weights show the relative importance of each factor. For this example, company policy and the employee’s remote performance are given high importance.

InputWeightReason
W13Good remote performance is important.
W21Meetings may require in-person collaboration.
W34Company policy is a major condition.
W42Mutual benefit supports approval.

Step 3: Set bias and threshold. Let bias weight be 2 and threshold be 6 for this illustrative example.

Step 4: Write the perceptron calculation.

Net = (X1 × W1) + (X2 × W2) + (X3 × W3) + (X4 × W4) + Bias
Net = (3X1) + (1X2) + (4X3) + (2X4) + 2

Step 5: Define the output.

  • If Net is greater than or equal to 6, output Y = 1 → Approve work-from-home request.
  • If Net is less than 6, output Y = 0 → Do not approve / review the request further.

Example calculation: Suppose the employee performs well remotely (X1=1), there are no important in-person meetings (X2=0), company policy supports remote work (X3=1), and it benefits both sides (X4=1).

Net = (3×1) + (1×0) + (4×1) + (2×1) + 2
Net = 3 + 0 + 4 + 2 + 2 = 11

Since 11 is greater than the threshold 6, the perceptron produces Y=1. Therefore, the request is approved in this example.

Conclusion: The perceptron uses four decision factors as inputs, assigns importance through weights, adds a bias and compares the result with a threshold to produce an approval decision. The numerical weights are illustrative because the textbook does not prescribe fixed values.
Q10 (b). A homeowner is deciding whether to invest in solar panels. Convert the scenario into a perceptron using the given factors.

Step 1: Identify the inputs.

InputFactorInput value
X1Is there sufficient average sunlight in the area?1 = Yes, 0 = No
X2Are incentives or rebates available?1 = Yes, 0 = No
X3Does installing solar panels impact the value of the home positively?1 = Yes, 0 = No
X4Does solar energy lead to environmental benefits?1 = Yes, 0 = No

Step 2: Assign illustrative weights. Sufficient sunlight is given the highest importance because solar panels need sunlight to generate electricity. Environmental benefits and incentives are also considered.

InputWeightReason
W14Sunlight strongly affects energy generation.
W22Incentives reduce the installation cost.
W31Home value is a factor in the investment decision.
W43Environmental benefits support the decision.

Step 3: Set bias and threshold. Let bias weight be 1 and threshold be 6 for this illustrative example.

Step 4: Write the perceptron calculation.

Net = (X1 × W1) + (X2 × W2) + (X3 × W3) + (X4 × W4) + Bias
Net = (4X1) + (2X2) + (1X3) + (3X4) + 1

Step 5: Define the output.

  • If Net is greater than or equal to 6, output Y = 1 → Consider investing in solar panels.
  • If Net is less than 6, output Y = 0 → Do not invest yet / review the conditions.

Example calculation: Suppose the area receives sufficient sunlight (X1=1), incentives are available (X2=1), solar panels are expected to improve the home’s value (X3=1), and solar energy provides environmental benefits (X4=1).

Net = (4×1) + (2×1) + (1×1) + (3×1) + 1
Net = 4 + 2 + 1 + 3 + 1 = 11

Since 11 is greater than the threshold 6, the perceptron produces Y=1. Therefore, the model recommends considering investment in solar panels.

Conclusion: The four factors are represented as input nodes. Their weights show their relative importance. The perceptron adds the weighted inputs and bias, then compares the total with a threshold to produce a decision. The selected weights and threshold are examples; a real system would determine suitable values using data and testing.

5. Quick Revision — Important Concepts

ConceptRemember
Rule-Based ModelFollows predefined rules written by the developer.
Learning-Based ModelLearns patterns from data or feedback.
Supervised LearningUses labelled data; includes classification and regression.
Unsupervised LearningUses unlabelled data; includes clustering and association.
Reinforcement LearningLearns by trial and error using rewards and penalties.
ClassificationPredicts a category, such as spam/not spam.
RegressionPredicts a continuous numerical value, such as price or temperature.
ClusteringGroups similar unlabelled data points.
AssociationFinds relationships between items or variables.
Neural NetworkInterconnected nodes arranged in layers; inspired by the human brain.
Input LayerReceives data.
Hidden LayerProcesses data using weights, biases and activation functions.
Output LayerProduces the final result.
PerceptronUses weighted inputs and a bias to calculate an output against a threshold.

Textbook coverage: This solution set covers the exercise section on pages 33–38: 14 MCQs, 2 Assertion–Reason questions and 10 Reflection Time questions, including the five learning-type cases, model-identification cases, healthcare model selection and both perceptron scenarios. The Human Neural Network classroom activity on pages 30–33 is an activity rather than a written back-exercise question.

Class 10 Artificial Intelligence (417) · Unit 2: Advanced Concepts of Modeling in AI
Back to top ↑

IMPORTANT QUESTION

High-yield board questions, previous year questions (PYQs), and model answer keys.

Important Questions Being Compiled

Board blueprint and previous years' exam questions for this chapter will be live soon.