CHAPTER PDF
Complete curriculum textbook chapter document for reading and offline study.
NOTES
Complete conceptual breakdown, formulas, diagrams, and memory aids.
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.
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.
- Become familiar with supervised, unsupervised and reinforcement learning approaches.
- Understand neural networks.
- Understand the three learning approaches.
- 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)
Machine Learning (ML)
Deep Learning (DL)
Relationship between AI, ML and 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.
| Basis | AI | ML | DL |
|---|---|---|---|
| Meaning | Machines mimic human intelligence. | Machines improve by learning from data and experience. | Software learns complex patterns from very large amounts of data. |
| Scope | Broadest field. | Subset of AI. | Subset of ML. |
| How it works | May use programmed rules, search, ML or other techniques. | Learns patterns from examples and feedback. | Uses deep multi-layer neural-network learning. |
| Example | Rule-based FAQ chatbot. | Spam detection learned from examples. | Recognising objects in images using a neural network. |
Machine Learning: basic working
Past / historical data
Learns patterns
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
Pixels / data
Multiple connected layers
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.
Common Terminologies Used with Data
What is Data?
What are Features?
What are Labels?
| Fruit | Colour (feature) | Price (feature) | Fruit name (label in a colour-based prediction task) |
|---|---|---|---|
| Apple | Red | $1.8 | Apple |
| Orange | Orange | $2 | Orange |
| Banana | Yellow | $1 | Banana |
| Grape | Purple | $3 | Grape |
Labelled and Unlabelled Data
Data to which a tag or label is attached, such as a name, type or number. Example: pictures labelled “cat” or “dog”.
Raw data to which no tag is attached. Example: a collection of animal pictures with no category names.
Training Dataset
Testing Dataset
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
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
Rule-Based Approach
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.
- Data: A predefined set of questions and corresponding answers.
- Rules: A decision tree or sequence of conditions determines how a query is handled.
- Interaction: The user's message is checked against the rules. The chatbot gives a prepared response or asks for more information.
- If the message contains “track order”, “shipment status” or “delivery”, open the order-tracking process.
- Ask the customer to enter an order number.
- If the order number is valid, retrieve tracking details from the database and display them.
- If the number is invalid, show an error and ask the customer to enter it again.
- 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
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
- Provide a large dataset of emails labelled as spam or legitimate.
- The model analyses words, sender information and attachments.
- Machine-learning algorithms identify patterns that distinguish spam from legitimate email.
- After training, the filter classifies new incoming emails as spam or not spam.
- As it encounters additional examples, the system can be updated and improved.
Three categories of Machine Learning
Supervised Learning
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.
| Coin | Weight |
|---|---|
| 1 Euro | 5 grams |
| 1 Dirham | 7 grams |
| 1 Dollar | 3 grams |
| 1 Rupee | 4 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
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
Case 2 – OTT recommendations based on watch history
Case 3 – Bank data used to flag suspicious transactions when suspicious patterns are not predefined
Supervised vs Unsupervised Learning
| Supervised Learning | Unsupervised 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
Textbook example: Apple predicted as a cherry
- An image of an apple is given to the machine.
- The machine first predicts “cherry”.
- The trainer gives negative feedback because the prediction is incorrect.
- The machine learns that the image is not a cherry.
- The apple image is presented again; the machine predicts “apple”.
- Positive feedback confirms the correct prediction and reinforces the successful action.
What makes reinforcement learning different?
- Supervised and unsupervised learning usually require a reasonable understanding of the available data and problem.
- Some problems have large and complex possible states.
- The system may face unforeseen situations for which there is insufficient specific data.
- The environment may change, so the system needs to adapt.
- 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
An agent can learn suitable steering and movement actions through feedback while attempting to park.
A simulated or physical agent can learn to balance and walk by trying actions and receiving feedback.
Summary and Subcategories of Machine Learning Models
| Learning type | Main purpose |
|---|---|
| Supervised | Determine relationships through training on labelled data. |
| Unsupervised | Discover new patterns from data. |
| Reinforcement | Learn by a reward mechanism and improve actions. |
Supervised learning: Classification and Regression
1. Classification Model
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
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
Case 2 – Predict weather over the next 24 hours
| Classification | Regression |
|---|---|
| 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
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
| Classification | Clustering |
|---|---|
| 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.
- Group slow-tempo, soft-intensity songs into one cluster.
- Group fast-tempo, high-intensity songs into another cluster.
- 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
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.
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:
Artificial Neural Networks (ANN)
Convolutional Neural Networks (CNN)
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?
Structure of a Neural Network
Receives data
Computations
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?
- Input data enters the input layer.
- Hidden-layer nodes calculate using weights and biases.
- The calculated value passes through an activation function.
- The network produces an output.
- The predicted output is compared with the desired output to find an error.
- Weights are adjusted based on the error.
- 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
| Input | Question / factor | Assigned weight in textbook example |
|---|---|---|
| X1 | Do I have a jacket? | W1 = 1.5 |
| X2 | Do I have an umbrella? | W2 = 1.0 |
| X3 | Is it sunny now? | W3 = 3.0 |
| X4 | What is the weather forecast for later? | W4 = 2.5 |
| Bias | Personal caution / bias term | WB = 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
Input values
Weighted sum
Compare
Go / Do not go
Perceptron formula used for the textbook calculation
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.
| Input | Value | Weight | Multiplication |
|---|---|---|---|
| X1 – Jacket | 1 | 1.5 | 1 × 1.5 = 1.5 |
| X2 – Umbrella | 0 | 1.0 | 0 × 1.0 = 0 |
| X3 – Sunny now | 1 | 3.0 | 1 × 3.0 = 3.0 |
| X4 – Forecast | 0 | 2.5 | 0 × 2.5 = 0 |
| Bias | 1 | 4.0 | 1 × 4.0 = 4.0 |
= 1.5 + 0 + 3.0 + 0 − 4.0
= 4.5 − 4.0
= 0.5
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.
| Input | Value | Weight | Multiplication |
|---|---|---|---|
| X1 – Jacket | 0 | 1.5 | 0 × 1.5 = 0 |
| X2 – Umbrella | 1 | 1.0 | 1 × 1.0 = 1.0 |
| X3 – Sunny now | 0 | 3.0 | 0 × 3.0 = 0 |
| X4 – Forecast | 1 | 2.5 | 1 × 2.5 = 2.5 |
| Bias | 1 | 4.0 | 1 × 4.0 = 4.0 |
= 0 + 1.0 + 0 + 2.5 − 4.0
= 3.5 − 4.0
= −0.5
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.
| Material | Quantity |
|---|---|
| Images (kept with facilitator) | 2 |
| Post-it notes | 80 |
| Sketch pens | 40 |
Game structure
| Layer | Number of students | Number of chits written by each node |
|---|---|---|
| Input Layer | 7 | 6 |
| Hidden Layer 1 | 6 | 4 |
| Hidden Layer 2 | 6 | 2 |
| Output Layer | 1 | — |
| Total | 20 | — |
Ground rules
- No one may talk or discuss until the game ends; the activity should be played honestly.
- Each layer should sit at a distance from the other layers.
- Only the input layer may see the image.
- The game is silent: write a word on a chit and pass it without speaking.
- Work quickly; do not spend too much time writing and passing chits.
- Input-layer nodes cannot discuss the image with one another. Each uses their own judgement.
- Only one word may be written on each chit; no sentences or multiple words.
- After completing their task, members of a layer sit aside without disturbing others.
Game instructions by layer
- 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.
- 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.
- Hidden Layer 2: Each of six students receives chits from the previous layer. Each writes two words and passes them to the output layer.
- 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.
Textbook Test Yourself – 14 MCQs with Answers
1. In which type of machine learning is the data labelled with the desired output?
- Supervised Learning ✓
- Unsupervised Learning
- Reinforcement Learning
- Deep 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:
- Supervised Learning ✓
- Unsupervised Learning
- Reinforcement Learning
- Transfer 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:
- Supervised Learning
- Unsupervised Learning ✓
- Reinforcement Learning
- Neural Networks
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:
- Supervised Learning
- Unsupervised Learning
- Reinforcement Learning ✓
- Evolutionary Learning
The agent learns actions through rewards and penalties.
5. Which statement is NOT true about supervised learning?
- Requires labelled data for training
- Used for classification and regression tasks
- Can be less efficient for large datasets ✓
- Often used in image recognition applications
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:
- Predict a specific output based on labelled data
- Identify patterns and relationships within unlabelled data ✓
- Train an AI agent through rewards and penalties
- Develop complex neural-network architectures
Unsupervised learning discovers patterns in unlabelled data.
7. Clustering algorithms are commonly used in unsupervised learning for:
- Spam filtering
- Image classification
- Stock price prediction
- Grouping similar data points ✓
Clustering places similar data points into groups.
8. Reinforcement learning is particularly useful for scenarios where:
- Large amounts of labelled data are available
- The desired outcome is clear, but the path to achieve it is unknown ✓
- The data is structured and easily categorised
- The task requires reasoning and logical deduction
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:
- Supervised Learning
- Unsupervised Learning
- Reinforcement Learning ✓
- Natural Language Processing
Trial and error with rewards is reinforcement learning.
10. Artificial neural networks are inspired by the structure and function of:
- The human brain ✓
- Quantum computers
- Complex mathematical models
- High-speed processors
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:
- Activation
- Learning
- Optimization ✓
- Training
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:
- Single-layer network
- Deep Neural Network ✓
- Linear network
- Perceptron
A network with multiple layers is a deep neural network.
13. Neural networks are particularly well-suited for tasks involving:
- Simple calculations and mathematical operations
- Recognising patterns in complex data like images and text ✓
- Performing logical deductions and reasoning tasks
- Storing and retrieving large amounts of information
Neural networks automatically learn complex features and patterns, including visual and textual patterns.
14. Training a neural network often requires:
- A small set of labelled data samples
- A significant amount of data and computational resources ✓
- A specific set of programming instructions
- A human expert to guide the learning process
Neural-network training often requires substantial data and computational resources.
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
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
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.
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(a). Customer churn prediction using past behaviour, demographics and labelled examples of customers who churned or did not churn.
Q7(b). Group social-media users by interests and behaviour when no predefined categories exist.
Q7(c). An autonomous vehicle receives rewards for reaching a destination safely and penalties for traffic violations.
Q7(d). Find patterns in patient attributes when no treatment-plan labels are supplied.
Q7(e). Detect machinery anomalies when the dataset contains examples of normal and anomalous behaviour.
Q8(a). Predict whether a bank loan applicant will default or not default.
Q8(b). Predict house selling price from size, location, bedrooms and bathrooms.
Q8(c). Segment customers into groups based on purchasing behaviour.
Q8(d). Identify products commonly purchased together from transaction records.
Q9. Identify model types for hospital-stay tasks (a–d).
Q10. Convert the work-from-home decision into a perceptron.
Q10. Convert the solar-panel investment decision into a perceptron.
Additional CBSE Board-Oriented Practice with Solutions
Very Short Answer Questions (1 mark)
Define a feature.
What is a label?
Name the three types of machine learning.
Which learning approach uses rewards and penalties?
What is the output of a regression model?
Name the two deep-learning model types listed in the chapter.
What is the role of the input layer?
What is an association rule?
Short Answer Questions (2–3 marks)
Explain training data and testing data.
Explain any two applications of deep learning from the chapter.
Why can a rule-based chatbot fail when a user asks an unexpected question?
Differentiate between clustering and association.
Explain the role of weights and biases in a neural network.
Long Answer Questions (4–5 marks)
Explain the three machine-learning approaches with examples.
Explain the difference between classification and regression with examples.
Describe the architecture and working of a neural network.
Explain the perceptron park-decision example and calculate both outcomes.
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.
A retailer has transaction records but no product-group labels. It wants to discover products often purchased together.
A robot learns to balance by trying movements. Successful balance earns a reward and falling receives a penalty. Identify the approach.
A housing website wants to estimate a property's sale price using area, location and bedroom count. Identify the model.
An image dataset contains thousands of unlabelled animal pictures. The system groups visually similar pictures. Identify the model.
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 problem | Choose | Reason |
|---|---|---|
| Is the target a category? | Classification | Output is discrete. |
| Is the target a number on a continuous scale? | Regression | Output is continuous. |
| Do we need to discover groups? | Clustering | Finds similarity-based groups without predefined labels. |
| Do we need to find items that occur together? | Association | Finds relationships in transaction or other data. |
| Does an agent learn from rewards and penalties? | Reinforcement Learning | Uses feedback from actions. |
Important diagrams to practise drawing
- Nested relationship of AI, ML and DL (page 2).
- Input → ML Model → Output (page 3).
- Input → ANN → Output (page 5).
- AI model classification tree: rule-based and learning-based (pages 7 and 10).
- Supervised, unsupervised and reinforcement learning (pages 10 and 16).
- Classification and regression branches (page 16).
- Clustering and association branches (pages 19–21).
- ANN layers: input, hidden and output (pages 24–25).
- Perceptron with weighted inputs and bias (pages 26–29).
- 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.
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 pages | Content covered |
|---|---|
| 1 | Unit title, lesson summary, objectives, outcomes, prerequisites and key concepts. |
| 2–5 | AI, ML, DL; their relationship; ML and DL block representations; object classification, anomaly detection, object identification and digit recognition. |
| 6–7 | Data, features, labels, labelled/unlabelled data, training/testing datasets; introduction to modelling and AI model classification. |
| 8–9 | Rule-based chatbot example and limitations; learning-based approach; stray-dog image example and spam filter. |
| 10–11 | Supervised learning, teacher analogy, coin-weight example and labelled animal-image example. |
| 12–15 | Unsupervised learning, swimming analogy, supermarket/customer clustering, cats/dogs grouping, three supervised/unsupervised identification cases, reinforcement learning, apple/cherry feedback example and applications. |
| 16–19 | ML summary; classification and regression definitions, examples and textbook identification questions; unsupervised subcategories. |
| 20–23 | Clustering, classification comparison, Jim's music example, association rule and bread/butter example, ML knowledge check, ANN and CNN. |
| 24–29 | Neural-network definition and architecture; functions of layers; decision-making example; perceptron, weights, bias, inputs, calculations and two outcomes. |
| 30–33 | Human Neural Network activity: preparation, material list, game structure, ground rules and layer-by-layer instructions; Test Yourself questions 1–4. |
| 34–35 | Test Yourself questions 5–14. |
| 36–38 | Assertion–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.
TEXTBOOK SOLUTION
Step-by-step solved textbook exercises, derivations, and solutions.
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.
1. Test Yourself — Multiple-Choice Questions (Textbook Pages 33–35)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
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.
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.
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.
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)
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.
| Basis | Rule-Based Model | Learning-Based Model |
|---|---|---|
| Meaning | The model follows predefined rules and instructions given by the developer. | The model learns patterns or rules by analysing data or receiving feedback. |
| Learning | It does not learn automatically from new examples or mistakes. | It can improve its behaviour through training and updated data. |
| Flexibility | It is less flexible when situations or input data change. | It is more adaptable to patterns and changes represented in the data. |
| Development | The developer manually defines the conditions and corresponding actions. | The developer provides data and selects a learning method; the model learns relationships from the data. |
| Example | A 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.
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 type | Training information | Main purpose | Example |
|---|---|---|---|
| Supervised | Labelled data | Learn input-output relationships | Spam email detection using labelled emails |
| Unsupervised | Unlabelled data | Discover hidden patterns and groups | Grouping customers by shopping habits |
| Reinforcement | Rewards and penalties | Learn actions through trial and error | AI learning to play a game |
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:
| Basis | Clustering | Classification |
|---|---|---|
| Learning type | Unsupervised Learning | Supervised Learning |
| Data | Uses unlabelled data. | Uses labelled data for training. |
| Groups/classes | Groups are discovered automatically from similarities in data. | Predefined classes are already known. |
| Purpose | Finds hidden patterns and groups similar data points. | Assigns a new data point to one of the known classes. |
| Example | Grouping 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.
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.
Classification and Regression are two types of supervised learning models. Both learn from labelled training data, but they produce different types of outputs.
| Basis | Classification Model | Regression Model |
|---|---|---|
| Meaning | It predicts a category or class for the given input. | It predicts a continuous numerical value for the given input. |
| Output | Discrete or categorical values. | Continuous numerical values. |
| Purpose | To decide which class an item belongs to. | To estimate or predict a quantity. |
| Examples | Spam/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.
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:
- 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.
- 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.
- 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.
(a) Case Study 1 — Customer churn prediction using labelled examples.
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.
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.
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.
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.
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.)
(a) Bank predicts whether a loan applicant will default or not default.
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.
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.
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.
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.
(a) Predict whether a patient will have a short or long hospital stay.
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.
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.
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.
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.
Step 1: Identify the inputs. The four factors become the four input nodes:
| Input | Factor | Input value |
|---|---|---|
| X1 | Does the employee perform well when working remotely? | 1 = Yes, 0 = No |
| X2 | Are there upcoming team meetings or collaborative projects? | 1 = Yes, 0 = No |
| X3 | Does the company policy support remote work? | 1 = Yes, 0 = No |
| X4 | Is 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.
| Input | Weight | Reason |
|---|---|---|
| W1 | 3 | Good remote performance is important. |
| W2 | 1 | Meetings may require in-person collaboration. |
| W3 | 4 | Company policy is a major condition. |
| W4 | 2 | Mutual 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.
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 + 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.
Step 1: Identify the inputs.
| Input | Factor | Input value |
|---|---|---|
| X1 | Is there sufficient average sunlight in the area? | 1 = Yes, 0 = No |
| X2 | Are incentives or rebates available? | 1 = Yes, 0 = No |
| X3 | Does installing solar panels impact the value of the home positively? | 1 = Yes, 0 = No |
| X4 | Does 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.
| Input | Weight | Reason |
|---|---|---|
| W1 | 4 | Sunlight strongly affects energy generation. |
| W2 | 2 | Incentives reduce the installation cost. |
| W3 | 1 | Home value is a factor in the investment decision. |
| W4 | 3 | Environmental 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.
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 + 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.
5. Quick Revision — Important Concepts
| Concept | Remember |
|---|---|
| Rule-Based Model | Follows predefined rules written by the developer. |
| Learning-Based Model | Learns patterns from data or feedback. |
| Supervised Learning | Uses labelled data; includes classification and regression. |
| Unsupervised Learning | Uses unlabelled data; includes clustering and association. |
| Reinforcement Learning | Learns by trial and error using rewards and penalties. |
| Classification | Predicts a category, such as spam/not spam. |
| Regression | Predicts a continuous numerical value, such as price or temperature. |
| Clustering | Groups similar unlabelled data points. |
| Association | Finds relationships between items or variables. |
| Neural Network | Interconnected nodes arranged in layers; inspired by the human brain. |
| Input Layer | Receives data. |
| Hidden Layer | Processes data using weights, biases and activation functions. |
| Output Layer | Produces the final result. |
| Perceptron | Uses 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.
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.