๐Ÿ  Home Menu
CBSEMOCK AI Study Portal โ€” CBSE Class 9โ€“10 Code 417
โ† CBSEMOCK Home
๐ŸŽ“
Student
Level 1 โ€” Curious Learner
0 / 100 XP
0
day
streak ๐Ÿ”ฅ
CONTINUE WHERE YOU LEFT OFF
Start Learning โ†’
Pick any chapter or topic
0
Chapters Visited
out of 15 total
0
Total XP Earned
keep going!
0
Exams Taken
Best: โ€”
0
Badges Earned
collect them all!

๐Ÿ… Your Badges

๐Ÿ“Š Topic Progress

๐Ÿ“ AI Board Exam Simulator

Practice in CBSE exam conditions. Choose your exam type and start โ€” timer begins immediately. Questions drawn from all 5 chapters and advanced topics.

CBSE Pattern
Full Mock Test
50 marks ยท 2 hours ยท All chapters
Quick Practice
25 marks ยท 45 min ยท Mixed topics
Ch 1 & 2 Focus
Intro to AI + Project Cycle
Advanced Topics
Neural nets, GenAI, Ethics, Maths

๐Ÿค– AI & ML Study Portal

CBSE Class 9โ€“10 ยท Artificial Intelligence ยท Code 417 ยท CBSEMOCK

๐Ÿ“˜ 5 Core Chapters ๐ŸŽฏ 10 Advanced Topics ๐Ÿ“ Practice Papers ๐Ÿ–ผ๏ธ Visual Learning ๐Ÿ† Exam Ready
๐Ÿ“˜ Core Chapters
๐Ÿค–

Chapter 1: Introduction to AI

History, definitions, types of AI, Turing Test, AI vs Human, applications.

๐Ÿ”

Chapter 2: AI Project Cycle

Project lifecycle, 4W Canvas, problem scoping, Big Data 5 V's, data acquisition.

๐Ÿ—ƒ๏ธ

Chapter 3: Data Exploration

EDA, preprocessing, cleaning, normalization, feature engineering, visualisation.

๐Ÿง 

Chapter 4: Modelling

ML algorithms, decision trees, KNN, linear regression, model training & testing.

๐Ÿ“Š

Chapter 5: Evaluation

Confusion matrix, accuracy, precision, recall, F1 score, model improvement.

๐Ÿš€ Advanced Topics
โš–๏ธ

T1: AI Ethics & Bias

Fairness, accountability, deepfakes, bias types, global frameworks.

๐Ÿ“Š

T2: Data Literacy

Data types, quality, Big Data, labelling, misleading statistics.

๐Ÿ“

T3: Maths for AI

Probability, Bayes theorem, statistics, matrices, correlation.

๐ŸŽจ

T4: Generative AI

LLMs, GANs, diffusion models, hallucinations, applications.

๐Ÿงฌ

T5: Neural Networks

Perceptrons, activation functions, CNNs, backpropagation.

๐Ÿ’ฌ

T6: NLP

Tokenisation, TF-IDF, Word2Vec, Transformers, sentiment analysis.

๐Ÿ“ˆ

T7: Model Evaluation

Confusion matrix, precision vs recall, F1, K-fold cross-validation.

๐Ÿ‘๏ธ

T8: Computer Vision

Image classification, CNNs, convolution, object detection, filters.

๐Ÿ”—

T9: Deep Learning

CNN architectures, ResNet, transfer learning, RNN, LSTM, Transformers.

๐Ÿ

T10: Data Science

Python, Pandas, NumPy, Matplotlib, data analysis workflow.

Chapter 1: Introduction to Artificial Intelligence

1.1 What is Artificial Intelligence?

Artificial Intelligence (AI) is the simulation of human intelligence processes by machines, especially computer systems. It enables machines to learn from experience, adjust to new inputs, and perform human-like tasks.

๐Ÿง  Human Brain โ€ข Learns from experience โ€ข Understands emotions & context โ€ข Creative thinking โ€ข Slow at arithmetic โ€ข Tires easily โ€ข Biological, uses energy โŸบ inspired ๐Ÿค– AI Machine โ€ข Learns from data โ€ข Pattern recognition โ€ข Logical & analytical โ€ข Super-fast arithmetic โ€ข Works 24/7 non-stop โ€ข Digital, uses electricity

Fig 1.1: Human Brain vs AI Machine โ€” similarities and differences

๐Ÿ’ก Key DefinitionAI is the science of making machines intelligent enough to perform tasks that would normally require human intelligence โ€” like understanding speech, recognising images, making decisions, and translating languages.

1.2 History and Evolution of AI

1950 Turing Test 1956 AI coined 1997 Deep Blue 2011 IBM Watson 2016 AlphaGo 2022+ ChatGPT/LLMs Time โ†’

Fig 1.2: Timeline of AI milestones

1.3 Types of AI

ANI โ€” Artificial Narrow Intelligence e.g. Siri, Chess engine, Face ID, Spam filter AGI โ€” Artificial General Intelligence Human-level. Thinks, reasons like us. (Not yet achieved) ASI Super-intelligence (Theoretical) โ–ถ TODAY โ–ถ FUTURE โ–ถ THEORETICAL

Fig 1.3: Three levels of AI โ€” from Narrow (today) to Super-intelligence (theoretical future)

1.4 Turing Test โ€” Can Machines Think?

๐Ÿ‘ค Interrogator Asks questions via text interface ๐Ÿง‘ Human Answers naturally ๐Ÿค– Machine (AI) Tries to mimic human Screen Wall "If the interrogator cannot tell which is the machine, it passes the Turing Test"

Fig 1.4: The Turing Test โ€” evaluating machine intelligence by human indistinguishability

๐Ÿ’ก Remember โ€” Turing TestProposed by Alan Turing (1950) in his paper "Computing Machinery and Intelligence". A machine passes if a human interrogator cannot tell whether they are chatting with a human or a machine. No machine has fully passed the original test, but chatbots like ChatGPT come very close.

1.5 Domains of AI

๐Ÿ”ค

Natural Language Processing

Understanding & generating human language. e.g. Google Translate, chatbots

๐Ÿ‘๏ธ

Computer Vision

Understanding images & video. e.g. Face recognition, medical imaging

๐ŸŽฎ

Reinforcement Learning

Learning via reward & punishment. e.g. AlphaGo, self-driving cars

๐Ÿ”Š

Speech Recognition

Converting spoken words to text. e.g. Siri, Alexa, Google Assistant

๐Ÿค–

Robotics

Physical machines with AI. e.g. Factory bots, surgical robots

๐Ÿ’ก

Expert Systems

Rule-based AI for expert decisions. e.g. Medical diagnosis, tax software

1.6 AI vs Human Intelligence

Feature๐Ÿง‘ Human Intelligence๐Ÿค– Artificial Intelligence
LearningFrom experience & educationFrom data & algorithms
SpeedLimited by biologyMillions of ops/second
CreativityTrue creativity & emotionsPattern-based imitation
FatigueGets tiredNo fatigue, 24/7
Common SenseNatural common senseLimited, domain-specific
AdaptabilityAdapts quickly to new tasksLimited to trained domain
Energy~20 watts (brain)Kilowatts (data centres)

1.7 Applications of AI in Daily Life

AI in Daily Life ๐Ÿฅ Healthcare Medical imaging, diagnosis ๐Ÿ“š Education Smart tutors, assessment ๐Ÿ’ฐ Finance Fraud detection, trading ๐Ÿš— Transport Self-driving, navigation ๐ŸŽฌ Entertainment Netflix reco, deepfakes ๐Ÿ” Security Face ID, surveillance

Fig 1.5: AI application areas in everyday life

๐ŸŽฏ Classroom ActivityMake a list of every app on your smartphone. Identify which ones use AI and in what way. Hint: Camera (face detection), Music apps (recommendations), Maps (route prediction).

1.8 Howard Gardner's 9 Types of Intelligence

Psychologist Howard Gardner proposed that human intelligence is not a single ability but a collection of distinct intelligences. AI systems are designed to replicate specific types of these intelligences โ€” and currently, no AI replicates all nine.

Howard Gardner's 9 Types of Intelligence โ€” and AI Equivalents ๐Ÿ“– Linguistic Word skills โ€” reading, writing, storytelling, language ๐Ÿค– AI: ChatGPT, Google Translate ๐Ÿ”ข Logical-Mathematical Numbers, logic, patterns, problem solving, reasoning ๐Ÿค– AI: AlphaGo, calculators, ML ๐Ÿ—บ๏ธ Spatial Visualising space, maps, architecture, design ๐Ÿค– AI: Google Maps, DALL-E ๐ŸŽต Musical Rhythm, melody, musical patterns, composing ๐Ÿค– AI: Spotify AI, Suno, MuseNet ๐Ÿƒ Bodily-Kinesthetic Physical movement, body coordination, sport, dance ๐Ÿค– AI: Surgical robots, Boston Dynamics ๐Ÿค Interpersonal Understanding others' feelings, social skills ๐Ÿค– AI: Emotion AI, social chatbots ๐Ÿง˜ Intrapersonal Self-awareness, emotions, inner feelings, motivation ๐Ÿค– AI: Very limited โ€” hard to replicate ๐ŸŒฟ Naturalist Recognising nature, plants, animals, environment ๐Ÿค– AI: Plant ID apps, wildlife CV ๐Ÿ”ญ Existential Deep philosophical questions, meaning of life, existence ๐Ÿค– AI: None โ€” uniquely human ๐Ÿ’ก KEY INSIGHT Current AI excels at Linguistic, Logical, Spatial, and Musical intelligences. Intrapersonal and Existential intelligences remain uniquely human โ€” AI cannot truly feel or philosophize. This is why AGI (human-level AI across ALL intelligences) remains an unsolved challenge.

Fig 1.6: Howard Gardner's 9 Types of Intelligence and their AI equivalents

1.9 Interactive: Match AI Applications to Their Domain

Test your knowledge! Click each application card and match it to the correct AI domain. Each card reveals its domain when clicked.

๐Ÿ—บ๏ธ
Google Maps
Click to see domain โ†’
๐Ÿงญ SPATIAL AI
Uses GPS + ML to predict traffic, find shortest routes, and estimate arrival times
โ–ถ๏ธ
YouTube
Click to see domain โ†’
๐ŸŽฌ RECOMMENDATION AI
Analyses watch history, likes, and viewing patterns to suggest next videos
๐Ÿ”’
Face Unlock
Click to see domain โ†’
๐Ÿ‘๏ธ COMPUTER VISION
Maps 30,000+ facial points to create a mathematical face signature unique to you
๐ŸŽต
Spotify
Click to see domain โ†’
๐ŸŽถ MUSICAL AI + NLP
Analyses audio features (tempo, key, energy) and user listening patterns for playlists
๐Ÿ’ฌ
Siri / Alexa
Click to see domain โ†’
๐Ÿ”ค NLP + SPEECH AI
Converts speech to text, understands intent, generates spoken replies in real time
๐Ÿฅ
Medical Scan AI
Click to see domain โ†’
๐Ÿ‘๏ธ COMPUTER VISION
Detects tumours, fractures, and diseases in X-rays/MRIs with higher accuracy than humans

1.10 AI Future Opportunities โ€” Careers & Possibilities

AI is not replacing humans โ€” it is creating entirely new professions that did not exist before. Students who understand AI today will lead the workforce of tomorrow.

AI Career Opportunities โ€” The Future Belongs to You ๐Ÿง  AI/ML Engineer Build intelligent systems โ‚น12โ€“50 LPA ๐Ÿ“Š Data Scientist Analyse big data patterns โ‚น10โ€“40 LPA ๐Ÿค– Robotics Engineer Design AI-powered robots โ‚น8โ€“35 LPA ๐Ÿ” AI Security Expert Protect AI systems โ‚น15โ€“60 LPA ๐Ÿฅ Healthcare AI Dev AI for diagnostics & drugs โ‚น10โ€“45 LPA ๐ŸŽจ AI Prompt Engineer Design AI instructions โ‚น8โ€“30 LPA โš–๏ธ AI Ethics Officer Ensure fair AI systems โ‚น12โ€“40 LPA ๐Ÿš— Autonomous Systems Self-driving, drones โ‚น15โ€“55 LPA ๐ŸŒ Sectors Being Transformed by AI Agriculture โ€ข Defence โ€ข Space โ€ข Finance โ€ข Education โ€ข Law โ€ข Entertainment โ€ข Manufacturing โ€ข Climate ๐Ÿ’ก India's AI Opportunity India needs 1 million AI professionals by 2026 โ€” and 150 million AI-aware workers by 2030 (NASSCOM)

Fig 1.7: AI career opportunities and future sectors โ€” where your learning leads

๐Ÿ’ก Key Points to Remember โ€ข Gardner's 9 intelligences: Linguistic, Logical, Spatial, Musical, Bodily-Kinesthetic, Interpersonal, Intrapersonal, Naturalist, Existential
โ€ข AI currently replicates Linguistic, Logical, and Spatial intelligences best
โ€ข Intrapersonal and Existential intelligences remain uniquely human
โ€ข AI = machines simulating human intelligence
โ€ข Turing Test (1950) = benchmark for machine intelligence
โ€ข ANI (Narrow) โ†’ AGI (General) โ†’ ASI (Super) โ€” current AI is ANI
โ€ข AI does NOT have emotions, consciousness, or true creativity
โ€ข AI is creating new careers, not just replacing old ones
Advertisement

CBSE Practice Paper โ€” Chapter 1: Introduction to AI

Class: 9โ€“10 | Subject: Artificial Intelligence (Code 417) | Max Marks: 40

Time: 1.5 Hours | All questions are compulsory

Section A โ€” Multiple Choice Questions (1 mark each ร— 10 = 10 marks)

1. The term "Artificial Intelligence" was coined by: 1

  • a) Alan Turing
  • b) John McCarthy โœ“
  • c) Marvin Minsky
  • d) Claude Shannon

2. The Turing Test was proposed in the year: 1

  • a) 1943
  • b) 1950 โœ“
  • c) 1956
  • d) 1969

3. Which type of AI exists today? 1

  • a) ASI
  • b) AGI
  • c) ANI โœ“
  • d) All of these

4. Which of the following is NOT an AI application? 1

  • a) Google Maps
  • b) Simple calculator โœ“
  • c) Netflix recommendations
  • d) Face recognition

5. Deep Blue (1997) was famous for: 1

  • a) Playing chess against Garry Kasparov โœ“
  • b) Answering quiz questions
  • c) Generating images
  • d) Driving a car

6. AGI stands for: 1

  • a) Advanced Graphical Intelligence
  • b) Artificial General Intelligence โœ“
  • c) Automated Graph Interface
  • d) None of these

7. In the Turing Test, the interrogator communicates via: 1

  • a) Voice call
  • b) Video call
  • c) Text interface โœ“
  • d) Physical meeting

8. Which domain of AI deals with understanding images? 1

  • a) NLP
  • b) Computer Vision โœ“
  • c) Expert Systems
  • d) Robotics

9. Which AI assistant uses voice recognition? 1

  • a) Deep Blue
  • b) Excel
  • c) Siri โœ“
  • d) Paint

10. Reinforcement Learning is best described as: 1

  • a) Learning from labelled data
  • b) Learning by reward and punishment โœ“
  • c) Learning without any data
  • d) None of these

Section B โ€” Short Answer Questions (2 marks each ร— 5 = 10 marks)

11. Define Artificial Intelligence and give two examples from daily life. 2

12. What is the Turing Test? Who proposed it and when? 2

13. Differentiate between ANI and AGI with one example each. 2

14. List any four domains of AI with one application for each. 2

15. How does AI differ from traditional computer programs? 2

Section C โ€” Long Answer Questions (5 marks each ร— 2 = 10 marks)

16. Explain the three types of AI (ANI, AGI, ASI) with examples. Why is only ANI achieved today? 5

17. Compare human intelligence and artificial intelligence on any five parameters. Which do you think is better and why? 5

Section D โ€” HOTS & Case Study (10 marks)

18. (HOTS) If a robot could perfectly mimic human behaviour, should it be treated as a human? Discuss ethically. 5

19. (Case Study) A hospital uses AI to analyse X-rays to detect cancer. The AI was trained on 1 million X-rays. (a) What type of AI is this? (b) What domain of AI is used? (c) What are the advantages of using AI for this task? (d) What are the risks? (e) Should doctors fully trust the AI? 5

Chapter 2: AI Project Cycle

2.1 The AI Project Lifecycle

Building an AI solution is a structured process โ€” like constructing a building. Each phase builds on the previous one. Skipping a step leads to poor AI outcomes.

1๏ธโƒฃ Define Problem Scoping 2๏ธโƒฃ Collect Data Acquisition 3๏ธโƒฃ Explore Data Analysis 4๏ธโƒฃ Model Build & Train AI 5๏ธโƒฃ Evaluate Test & Deploy Iterative process โ€” keep improving!

Fig 2.1: The AI Project Lifecycle โ€” 5 iterative stages

2.2 The 4W Problem Canvas

๐Ÿ“‹ 4W Problem Canvas โ“ WHAT What is the problem? What do we want AI to do? โ€ข Detect fraud in banking โ€ข Predict student dropout โ€ข Diagnose disease from image ๐Ÿ‘ฅ WHO Who is affected by this problem? Who will use this AI solution? โ€ข Patients & doctors โ€ข Students & teachers โ€ข Banks & customers ๐Ÿ“ WHERE Where does this problem occur? Where will AI be used? โ€ข Hospital radiology lab โ€ข Online banking platform โ€ข School computer system โฐ WHEN When does this problem happen? When should AI intervene? โ€ข During transaction (real-time) โ€ข At exam results time โ€ข On patient scan upload

Fig 2.2: The 4W Canvas โ€” structured way to define an AI problem before building

2.3 Big Data โ€” The 5 V's

๐Ÿ—„๏ธ Big Data โ€” The 5 V's ๐Ÿ“ฆ VOLUME How MUCH data? e.g. YouTube: 500hrs video every minute Terabytesโ†’Zettabytes โšก VELOCITY How FAST data arrives? e.g. Stock market: millisecond trades Real-time streaming ๐ŸŽญ VARIETY What TYPES of data? Text, images, video, audio, sensor data Structured/Unstructured โœ… VERACITY How RELIABLE is the data? e.g. Fake reviews, noisy sensor data Quality & accuracy ๐Ÿ’Ž VALUE How USEFUL is the data? e.g. Insights that increase revenue The ultimate goal!

Fig 2.3: Big Data 5 V's โ€” characteristics that define truly "big" data

๐Ÿ“Š Worked Example โ€” Instagram as Big Data
VInstagram ExampleScale
VolumePhotos, reels, stories uploaded daily100M+ posts/day
VelocityLikes, comments, shares happening instantlyReal-time processing
VarietyImages, videos, text captions, emojis, audioMulti-format
VeracityFake accounts, spam bots, misleading contentQuality challenge
ValueAd targeting, creator analytics, trend detectionBillions $ revenue
๐Ÿ’ก RememberThe 5 V's of Big Data: Volume (size), Velocity (speed), Variety (types), Veracity (quality), Value (usefulness). Only data with all 5 V's is considered "Big Data".

2.4 Interactive โ€” 4W Problem Scenario Canvas

Apply the 4W framework to a real scenario! Read the scenario below and click each quadrant to reveal how 4W thinking applies. Try building your own AI project using this thinking.

๐ŸŽ“ SCENARIO
A village in rural Jharkhand has only one government doctor for 5,000 people. Patients travel 40 km for basic check-ups. The local school has computers. How can AI help?
โ“ WHAT is the problem?
Click to reveal your thinking...
๐Ÿ‘ฅ WHO is affected?
Click to reveal your thinking...
๐Ÿ“ WHERE is it deployed?
Click to reveal your thinking...
โฐ WHEN does it trigger?
Click to reveal your thinking...

2.5 AI and the 17 UN Sustainable Development Goals (SDGs)

The United Nations has set 17 Sustainable Development Goals (SDGs) to build a better world by 2030. AI is a powerful tool to accelerate progress towards these goals โ€” especially in developing countries like India.

๐ŸŒ How AI Helps Achieve the UN SDGs SDG 1No PovertyAI credit scoringfor unbanked SDG 2Zero HungerAI crop diseasedetection, yield pred. SDG 3Good HealthAI diagnostics,drug discovery SDG 4Quality EducationPersonalised AItutoring & grading SDG 5Gender EqualityDetect genderpay gap via ML SDG 6Clean WaterAI water qualitysensing & leaks SDG 7Clean EnergyAI optimises solarpanel efficiency SDG 11Sustainable CitiesSmart traffic,waste management SDG 13Climate ActionAI weather models,carbon tracking SDG 15Life on LandPoaching detection,species monitoring ๐ŸŒพ DEEP DIVE: SDG 2 โ€” Zero Hunger โ€” AI in Indian Agriculture ๐Ÿฆ  Crop Disease Farmers photograph leaves on phone. AI identifies disease in seconds. App used by 10M farmers (India) PlantVillage AI ๐ŸŒง๏ธ Yield Prediction AI analyses satellite images + weather + soil sensors to predict harvest quantity weeks before they ripen SatSure / AgriBazaar ๐Ÿšœ Precision Farming AI-guided drones spray fertiliser ONLY where crops need it. Saves 30% water, 20% fertiliser cost IBM Watson Agriculture ๐Ÿฝ๏ธ Food Waste AI analyses supermarket sales patterns to order exactly what's needed. Reduces food waste by up to 40% Winnow AI

Fig 2.4: AI applications aligned to UN Sustainable Development Goals โ€” with focus on Zero Hunger in India

2.6 Data Acquisition โ€” Collecting the Right Data

Data acquisition is the process of collecting, gathering, and importing raw data for an AI project. The quality of your AI model depends entirely on the quality and quantity of data collected โ€” "Garbage In, Garbage Out."

๐Ÿ—ƒ๏ธ Data Acquisition โ€” Categories, Types & Datasets ๐Ÿ“ก Data Acquisition Techniques ๐ŸŒ Web Scraping Automated collection from websites/APIs ๐Ÿ“‹ Surveys Questionnaires, Google Forms ๐Ÿ“ธ Sensors/IoT Cameras, wearables, weather stations ๐Ÿ›๏ธ Open Datasets Kaggle, UCI, govt data portals ๐Ÿค Manual Human entry, labelling ๐Ÿ“‚ Data Categories ๐Ÿ“Š STRUCTURED Organised in rows & columns. Easy for AI. CSV, Excel, SQL DB 20% of all data ๐ŸŒ€ UNSTRUCTURED No fixed format. Harder for AI to use. Images, audio, videos 80% of all data ๐Ÿ—„๏ธ Types of Datasets ๐ŸŽ“ TRAINING SET The data AI learns from. Like a student's textbook & exercises. Typically 70โ€“80% ๐Ÿ“ TESTING SET Data AI has NEVER seen โ€” tests real world performance. Typically 20โ€“30% โš ๏ธ Risks of Insufficient or Inauthentic Data โŒ Biased AIModel discriminates unfairly โŒ OverfittingWorks on training, fails in real life โŒ Wrong PredictionsFlawed decisions with real consequences โŒ Low AccuracyPoor performance on new data

Fig 2.5: Data Acquisition โ€” techniques, categories, dataset types, and risks of poor data

๐Ÿ’ก Why Authentic & Sufficient Data Matters Sufficient data means having ENOUGH examples so the AI can recognise patterns reliably โ€” a face recognition AI trained on 100 photos will fail; trained on 1 million photos, it will excel.

Authentic data means real, accurate, unbiased data from genuine sources. If a hospital AI is trained only on data from wealthy urban patients, it will fail for rural patients with different dietary and environmental factors.

Genuine data sources include: Government databases (data.gov.in), open repositories (Kaggle, UCI Machine Learning Repository), research papers with published datasets, hospital records with consent, sensor networks, and verified social media APIs.

Practice Paper โ€” Chapter 2: AI Project Cycle

Class: 9โ€“10 | Max Marks: 30 | Time: 1 Hour

Section A โ€” MCQ (1 mark ร— 8)

1. How many stages are in the AI Project Lifecycle? 1

  • a) 3
  • b) 4
  • c) 5 โœ“
  • d) 7

2. The "W" in 4W Canvas that asks about stakeholders is: 1

  • a) What
  • b) Who โœ“
  • c) When
  • d) Where

3. "Velocity" in Big Data refers to: 1

  • a) Data size
  • b) Data types
  • c) Data speed โœ“
  • d) Data quality

4. Which V of Big Data deals with fake and noisy data? 1

  • a) Volume
  • b) Velocity
  • c) Variety
  • d) Veracity โœ“

5. The first step in AI Project Cycle is: 1

  • a) Collect data
  • b) Define problem โœ“
  • c) Build model
  • d) Evaluate

6. Unstructured data is: 1

  • a) Excel spreadsheet
  • b) SQL database
  • c) Videos and images โœ“
  • d) CSV files

7. The goal of data acquisition is: 1

  • a) Clean the data
  • b) Gather relevant data for the AI problem โœ“
  • c) Train the model
  • d) Deploy AI

8. YouTube uploading 500 hours of video per minute is an example of: 1

  • a) Veracity
  • b) Value
  • c) Volume โœ“
  • d) Variety

Section B โ€” Short Answer (2 marks ร— 4 = 8)

9. What is the purpose of the 4W Canvas in AI project planning? 2

10. Why is the AI project cycle iterative? Give a real-world reason. 2

11. Explain Variety and Value of Big Data with examples. 2

12. What is data acquisition? Name three sources of data. 2

Section C โ€” Long Answer (7 marks)

13. A school wants to build an AI system to predict student dropouts. (a) Apply the 4W Canvas to this problem. (b) What data would you need? (c) Which stage would be most challenging and why? 7

Section D โ€” Case Study (7 marks)

14. Zomato processes millions of food orders, reviews, GPS locations, restaurant data, and user preferences every day. (a) Which 5 V's does this represent? Give specific examples. (b) Why is this considered Big Data? (c) How can AI add value to this data? 7

Chapter 3: Data Exploration & Preprocessing

3.1 What is Data Exploration (EDA)?

Exploratory Data Analysis (EDA) is the process of visually and statistically examining a dataset to understand its structure, find patterns, detect anomalies, and check assumptions before modelling.

๐Ÿ” EDA Process Flow ๐Ÿ“ฅ Load Data CSV, Excel, Database โ†’ ๐Ÿ”ข Understand Shape, types, summary stats โ†’ ๐Ÿ”Ž Find Issues Missing vals, outliers, errors โ†’ ๐Ÿ“Š Visualise Charts, plots, histograms โ†’ ๐Ÿงน Clean & Fix Handle missing, remove noise โ†’ โœ… Ready for ML Model

Fig 3.1: Six-step EDA process before building any AI model

3.2 Data Preprocessing Techniques

๐Ÿงน Data Issues and How to Fix Them โŒ Raw (Dirty) Data Name | Age | Score Rahul | 15 | 85 ??? | | 72 โ† missing Priya | 150| 90 โ† outlier Amit | 16 | 88 amit | 16 | 88 โ† duplicate Kavya | 15 | abc โ† wrong type Raj | 17 | 79 Issues Found: โš ๏ธ Missing values โš ๏ธ Outlier (Age=150) โš ๏ธ Duplicates โš ๏ธ Wrong data types โš ๏ธ Inconsistent case โŸน Clean! โœ… Clean Data Name | Age | Score Rahul | 15 | 85 Unknown | 15.8 | 72 โ† imputed Priya | 16 | 90 โ† fixed Amit | 16 | 88 โ† removed dup Kavya | 15 | 0 โ† corrected Raj | 17 | 79 Methods Used: โœ“ Mean imputation โœ“ IQR outlier removal โœ“ drop_duplicates() โœ“ Type conversion โœ“ str.lower()

Fig 3.2: Data quality issues in raw data and preprocessing solutions

3.3 Normalisation โ€” Why and How

AI algorithms (like KNN, Neural Networks) are distance-sensitive. If Age ranges from 0โ€“100 but Income ranges from 0โ€“1,000,000, the algorithm will unfairly favour Income. Normalisation rescales all features to the same range.

๐Ÿ“ Why Normalisation Matters โŒ Before Normalisation Age (0-100) max=100 Score (0-100) Income max=1000000! Algorithm focuses only on largest scale! โŸน Normalise โœ… After Normalisation (0 to 1) Age (0-1) Score (0-1) Income (0-1) All features on equal footing! Fair comparison possible.
๐Ÿ“ Min-Max Normalisation Formula X_normalised = (X - X_min) / (X_max - X_min) Result: All values scaled between 0 and 1
๐Ÿ“Š Worked Example โ€” Normalise Student Heights Heights: [150, 160, 170, 180, 190] cm. X_min = 150, X_max = 190

โ€ข 150 โ†’ (150-150)/(190-150) = 0/40 = 0.00
โ€ข 160 โ†’ (160-150)/(190-150) = 10/40 = 0.25
โ€ข 170 โ†’ (170-150)/(190-150) = 20/40 = 0.50
โ€ข 180 โ†’ (180-150)/(190-150) = 30/40 = 0.75
โ€ข 190 โ†’ (190-150)/(190-150) = 40/40 = 1.00

Insight: The shortest student (150cm) gets 0, tallest (190cm) gets 1.
๐Ÿ’ก Key Terms โ€ข EDA = Exploratory Data Analysis โ€” understanding your data before modelling
โ€ข Missing values โ†’ fill with mean/median (imputation) or remove row
โ€ข Outlier โ†’ unusually extreme value (e.g. Age = 150)
โ€ข Normalisation โ†’ rescale features to 0โ€“1 range
โ€ข Standardisation โ†’ rescale features to mean=0, std=1 (Z-score)

Practice Paper โ€” Chapter 3: Data Exploration

Max Marks: 30 | Time: 1 Hour

Section A โ€” MCQ (1 mark ร— 8)

1. EDA stands for: 1

  • a) Estimated Data Analysis
  • b) Exploratory Data Analysis โœ“
  • c) Extended Data Algorithm
  • d) None

2. Min-Max Normalisation scales values to: 1

  • a) -1 to +1
  • b) 0 to 100
  • c) 0 to 1 โœ“
  • d) Any range

3. An outlier is best described as: 1

  • a) Most common value
  • b) Extremely different value โœ“
  • c) The median
  • d) A missing value

4. Filling missing values with the average is called: 1

  • a) Outlier removal
  • b) Normalisation
  • c) Mean imputation โœ“
  • d) Encoding

5. Which chart shows frequency distribution? 1

  • a) Pie chart
  • b) Histogram โœ“
  • c) Line graph
  • d) Scatter plot

6. In df.describe(), which stat is NOT shown? 1

  • a) Mean
  • b) Std
  • c) Mode โœ“
  • d) Min/Max

7. Feature Engineering is: 1

  • a) Removing features
  • b) Creating new features from existing ones โœ“
  • c) Labelling data
  • d) Testing the model

8. Converting "Male/Female" to 0/1 is called: 1

  • a) Normalisation
  • b) Label Encoding โœ“
  • c) Imputation
  • d) Scaling

Section B โ€” Short Answer (3 marks ร— 4 = 12)

9. A dataset has ages: [25, 28, 26, 150, 27]. Identify the outlier. How would you handle it? 3

10. Normalise the following heights using Min-Max: [140, 155, 170, 185, 200] 3

11. What are three common data quality issues? Give an example for each. 3

12. Explain the difference between normalisation and standardisation. 3

Section C โ€” Long Answer (10 marks)

13. A hospital dataset for heart disease prediction has: Missing blood pressure for 15% of patients; Age outlier (patient listed as 205 years); Gender stored as M/F; Blood pressure in mmHg (range 80โ€“200). (a) Identify all preprocessing steps needed. (b) How would you handle each issue? (c) Why is it critical to clean this data before training? (d) Write pseudocode for two preprocessing steps. 10

Chapter 4: Modelling โ€” Machine Learning Algorithms

4.1 Types of Machine Learning

๐Ÿค– Three Types of Machine Learning ๐Ÿ“š Supervised Learns from LABELLED data "Teacher gives answers" Input: Photo of cat ๐Ÿฑ โ€”โ€”โ†’ Label: "Cat" โœ“ e.g. Classification, Regression, Decision Tree ๐Ÿ” Unsupervised Finds patterns WITHOUT labels "No teacher, self-explore" Input: Customer data ๐Ÿ“Š Groups: 3 clusters e.g. K-Means Clustering, PCA, Anomaly Detection ๐ŸŽฎ Reinforcement Learns by reward & penalty "Trial and error" Agent plays game ๐ŸŽฏ Win=+reward, Lose=-reward e.g. AlphaGo, game AI, self-driving cars

Fig 4.1: Three paradigms of Machine Learning

4.2 Decision Tree โ€” Visual Example

๐ŸŒณ Decision Tree: Should I Play Cricket? Is it raining? Weather condition YES NO Is there shelter? Is it a weekend? Free time available? NO YES NO YES โŒ Don't Play Raining, no shelter โœ… Play! Shelter available โŒ Don't Play Weekday, no time โœ… Play! Weekend, sunny! Each internal node = question; Each leaf = decision outcome

Fig 4.2: Decision Tree โ€” hierarchical if-then-else rules for classification

4.3 ML Algorithm Comparison

AlgorithmTypeHow it WorksBest Used ForExample
Linear RegressionSupervisedFits a line y=mx+b to dataPredicting numbersPredict house price
Decision TreeSupervisedSeries of if-else questionsClassificationDisease diagnosis
KNNSupervisedFind K nearest neighboursClassificationRecommend movies
Naive BayesSupervisedProbability with Bayes theoremText classificationSpam detection
K-MeansUnsupervisedGroup data into K clustersCustomer segmentationMarketing groups
Neural NetworkSupervisedLayers of connected neuronsImages, speechFace recognition
๐Ÿ’ก Remember โ€” Supervised vs Unsupervised โ€ข Supervised: Data has labels (answers) โ€” like studying with answer key
โ€ข Unsupervised: Data has no labels โ€” AI finds patterns on its own
โ€ข Reinforcement: Agent learns from environment through trial and error

4.4 Supervised Learning โ€” Deep Dive

Supervised Learning is like studying with a teacher who shows you both the question AND the correct answer. The AI learns to map inputs to outputs using labelled training data.

๐Ÿ“š Supervised Learning โ€” How It Works TRAINING PHASE ๐Ÿ‹๏ธ LABELLED TRAINING DATA ๐Ÿ“Š โ†’ AI MODEL ๐Ÿค– learns patterns โ†’ TRAINED MODEL โœ… Adjust weights to reduce error TWO MAIN TYPES ๐Ÿท๏ธ CLASSIFICATION Predicts a CATEGORY "Which class does this belong to?" Spam/Not Spam โ€ข Cat/Dog ๐Ÿ“ˆ REGRESSION Predicts a NUMBER "How much will this be worth?" House price โ€ข Marks โ€ข Temp ๐Ÿท๏ธ Classification โ€” Visual ๐Ÿฑ Cats ๐Ÿถ Dogs Decision Boundary Output: "Cat" or "Dog" ๐Ÿ“ˆ Regression โ€” Visual y=mx+b Priceโ†‘ Size โ†’ Output: โ‚น42,00,000 (a number)

Fig 4.3: Supervised Learning โ€” how it works, with Classification vs Regression explained visually

4.5 Unsupervised Learning โ€” Deep Dive

Unsupervised Learning works without any labels. The AI explores data on its own and discovers hidden patterns, groupings, or structures. Think of it like organising a messy room โ€” no one tells you how, you figure it out.

๐Ÿ” Unsupervised Learning โ€” Two Main Types CLUSTERING ๐Ÿ“ Groups similar data points together โญ โญ โญ โ˜… = Cluster centre (centroid) Example: Netflix groups viewers โ†’ recommends matching content DIMENSIONALITY REDUCTION ๐Ÿ“‰ Compresses data โ€” keeps important features HIGH DIMENSIONS 100s of features: Age, height, weight, marks in 20 subjects... Slow, complex ๐Ÿข โ†’ REDUCED (PCA) 2โ€“3 key features: Academic score, Physical fitness Fast, simple โšก PCA keeps the pattern, drops the noise and redundancy ๐Ÿ’ก PCA = Principal Component Analysis Example: Compressing face image data for face recognition systems

Fig 4.4: Unsupervised Learning โ€” Clustering groups similar data; Dimensionality Reduction simplifies complex data

4.6 Reinforcement Learning โ€” Deep Dive

๐ŸŽฎ Reinforcement Learning โ€” The Reward Loop ENVIRONMENT Game / World / Task AGENT ๐Ÿค– Makes decisions ACTION e.g. Move left REWARD / PENALTY +10 if wins, -5 if falls STATE / OBSERVATION "I see: position X,Y enemy at right" Real Examples ๐ŸŽฎ AlphaGo Beat world Go champion ๐Ÿš— Self-driving cars Learn to avoid obstacles ๐Ÿค– Robot arm Learns to pick objects ๐Ÿ“ˆ Stock trading Buys/sells to maximise profit ๐ŸŽฏ Game bots Beat human players

Fig 4.5: Reinforcement Learning โ€” agent takes action, gets reward/penalty, improves strategy

4.7 Deep Learning vs Traditional Machine Learning

๐Ÿ†š Deep Learning vs Traditional ML โ€” Key Differences ๐Ÿง  Deep Learning ๐Ÿค– Traditional ML Automatically extracts features from raw data Requires manual feature engineering Needs HUGE amounts of data (millions) Works with smaller datasets (thousands) Needs GPUs / powerful computers Runs on normal CPUs Best for images, speech, text (complex) Best for structured/tabular data Examples: ChatGPT, Face ID, AlphaGo Examples: Linear Regression, Decision Tree

Fig 4.6: Deep Learning vs Traditional ML โ€” when to use which approach

4.8 Interactive โ€” Match the Scenario to the Learning Technique

Click each scenario card to reveal which ML technique is the best fit and why. This is great exam practice!

๐Ÿฆ Scenario 1
A bank wants to mark transactions as "Fraudulent" or "Genuine" based on historical transaction data with known labels.
๐Ÿ‘† Click to see the technique
๐Ÿ˜๏ธ Scenario 2
A real estate company wants to predict the selling price of a house based on its size, location, and number of rooms.
๐Ÿ‘† Click to see the technique
๐Ÿ›’ Scenario 3
An e-commerce site has millions of customers with purchase history but NO labels. They want to target groups of similar customers with personalised ads.
๐Ÿ‘† Click to see the technique
๐ŸŽฎ Scenario 4
A game company wants to build an AI bot that learns to play chess on its own โ€” starting as a beginner and improving through millions of games.
๐Ÿ‘† Click to see the technique
๐Ÿฅ Scenario 5
A hospital has 10,000 X-ray images each labelled "Cancer" or "No Cancer". They want AI to automatically screen new X-rays.
๐Ÿ‘† Click to see the technique
๐ŸŒ Scenario 6
A weather system has 500 features per location. Scientists want to reduce it to 3โ€“5 key features to build faster prediction models.
๐Ÿ‘† Click to see the technique
๐Ÿ’ก Key Rules for Choosing ML Technique โ€ข Labelled data + predict a category โ†’ Supervised + Classification (spam/not spam, disease/no disease)
โ€ข Labelled data + predict a number โ†’ Supervised + Regression (price, temperature, marks)
โ€ข No labels + find groups โ†’ Unsupervised + Clustering (customer segments, news topics)
โ€ข No labels + reduce complexity โ†’ Unsupervised + Dimensionality Reduction (PCA)
โ€ข Agent learning in environment โ†’ Reinforcement Learning (games, robots, trading)

Practice Paper โ€” Chapter 4: Modelling

Max Marks: 30 | Time: 1 Hour

Section A โ€” MCQ (1 mark ร— 8)

1. In supervised learning, training data is: 1

  • a) Unlabelled
  • b) Labelled โœ“
  • c) Randomly generated
  • d) Always numeric

2. KNN stands for: 1

  • a) Kernel Neural Network
  • b) K Nearest Neighbours โœ“
  • c) K Node Network
  • d) None

3. K-Means is an example of: 1

  • a) Supervised learning
  • b) Reinforcement learning
  • c) Unsupervised learning โœ“
  • d) Deep learning

4. A Decision Tree uses: 1

  • a) Mathematical equations
  • b) If-else rules โœ“
  • c) Probability tables
  • d) Distance calculations

5. Linear Regression predicts: 1

  • a) A category
  • b) A label
  • c) A continuous number โœ“
  • d) A cluster

6. AlphaGo (Google DeepMind) uses: 1

  • a) Supervised Learning
  • b) Unsupervised Learning
  • c) Reinforcement Learning โœ“
  • d) Linear Regression

7. Overfitting means the model: 1

  • a) Performs well on new data
  • b) Memorises training data but fails on new data โœ“
  • c) Has too few parameters
  • d) None of above

8. The leaf nodes of a Decision Tree represent: 1

  • a) Questions
  • b) Features
  • c) Final decisions/predictions โœ“
  • d) Training data

Section B โ€” Short Answer (3 marks ร— 4 = 12)

9. Draw and explain a simple Decision Tree for "Should I buy an umbrella?" 3

10. Explain the difference between classification and regression with examples. 3

11. What is overfitting? How can it be prevented? 3

12. Explain how KNN works with a step-by-step example for K=3. 3

Section C โ€” Case Study + HOTS (10 marks)

13. A bank wants to detect fraudulent transactions. (a) Which type of ML is best and why? (b) What features/data would you use? (c) Draw a simple decision tree for fraud detection. (d) What challenges might this model face? (e) How would you evaluate if the model is working well? 10

Chapter 5: Evaluation of AI Models

5.1 The Confusion Matrix โ€” Your AI Report Card

After training an AI model, we must test how well it performs. The confusion matrix is a 2ร—2 table that shows where your AI got confused โ€” predicting correctly, predicting wrong in different ways.

๐Ÿ“Š The Confusion Matrix โ€” Visualised โ† Predicted by AI โ†’ What the AI said โ† Actual Reality โ†’ Predicted: YES Predicted: NO Actual: YES (Disease present) Actual: NO (No disease) TP = 85 True Positive โœ… Correctly said YES FN = 15 False Negative โš ๏ธ Missed the disease! FP = 20 False Positive โŒ Alarm when healthy TN = 80 True Negative โœ… Correctly said NO Total patients = 85+15+20+80 = 200 TP = Correct disease detection FN = Missed disease (dangerous!)

Fig 5.1: Confusion Matrix for Cancer AI (200 patients)

5.1b Understanding TP, FP, TN, FN โ€” With Everyday Examples

The four cells of the confusion matrix each represent a different type of outcome. Understanding them deeply is the key to choosing the right metric for the right problem.

๐Ÿ” TP, FP, TN, FN โ€” What Each Really Means โœ… TRUE POSITIVE (TP) AI predicted YES โ†’ Reality was YES (Correct!) ๐Ÿฅ Medical Example Patient HAS cancer. AI says "Cancer detected." โ†’ โœ… Caught it! Doctor can treat. ๐Ÿ“ง Spam Example Email IS spam. AI says "This is spam." โ†’ โœ… Correctly blocked! โš ๏ธ FALSE NEGATIVE (FN) AI predicted NO โ†’ Reality was YES (Missed!) ๐Ÿฅ Medical Example Patient HAS cancer. AI says "No cancer found." โ†’ โŒ MISSED! Patient goes untreated. ๐Ÿ” Security Example Intruder IS present. AI says "All clear." โ†’ โŒ Security breach! โŒ FALSE POSITIVE (FP) AI predicted YES โ†’ Reality was NO (False alarm!) ๐Ÿฅ Medical Example Patient does NOT have cancer. AI says "Cancer detected." โ†’ โš ๏ธ Unnecessary panic & tests! ๐Ÿ“ง Spam Example Email is from your boss. AI marks it as "Spam." โ†’ โš ๏ธ Important email missed! โœ… TRUE NEGATIVE (TN) AI predicted NO โ†’ Reality was NO (Correct!) ๐Ÿฅ Medical Example Patient does NOT have cancer. AI says "No cancer." โ†’ โœ… Correctly cleared! Patient healthy. ๐Ÿ“ง Spam Example Email is important/genuine. AI says "Not spam." โ†’ โœ… Correctly delivered!

Fig 5.1b: TP, FP, TN, FN โ€” explained with medical and spam examples for both types of outcomes

๐Ÿ’ก The Memory Trick for TP/FP/TN/FN The FIRST word (True/False) tells you whether the AI was correct.
The SECOND word (Positive/Negative) tells you what the AI predicted.

โ€ข True Positive = AI said YES and it WAS yes โ†’ โœ… Good!
โ€ข True Negative = AI said NO and it WAS no โ†’ โœ… Good!
โ€ข False Positive = AI said YES but it was actually NO โ†’ โŒ False alarm!
โ€ข False Negative = AI said NO but it was actually YES โ†’ โŒ Missed case! (most dangerous in medical AI)

5.1c Why Evaluation Matters โ€” Real Consequences

โš ๏ธ Why We Must Evaluate AI โ€” Real-World Consequences ๐Ÿฅ Medical AI Without evaluation, a cancer AI could miss 60% of cases Patients go untreated. Deaths could occur. Eval saves lives! Recall must be >95% ๐Ÿš— Self-Driving Car Without evaluation, sign recognition AI misreads STOP as GO Car runs red lights. Accidents happen. Eval ensures safety! Accuracy must be >99.9% ๐Ÿฆ Banking AI Without evaluation, fraud detector blocks legitimate transactions Customers lose access. Bank loses trust & money. Eval saves business! Precision must be >90%

Fig 5.1c: Why AI evaluation is critical โ€” real consequences of unevaluated AI systems

5.2 Four Evaluation Metrics โ€” Calculated

๐Ÿ“Š Full Worked Example โ€” Cancer Detection AI TP = 85 (correctly detected cancer), FN = 15 (missed cancer!), FP = 20 (false alarm), TN = 80 (correctly said no cancer)

โ‘  Accuracy = (TP + TN) / Total = (85 + 80) / 200 = 165/200 = 82.5%
โ†’ "82.5% of all predictions were correct"

โ‘ก Precision = TP / (TP + FP) = 85 / (85 + 20) = 85/105 = 80.95%
โ†’ "When AI said cancer, it was right 81% of the time"

โ‘ข Recall (Sensitivity) = TP / (TP + FN) = 85 / (85 + 15) = 85/100 = 85%
โ†’ "AI found 85% of all actual cancer cases"

โ‘ฃ F1 Score = 2 ร— (Precision ร— Recall) / (Precision + Recall) = 2 ร— (0.8095 ร— 0.85) / (0.8095 + 0.85) = 82.92%
โ†’ "Balanced measure combining precision and recall"
โš–๏ธ Precision vs Recall โ€” When to Prioritise Which? ๐ŸŽฏ Precision Matters Most When... False Positive is costly/harmful ๐Ÿ“ง Spam filter: Don't block important emails as spam! โš–๏ธ Legal AI: Don't accuse innocent people! ๐Ÿ›’ E-commerce fraud: Don't block genuine purchases! ๐Ÿ” Recall Matters Most When... False Negative is costly/dangerous ๐Ÿฅ Cancer detection: Don't miss any cancer cases! ๐Ÿ’ฃ Security screening: Don't miss any threats! ๐Ÿฆ  Disease outbreak: Find ALL infected people! VS

Fig 5.2: Precision vs Recall โ€” the trade-off and when each matters

๐Ÿ“ Key Formulas Accuracy = (TP + TN) / (TP + TN + FP + FN) Precision = TP / (TP + FP) Recall = TP / (TP + FN) F1 Score = 2 ร— (Precision ร— Recall) / (Precision + Recall)
๐Ÿ’ก Remember โ€ข TP = Correct positive prediction (best!)
โ€ข TN = Correct negative prediction (best!)
โ€ข FP = False alarm โ€” predicted YES but was NO (Type I error)
โ€ข FN = Missed case โ€” predicted NO but was YES (Type II error) โ€” most dangerous in medical AI!
โ€ข Accuracy paradox: If 99% of emails are ham, a model that predicts EVERYTHING as ham gets 99% accuracy but is useless!

Practice Paper โ€” Chapter 5: Evaluation

Max Marks: 30 | Time: 1 Hour

Section A โ€” MCQ (1 mark ร— 8)

1. TP + TN + FP + FN equals: 1

  • a) Precision
  • b) Recall
  • c) Total samples โœ“
  • d) F1 Score

2. Which error is most dangerous in cancer detection AI? 1

  • a) False Positive
  • b) False Negative โœ“
  • c) True Positive
  • d) True Negative

3. F1 Score is the harmonic mean of: 1

  • a) Accuracy and Recall
  • b) Precision and Recall โœ“
  • c) TP and TN
  • d) FP and FN

4. An AI spam filter should prioritise: 1

  • a) Recall
  • b) Precision โœ“
  • c) F1 Score
  • d) Accuracy

5. If TP=80, FP=20, what is Precision? 1

  • a) 0.6
  • b) 0.7
  • c) 0.8 โœ“
  • d) 0.9

6. The Accuracy Paradox occurs when: 1

  • a) Accuracy = 100%
  • b) High accuracy but poor performance on minority class โœ“
  • c) Recall is high
  • d) F1 > Accuracy

7. Recall is also known as: 1

  • a) Specificity
  • b) Sensitivity โœ“
  • c) Precision
  • d) Accuracy

8. Which metric is best when both FP and FN are important? 1

  • a) Accuracy
  • b) Precision
  • c) Recall
  • d) F1 Score โœ“

Section B โ€” Calculation (12 marks)

9. An AI tested on 500 patients gave: TP=140, FN=60, FP=30, TN=270. Calculate Accuracy, Precision, Recall and F1 Score. Show all working. 6

10. For a security screening AI, should you prioritise Precision or Recall? Justify with reasoning. 3

11. Explain the Accuracy Paradox with a numerical example. 3

Section C โ€” Case Study (10 marks)

12. A COVID-19 detection AI gave these results on 1000 patients: TP=850, FN=150, FP=200, TN=800. (a) Draw and fill the confusion matrix. (b) Calculate all 4 metrics. (c) Is this a good model? (d) What type of error is more dangerous here? (e) How would you improve recall without harming precision too much? 10

Topic 1: AI Ethics & Bias

1.1 Why Ethics in AI Matters

AI systems make decisions that affect real human lives โ€” hiring, lending, medical diagnosis, criminal justice. If these systems are biased or unethical, they can cause serious harm at massive scale.

โš–๏ธ Why AI Ethics is Critical โ€” Real Impact Scale โŒ Biased AI Unfair decisions Millions affected โœ… Ethical AI Fair outcomes Builds trust e.g. Amazon hiring AI discriminated women e.g. IBM Fairness 360 detects & fixes bias

1.2 The 7 Principles of Ethical AI

๐ŸŒ 7 Principles of Responsible AI Responsible AI โš–๏ธ FAIRNESS Equal treatment ๐Ÿ“‹ ACCOUNT- ABILITY ๐Ÿ” TRANS- PARENCY ๐Ÿ”’ PRIVACY Data protection ๐Ÿ›ก๏ธ SAFETY Do no harm โš™๏ธ RELIA- BILITY ๐ŸŒ INCLU- SIVITY

Fig T1.1: The 7 interconnected principles of ethical AI development

1.3 Types of AI Bias โ€” With Real Examples

Bias TypeWhat It MeansReal-World ExampleHarm Caused
Historical BiasData reflects past discriminationAI trained on old hiring data โ€” men dominated tech โ†’ AI prefers menWomen unfairly rejected (Amazon, 2018)
Representation BiasSome groups under-represented in training dataFace recognition trained mostly on light-skinned facesDark skin faces misidentified 35% more (MIT study)
Measurement BiasWrong/noisy data collectedHealth AI trained on hospital data โ€” uninsured people under-representedWrong predictions for lower-income groups
Aggregation BiasOne model for all groups when separate models neededDiabetes AI trained on average data โ€” different across ethnicitiesPoor outcomes for minorities
Evaluation BiasTested on non-representative benchmarkNLP tested only on English โ†’ bad performance on Hindi, BengaliExcludes non-English speakers
Deployment BiasUsed differently from how it was designedCrime prediction AI designed for resource allocation, used for sentencingUnjust imprisonment

1.4 How GANs Create Deepfakes

๐ŸŽญ How Deepfakes Work โ€” GAN Architecture ๐ŸŽจ GENERATOR "The Forger" Takes random noise Creates fake image Tries to fool discriminator Learns from feedback Fake image ๐Ÿ” DISCRIMINATOR "The Detective" Sees real + fake images Judges: Real or Fake? Trains to detect fakes Gets better over time โ† Real images from dataset also fed here ๐ŸŽญ Result: Photorealistic fake face/video Indistinguishable! โ† Adversarial feedback loop โ€” both networks get better together

Fig T1.2: GAN architecture showing how deepfakes are generated through adversarial training

1.5 Security, Privacy, Accountability & Transparency โ€” How They Connect to Ethics

๐Ÿ”— Four Pillars of Ethical AI โ€” How They Interconnect โš–๏ธ AI ETHICS ๐Ÿ” SECURITY Protecting AI systems from attacks & misuse Ethics link: Insecure AI can be weaponised ๐Ÿ”’ PRIVACY Your data belongs to YOU AI must not misuse it Ethics link: No consent = violation of rights ๐Ÿ“‹ ACCOUNTABILITY Developers & companies must own AI decisions Ethics link: No blame gap allowed ๐Ÿ” TRANSPARENCY AI must explain WHY it made each decision Ethics link: Black-box AI erodes trust

Fig T1.3: Four pillars interconnected โ€” each directly supports AI Ethics

PillarWhat it means in AIIf violated โ€” real harmIndian Context
๐Ÿ” SecurityProtect AI from hackers, adversarial attacks, data poisoningSelf-driving cars hacked; medical AI manipulated to mis-diagnoseCERT-In governs cybersecurity; AI in banking must be secured
๐Ÿ”’ PrivacyUsers must consent to how their data is collected and usedCambridge Analytica: 87M Facebook profiles used without consentIndia's DPDP Act 2023 protects digital personal data
๐Ÿ“‹ AccountabilitySomeone must be responsible when AI causes harmAn AI loan system denies thousands unfairly โ€” who is responsible?RBI guidelines: banks responsible for AI-based credit decisions
๐Ÿ” TransparencyAI must explain decisions in understandable terms (XAI)A "black box" AI rejects job applications โ€” no reason givenEU AI Act (2024) mandates explanation rights for AI decisions

1.6 Interactive Ethics Scenario Game โ€” What Would You Do?

Click each scenario card to reveal the ethical analysis. Think first โ€” then check!

SCENARIO 1 โ€” SECURITY
A school AI exam system can be fooled by changing a few pixels in submitted answers โ€” it then gives 100% marks.
๐Ÿ‘† Click to see the ethical issues
SCENARIO 2 โ€” PRIVACY
A health app collects your heartbeat data 24/7 and sells it to insurance companies โ€” without telling users.
๐Ÿ‘† Click to see the ethical issues
SCENARIO 3 โ€” ACCOUNTABILITY
An AI self-driving car crashes and injures a pedestrian. The car maker says "The AI decided" and refuses liability.
๐Ÿ‘† Click to see the ethical issues
SCENARIO 4 โ€” TRANSPARENCY
A bank's AI denies Ramesh's loan. When he asks why, the bank says "It's our algorithm โ€” we can't explain it."
๐Ÿ‘† Click to see the ethical issues
๐Ÿ’ก Remember โ€” Ethics Key Points โ€ข Biased training data โ†’ biased AI โ€” garbage in, garbage out
โ€ข GAN (Generative Adversarial Network) creates deepfakes: Generator vs Discriminator
โ€ข XAI (Explainable AI) โ€” making AI decisions understandable to humans
โ€ข GDPR (EU), DPDP Act 2023 (India), EU AI Act 2024 โ€” laws governing AI data use
โ€ข Security = protect AI from attack | Privacy = protect user data | Accountability = own the consequences | Transparency = explain decisions
โ€ข Always ask: Who benefits? Who is harmed? Is this fair? Who is responsible?

Practice Paper โ€” T1: AI Ethics & Bias

Max Marks: 40 | Time: 1.5 Hours

Section A โ€” MCQ (1 mark ร— 10)

1. Which principle means AI results must be explainable? 1

  • a) Privacy
  • b) Reliability
  • c) Transparency โœ“
  • d) Inclusivity

2. Amazon's AI hiring tool was shut down because it: 1

  • a) Was too expensive
  • b) Discriminated against women โœ“
  • c) Didn't work at all
  • d) Was too slow

3. A deepfake is created using: 1

  • a) Decision Trees
  • b) Linear Regression
  • c) GAN โœ“
  • d) KNN

4. XAI stands for: 1

  • a) Extra AI
  • b) Explainable AI โœ“
  • c) Extreme AI
  • d) Extended AI

5. GDPR is a data protection law from: 1

  • a) USA
  • b) China
  • c) India
  • d) European Union โœ“

6. Representation bias occurs when: 1

  • a) Data is too large
  • b) Some groups are under-represented in training data โœ“
  • c) AI is too accurate
  • d) Model is too simple

7. In a GAN, the Discriminator's role is to: 1

  • a) Generate fake images
  • b) Tell real from fake โœ“
  • c) Train the generator
  • d) Store data

8. Which AI principle ensures it works for ALL users? 1

  • a) Privacy
  • b) Inclusivity โœ“
  • c) Transparency
  • d) Accountability

9. Algorithmic accountability means: 1

  • a) AI should make profit
  • b) AI developers are responsible for their system's impact โœ“
  • c) AI must be free
  • d) AI must be open source

10. Historical bias in AI comes from: 1

  • a) Future predictions
  • b) Programming errors
  • c) Past discriminatory data โœ“
  • d) Hardware failures

Section B โ€” Short Answer (3 marks ร— 5 = 15)

11. Explain "Fairness" in AI with a real example where AI was unfair. 3

12. What is a deepfake? How can it be harmful? Give two examples. 3

13. Explain the difference between Historical Bias and Representation Bias. 3

14. What is XAI? Why is it important for medical AI? 3

15. Name and explain any three global AI ethics frameworks. 3

Section C โ€” HOTS + Case Study (15 marks)

16. (HOTS) A criminal justice AI predicts a person is 85% likely to reoffend. The judge uses this to deny bail. (a) What type of AI bias might this system have? (b) Which ethical principles are violated? (c) Should judges use AI for sentencing? (d) How would you make this system more ethical? 8

17. (Case Study) A social media company's content moderation AI removes posts about political protests. It works well in English but removes legitimate posts in Hindi and Bengali. (a) What type of bias does this show? (b) How was this bias introduced? (c) How should the company fix this? (d) What laws might apply? 7

Topic 2: Data Literacy

2.1 Types of Data

๐Ÿ“Š Data Types โ€” Complete Taxonomy ALL DATA ๐Ÿ“ˆ Quantitative ๐Ÿท๏ธ Qualitative Discrete Whole numbers only e.g. Students=30 Continuous Any value possible e.g. Height=5.7ft Nominal No natural order e.g. Colours, Names Ordinal Ordered categories e.g. Rank: 1st, 2nd

Fig T2.1: Complete data type taxonomy โ€” understanding your data type is the first step

2.2 Structured vs Unstructured Data

๐Ÿ—„๏ธ Structured vs Unstructured Data โ€” Visual Comparison โœ… Structured Data Name Age Score Rahul1585 Priya1690 Amit1578 Rows & columns โ€” easy for AI โš ๏ธ Unstructured Data ๐Ÿ“ธ Photos, selfies, MRI scans ๐ŸŽต Audio, music, voice messages ๐ŸŽฌ Videos, reels, movies ๐Ÿ“„ PDFs, emails, tweets No fixed format โ€” needs Deep Learning

Fig T2.2: Structured vs Unstructured data โ€” 80% of world's data is unstructured!

2.3 Data Quality โ€” 6 Dimensions

โœ…

Accuracy

Data reflects reality. Error: Age listed as 250

๐Ÿ“…

Timeliness

Data is current. Error: 10-year-old census for AI

๐Ÿ”„

Consistency

Same format throughout. Error: Date as DD/MM vs MM/DD

๐Ÿ”ข

Completeness

No missing values. Error: Empty blood pressure column

๐ŸŽฏ

Relevance

Data fits the problem. Error: Hair colour for cancer diagnosis

๐Ÿ”’

Uniqueness

No duplicates. Error: Same record saved twice

2.4 Big Data โ€” The 5 V's

๐ŸŒŠ Big Data โ€” The 5 V's Framework ๐Ÿ“ฆ VOLUME Massive amount 2.5 Quintillion bytes/day created โšก VELOCITY Speed of data Real-time stock prices, Twitter feeds ๐ŸŽจ VARIETY Different formats Text, images, video audio, sensor data ๐ŸŽฏ VERACITY Trustworthiness Is the data accurate & reliable? ๐Ÿ’Ž VALUE Usefulness extracted Raw data โ†’ Insight โ†’ Decision โ†’ Profit ๐Ÿ“ฑ WhatsApp as Big Data โ€” Apply the 5 V's Volume: 100B msgs/day Velocity: Instant delivery Variety: Text/voice/video/doc Veracity: Fake news spreads Value: Ad targeting, trends ๐Ÿ’ก Big Data โ‰  just "lots of data" โ€” it's data so large & complex that traditional tools can't handle it. Needs Hadoop, Spark, cloud AI.

Fig T2.3: Big Data 5 V's โ€” each dimension creates unique challenges for AI systems

2.5 Why Data Literacy is Important

๐Ÿ“š Data Literacy โ€” The New Essential Skill of the 21st Century ๐Ÿ“– READ Data Understand charts, tables & graphs Don't be fooled by misleading visuals โœ๏ธ WORK With Data Clean, sort, filter & organise datasets Spot errors, outliers & missing values ๐Ÿง  ANALYSE Data Find patterns, trends & anomalies Ask the right questions of data ๐Ÿ—ฃ๏ธ COMMUNICATE Present findings in a clear, honest way Don't mislead; tell the data story

Fig T2.4: Data literacy = being able to read, work with, analyse, and communicate data effectively

In the AI age, data literacy is as important as reading and writing. A citizen who cannot critically evaluate data can be misled by fake news, manipulated statistics, and biased AI. Every student, voter, and employee needs these skills.

2.6 Sufficient vs Insufficient Data โ€” Why It Matters

๐Ÿ“‰ Insufficient Data โ†’ Poor AI Model โ€” The Cascade of Failure โŒ Insufficient Data 100 samples to train cancer detection AI (Should need 100,000+) โš ๏ธ Overfitting Memorises training data Works great on known cases, fails on new ones ๐Ÿ’ฅ Wrong Predictions Misses cancers it never saw before Real harm to patients ๐Ÿ’€ Dangerous AI System Overfitting vs Underfitting โ€” Visual Comparison ๐Ÿ˜ฐ OVERFITTING (High Variance) Follows every noise point ๐Ÿ˜ UNDERFITTING (High Bias) Flat line โ€” misses all patterns โœ… GOOD FIT (Balanced) Captures trend, ignores noise

Fig T2.5: The cascade from insufficient data to dangerous AI; Overfitting vs Underfitting patterns

OverfittingUnderfitting
DefinitionModel memorises training data โ€” too specificModel too simple โ€” misses patterns
Training AccuracyVery high (95%+)Very low (<60%)
Test/New Data AccuracyVery low โ€” fails on unseen dataAlso very low โ€” misses everything
CauseToo little data OR too complex modelToo simple model OR too few features
FixMore data, regularisation, cross-validationBetter features, more complex model
AnalogyStudent who memorises answers but can't solve new problemsStudent who didn't study โ€” guesses randomly

2.7 Why Train-Test Split is Important

โœ‚๏ธ Train-Test Split โ€” Why We Must Separate Data Total Dataset (e.g. 10,000 records) All shuffled randomly before splitting โ€” prevents ordering bias โœ‚๏ธ ๐Ÿ“š TRAINING SET โ€” 70โ€“80% AI learns patterns from this data Like a student studying textbook chapters ๐Ÿงช TEST SET โ€” 20โ€“30% AI tested on UNSEEN data Like exam โ€” new questions only! โš ๏ธ If you test on training data = cheating! AI reports 99% accuracy but fails in real world. Always keep test data hidden from training.

Fig T2.6: Train-test split โ€” the only honest way to measure AI performance

2.8 Genuine Sources of Data for AI Projects

๐Ÿ›๏ธ

Government Portals

data.gov.in (India), data.gov (USA), WHO, World Bank โ€” official, reliable, free

๐Ÿ”ฌ

Research Repositories

Kaggle, UCI ML Repository, Google Dataset Search โ€” curated ML datasets

๐ŸŒ

Open Data Projects

OpenStreetMap, Wikipedia, Common Crawl โ€” web-scale open datasets

๐Ÿฅ

Domain-Specific Sets

NIH (health), ImageNet (vision), LibriSpeech (audio), COCO (objects)

โš ๏ธ

What to AVOID

Scraped social media without consent, purchased datasets from unknown vendors, data with no provenance or documentation

โœ…

Sufficient Data Checklist

Diverse? Representative? Large enough? Labelled correctly? Legally collected? Updated? Balanced across classes?

๐Ÿ’ก Remember โ€ข Quantitative = numbers (age, height, score) | Qualitative = categories (colour, name, rank)
โ€ข 80% of world data is unstructured โ€” photos, videos, text
โ€ข Big Data 5 Vs: Volume, Velocity, Variety, Veracity, Value
โ€ข Overfitting = memorises training data, fails on new data (like a student who only memorises)
โ€ข Underfitting = too simple, misses patterns in both training and test data
โ€ข Train:Test split = typically 80:20 โ€” never test on training data (cheating!)
โ€ข Sufficient data = diverse, representative, correctly labelled, legally obtained
โ€ข Poor data quality = poor AI. "Garbage in, Garbage out" (GIGO)

Practice Paper โ€” T2: Data Literacy

Max Marks: 40 | Time: 1.5 Hours

Section A โ€” MCQ (1 mark ร— 10)

1. Which is an example of discrete data? 1

  • a) Temperature
  • b) Number of students โœ“
  • c) Height
  • d) Weight

2. "Blood group (A, B, AB, O)" is what type of data? 1

  • a) Continuous
  • b) Discrete
  • c) Ordinal
  • d) Nominal โœ“

3. Veracity in Big Data means: 1

  • a) Data speed
  • b) Data size
  • c) Data quality/trustworthiness โœ“
  • d) Data types

4. "1st, 2nd, 3rd place" is what type of data? 1

  • a) Nominal
  • b) Ordinal โœ“
  • c) Continuous
  • d) Discrete

5. What percentage of world's data is unstructured? 1

  • a) 20%
  • b) 40%
  • c) 60%
  • d) 80% โœ“

6. Which of these is structured data? 1

  • a) Twitter posts
  • b) Videos
  • c) SQL database โœ“
  • d) MRI scans

7. GIGO stands for: 1

  • a) Get It Go Out
  • b) Garbage In, Garbage Out โœ“
  • c) Get Input, Get Output
  • d) None

8. Data labelling is important because: 1

  • a) It makes data colourful
  • b) It provides answers for supervised learning โœ“
  • c) It removes outliers
  • d) It speeds up training

9. A bar chart that looks dramatic with a cropped Y-axis starting at 90 is an example of: 1

  • a) Good data visualisation
  • b) Misleading statistics โœ“
  • c) Normalisation
  • d) Clustering

10. Which quality dimension ensures no duplicate records? 1

  • a) Accuracy
  • b) Completeness
  • c) Uniqueness โœ“
  • d) Timeliness

Section B โ€” Short Answer (3 marks ร— 5 = 15)

11. Classify these as Structured/Unstructured: (a) School report card (b) Doctor's voice note (c) Bank transaction record (d) Instagram reel (e) Weather CSV file 3

12. Explain three ways a chart or graph can be misleading. Give examples. 3

13. What is data labelling? Who labels data and how? Give an example. 3

14. Apply all 5 V's of Big Data to WhatsApp. 3

15. Explain Relevance as a data quality dimension. Give an example where irrelevant data harmed an AI model. 3

Section C โ€” Case Study + HOTS (15 marks)

16. (Case Study) A health insurance company uses AI to set premium prices. The AI was trained on patient data from 2010. It includes: age, gender, BMI, past claims, PIN code, and social media activity. (a) What data quality issues might this dataset have? (b) Is social media activity relevant? Why/why not? (c) What bias could the PIN code introduce? (d) How should the data be improved? (e) What are the ethical concerns? 8

17. (HOTS) A student says: "AI trained on 10 million data points must be accurate!" Critically evaluate this statement. Is more data always better? 7

Topic 3: Mathematics for AI

3.1 Probability โ€” The Language of Uncertainty

๐ŸŽฒ Probability Scale โ€” From Impossible to Certain 0 Impossible 0.25 Unlikely 0.5 Even chance 0.75 Likely 1.0 Certain Sun rises in West Rain in desert Coin flip = Heads Pass exam if you study Sun rises in East

3.2 Bayes' Theorem โ€” The Core of AI Probability

๐Ÿ“ Bayes' Theorem P(A|B) = P(B|A) ร— P(A) / P(B) Where: P(A|B) = Probability of A given B has occurred
๐Ÿ“Š Worked Example โ€” Spam Filter A spam filter uses Bayes theorem. Given: 40% of emails are spam. "Lottery" appears in 80% of spam emails and only 5% of genuine emails. If an email contains "Lottery", what is P(Spam)?

โ€ข P(Spam) = 0.40, P(Not Spam) = 0.60
โ€ข P(Lottery|Spam) = 0.80, P(Lottery|Not Spam) = 0.05
โ€ข P(Lottery) = (0.80 ร— 0.40) + (0.05 ร— 0.60) = 0.32 + 0.03 = 0.35
โ€ข P(Spam|Lottery) = (0.80 ร— 0.40) / 0.35 = 0.32 / 0.35 = 91.4%

โœ… A 91.4% chance the email is spam! The filter blocks it.

3.3 Statistics โ€” Five Essential Measures

๐Ÿ“Š Statistics for AI โ€” Visual Demonstration 2 4 4 4 Mode 5 5 Median 7 9 Mean=5.0 (2+4+4+4+5+5+7+9)/8 Range = 9 - 2 = 7 Dataset: {2, 4, 4, 4, 5, 5, 7, 9}

3.4 Images as Matrices โ€” How AI Sees Images

๐Ÿ–ผ๏ธ How AI Sees an Image โ€” As a Grid of Numbers ๐Ÿ–ผ๏ธ Original Image (simple 4ร—4 example) 0 50 100 150 200 255 Y Or R G B Mg Cy 255 128 0 โ†’ AI sees as matrix Grayscale Matrix (0-255) [ [ 0, 50, 100, 150], [200, 255, 255, 200], [255, 0, 128, 64], [128, 255, 128, 0] ] 0 = Black, 255 = White RGB colour = 3 matrices stacked ๐Ÿ’ก Key Insight: A 100ร—100 colour image = 100ร—100ร—3 = 30,000 numbers! AI processes ALL these numbers to recognise it

Fig T3.1: Images as numerical matrices โ€” the foundation of Computer Vision AI

3.5 Measures of Central Tendency โ€” With Real-World Examples

๐Ÿ“ Mean, Median & Mode โ€” When to Use Each in AI ๐Ÿ“Š MEAN Average of all values Sum รท Count of values ๐Ÿ“š Exam Scores Example Scores: 70, 80, 85, 90, 75 Mean = (70+80+85+90+75)/5 = 80 marks โš ๏ธ Sensitive to outliers! If CEO earns โ‚น1 crore and 9 workers earn โ‚น20,000, Mean โ‚น1.16 lakh โ€” misleading! ๐Ÿ“ MEDIAN Middle value when sorted Sort โ†’ pick middle value ๐Ÿ’ฐ Salary Example Salaries: 20k, 22k, 25k, 28k, 1,00,000 Sort โ†’ middle value = 25k Median = โ‚น25,000 โœ… Best for skewed data! Not affected by the โ‚น1 lakh outlier. Used for house prices & income analysis ๐Ÿ† MODE Most frequently occurring Value that appears most ๐Ÿ‘Ÿ Shoe Sizes Example Sizes sold: 6,7,7,8,8,8,9,10 Size 8 appears 3 times (most) Mode = Size 8 โœ… Best for categorical data! Stock the most popular size. Used in: favourite colour, most clicked button

Fig T3.2: Three measures of central tendency โ€” each suited to different types of AI problems

3.6 Probability with Real Examples โ€” Used Everywhere in AI

๐ŸŽฒ Probability in Action โ€” 4 Real AI Examples ๐ŸŒง๏ธ Weather AI From past 100 days: 30 days had rain P(Rain) = 30/100 = 0.30 AI predicts: "30% chance of rain tomorrow" Used in Google Weather, AccuWeather forecasts ๐Ÿฅ Medical AI Out of 1000 patients: 50 had disease X P(Disease) = 50/1000 = 0.05 AI flags patient: "5% base risk โ€” needs more tests" Used in IBM Watson Health, PathAI diagnosis ๐Ÿ“ง Spam Filter Word "FREE" appears in: 80% spam, 5% real mails P(Spam|"FREE") = 94% Gmail AI decides: "Very likely spam โ€” move to spam folder" Bayes' theorem powers all email spam filters โ™Ÿ๏ธ Chess AI AlphaZero evaluates each move's probability P(win | move A) = 0.73 AI selects: "Move A has 73% win probability" Probability trees power all game-playing AI

Fig T3.3: Probability is the mathematical language AI uses to express confidence in its predictions

3.7 Why Mathematics is Essential for AI โ€” Core ML & Deep Learning

๐Ÿงฎ Mathematics โ†’ Machine Learning โ†’ Deep Learning ๐Ÿค– Math for Core ML ๐Ÿ“ Linear Algebra Matrices store & transform data. A 1000ร—20 matrix = 1000 samples, 20 features each ๐Ÿ“Š Statistics & Probability Naive Bayes classifier is 100% probability. Mean/variance used in data normalisation ๐Ÿ“‰ Calculus (Gradient Descent) Minimising loss function โ€” "how wrong is the model?" Derivatives find the downhill direction Without this math: Linear Regression, Decision Trees, SVM, K-Means โ€” none of these algorithms exist ๐Ÿง  Math for Deep Learning ๐Ÿ”ข Tensor Operations Images = 3D tensors (Hร—Wร—Channels). GPUs compute billions of tensor maths per second ๐Ÿ“ Chain Rule (Backpropagation) Calculus chain rule lets error flow backward through 100s of layers to update all weights ๐Ÿ“Š Softmax & Cross-Entropy Convert raw scores to probabilities (Softmax). Measure prediction error in classification (Cross-Entropy) Without this math: CNNs, RNNs, Transformers, GPT โ€” none of modern AI (ChatGPT, Gemini) would exist

Fig T3.4: Mathematics is the engine of AI โ€” from basic ML to the most advanced deep learning

๐Ÿ’ก Key Formulas โ€ข P(Event) = Favourable outcomes / Total outcomes
โ€ข Mean = Sum of all values รท Number of values (sensitive to outliers)
โ€ข Median = Middle value after sorting (use when data is skewed, e.g. salaries)
โ€ข Mode = Most frequently occurring value (use for categories, e.g. shoe sizes)
โ€ข Std Dev = Measure of spread from mean
โ€ข Correlation (r): +1 = perfect positive, โˆ’1 = perfect negative, 0 = no relation
โ€ข Math powers AI: Linear Algebra โ†’ data storage | Calculus โ†’ training | Probability โ†’ predictions

Practice Paper โ€” T3: Maths for AI

Max Marks: 40 | Time: 1.5 Hours

Section A โ€” MCQ (1 mark ร— 10)

1. In grayscale images, 255 represents: 1

  • a) Black
  • b) Red
  • c) White โœ“
  • d) Blue

2. What does a correlation of -0.9 indicate? 1

  • a) Strong positive correlation
  • b) No correlation
  • c) Strong negative correlation โœ“
  • d) Weak positive

3. Bayes' theorem is used in: 1

  • a) Image processing only
  • b) Spam filtering and medical diagnosis โœ“
  • c) Physical robots
  • d) None

4. For the dataset {3,3,3,5,7}, which statistical measure is DIFFERENT from median? 1

  • a) Mode (3)
  • b) Mean (4.2)
  • c) Median (3)
  • d) None โœ“ (Mode=Median=3, Mean differs)

5. A 200ร—200 pixel RGB image has how many numbers? 1

  • a) 40,000
  • b) 80,000
  • c) 120,000 โœ“
  • d) 200,000

6. P(A|B) in Bayes' theorem means: 1

  • a) P(A) and P(B) multiplied
  • b) Probability of A given B โœ“
  • c) P(A) divided by P(B)
  • d) P(B) given A

7. Standard deviation measures: 1

  • a) The centre of data
  • b) The spread of data โœ“
  • c) The most common value
  • d) The maximum value

8. If 60% of spam emails say "Win" and 2% of genuine emails say "Win", and spam is 30% of all email, P(Win|Spam)ร—P(Spam) = 1

  • a) 0.18 โœ“
  • b) 0.60
  • c) 0.02
  • d) 0.30

9. The "average" is the same as the: 1

  • a) Median
  • b) Mode
  • c) Mean โœ“
  • d) Range

10. In matrix multiplication, a 3ร—4 matrix times a 4ร—2 matrix gives: 1

  • a) 3ร—4 matrix
  • b) 4ร—2 matrix
  • c) 3ร—2 matrix โœ“
  • d) 4ร—4 matrix

Section B โ€” Calculation (15 marks)

11. Dataset: {12, 15, 15, 18, 20, 22, 25, 30}. Find: (a) Mean (b) Median (c) Mode (d) Range (e) Which average best describes this data and why? 5

12. A disease test is 90% accurate. 1% of the population has the disease. If a person tests positive, what is the probability they actually have the disease? Show full Bayes' calculation. 5

13. A 5ร—5 greyscale image has pixel values as follows: Row1=[10,20,30,20,10]. Describe what this might look like visually. If we apply a filter [[1,0,-1],[1,0,-1],[1,0,-1]] what operation is being done? 5

Section C โ€” HOTS (10 marks)

14. A school tests a COVID screening AI. Out of 1000 students: 10 actually have COVID. The AI correctly identifies 8 of them (TP=8). It also flags 50 healthy students as COVID-positive (FP=50). (a) Calculate P(Actually COVID | AI says COVID). (b) Is this AI useful for school screening? (c) What does the "base rate" problem teach us about AI in rare-disease screening? 10

Topic 4: Generative AI

4.1 What is Generative AI?

Generative AI creates new content โ€” text, images, audio, video, code โ€” that didn't exist before. Unlike traditional AI (which classifies or predicts), GenAI generates.

๐ŸŽจ Traditional AI vs Generative AI ๐Ÿ” Traditional AI Input โ†’ Process โ†’ Output ๐Ÿ“ธ Photo of dog โ†’ ๐Ÿค– โ†’ "Dog" โœ“ ๐Ÿ  House data โ†’ ๐Ÿค– โ†’ โ‚น45 lakhs ๐Ÿ“ง Email text โ†’ ๐Ÿค– โ†’ Spam/Ham CLASSIFIES or PREDICTS existing categories โœจ Generative AI Prompt โ†’ CREATE new content "Draw a blue elephant" โ†’ ๐ŸŽจ New image! "Write a poem about rain" โ†’ ๐Ÿ“ New poem! "Compose jazz music" โ†’ ๐ŸŽต New music! CREATES entirely NEW content

4.2 How Large Language Models Work

๐Ÿง  How ChatGPT Answers Your Question โ‘  Your Prompt "Explain photosynthesis" in simple terms" โ‘ก Tokenise "Explain" โ†’ 4821 "photo" โ†’ 7823 "synthesis" โ†’ 2901 โ‘ข Transformer 175 billion parameters 96 attention layers Processes context Predicts next token Repeats millions of times โ‘ฃ Decode Tokens โ†’ Words Most likely word chosen at each step โ‘ค Response "Photosynthesis is the process by which plants make food..." ๐Ÿ“š Training: Learned from 570GB of text โ€” books, Wikipedia, websites, code GPT-4 trained on ~13 trillion tokens | Training cost ~$100 million

Fig T4.1: How Large Language Models process and generate text

4.3 GAN โ€” Forger vs Detective

๐ŸŽญ GAN Training โ€” Forger vs Detective Game Round 1 ๐ŸŽจ Generator: Makes bad fake image ๐Ÿ” Discriminator: "Definitely FAKE!" Easy to detect โ†’ Round 100 ๐ŸŽจ Generator: Better fakes from feedback ๐Ÿ” Discriminator: "Hmm, 60% fake?" Getting harder โ†’ Round 10,000 ๐ŸŽจ Generator: PHOTOREALISTIC deepfakes! ๐Ÿ” Discriminator: "I can't tell anymore!" GAN converged! โ†’ ๐ŸŽญ Output: Realistic fake face, voice, or video generated!

Fig T4.2: GAN adversarial training โ€” both networks improve each other through competition

4.4 AI Hallucinations

โš ๏ธ AI Hallucinations โ€” When AI Confidently Gets It Wrong ๐Ÿ‘ค User asks: "What happened when India played Mars in the 2024 Olympics?" (completely fake event) doesn't exist! โ†’ ๐Ÿค– AI responds: "India beat Mars 3-1 in a thrilling match. Virat Kohli scored 85 runs. India won gold." 100% WRONG โ€” but sounds confident! โš ๏ธ Why Hallucinations? โ€ข LLMs predict probable words โ€ข Don't "know" facts, just patterns โ€ข No mechanism to say "I don't know" โ€ข Training data gaps โ€ข Always verify AI facts!

4.5 Generative AI vs Traditional AI โ€” Complete Comparison

โšก Generative AI vs Traditional AI โ€” Side by Side ๐ŸŽจ GENERATIVE AI ๐Ÿค– TRADITIONAL AI PURPOSE Creates NEW content (images, text, music) Makes decisions from existing data patterns INPUT Text prompt: "Draw a cat in Van Gogh style" Structured data: Email text โ†’ Spam or Not OUTPUT Brand new image, story, code, or music A label/prediction: Spam, Tumour, Price โ‚น50k EXAMPLES ChatGPT, Gemini, DALL-E, Midjourney, Suno Spam filter, Face ID, Cancer detection AI TRAINING DATA Trillions of words & billions of images Domain-specific labelled dataset (thousands)

Fig T4.3: Generative AI creates new content; Traditional AI classifies or predicts from existing data

4.6 Recent Developments in Generative AI (2022โ€“2025)

๐Ÿš€ Generative AI Timeline โ€” Major Milestones Nov 2022: ChatGPT 100M users in 2 months Feb 2023: Bing AI + Bard Search AI war begins Mar 2023: GPT-4 Multimodal (image+text) 2024: Gemini Ultra 1.5 1M token context window 2024: Sora (OpenAI Video) AI generates 60-sec HD video 2025: Agents & Reasoning AI plans multi-step tasks ๐Ÿ’ก India's response: BharatGPT, Krutrim AI (Ola), Sarvam AI โ€” building India-native language models in Hindi & regional languages

Fig T4.4: The rapid evolution of Generative AI โ€” 2022 to 2025

4.7 Ethical Concerns of Generative AI

๐ŸŽญ

Deepfakes & Misinformation

GANs create fake videos of politicians, celebrities. Used to spread false news, manipulate elections. 96% of deepfakes are non-consensual.

๐Ÿ“

Academic Dishonesty

Students use ChatGPT for homework, essays. AI-written assignments indistinguishable from human ones. Schools banning AI tools globally.

๐ŸŽจ

Copyright & Plagiarism

AI trained on artists' work without consent. Midjourney/DALL-E replicate styles. Artists suing OpenAI and Stability AI.

๐Ÿ’ผ

Job Displacement

Writers, graphic designers, call centre agents at risk. Goldman Sachs: 300M jobs may be impacted by generative AI by 2030.

๐ŸŒ

Environmental Cost

Training GPT-4 used estimated 1,000+ MWh of electricity โ€” same as 100+ households for a year. AI's carbon footprint is growing rapidly.

๐Ÿ”

Hallucination Risk

AI confidently states false "facts." Dangerous in medical, legal, scientific contexts. Users may not verify AI-generated information.

๐Ÿ’ก Key Terms โ€ข LLM = Large Language Model (GPT-4, Gemini, Claude)
โ€ข GAN = Generative Adversarial Network โ€” Generator vs Discriminator
โ€ข Diffusion Model โ€” Stable Diffusion, DALL-E โ€” removes noise to create images
โ€ข Hallucination โ€” AI confidently states false information
โ€ข Prompt Engineering โ€” crafting good inputs to get good AI outputs
โ€ข Generative AI creates NEW content; Traditional AI predicts/classifies from existing data
โ€ข Key ethical concerns: Deepfakes, copyright, academic dishonesty, job loss, hallucinations

Practice Paper โ€” T4: Generative AI

Max Marks: 40 | Time: 1.5 Hours

Section A โ€” MCQ (1 mark ร— 10)

1. ChatGPT is an example of: 1

  • a) Computer Vision AI
  • b) Large Language Model โœ“
  • c) Reinforcement Learning
  • d) Decision Tree

2. In a GAN, which network creates fake content? 1

  • a) Discriminator
  • b) Generator โœ“
  • c) Transformer
  • d) Encoder

3. AI Hallucination means: 1

  • a) AI dreaming
  • b) AI generating images
  • c) AI confidently stating false facts โœ“
  • d) AI being slow

4. Tokenisation in LLMs means: 1

  • a) Removing stop words
  • b) Breaking text into numerical units โœ“
  • c) Translating text
  • d) Summarising text

5. Diffusion models create images by: 1

  • a) Combining existing images
  • b) Starting with noise and removing it step by step โœ“
  • c) Using decision trees
  • d) Copying from the internet

6. DALL-E creates: 1

  • a) Text responses
  • b) Music
  • c) Images from text prompts โœ“
  • d) Video

7. Prompt Engineering is: 1

  • a) Building AI hardware
  • b) Crafting effective inputs to get good AI outputs โœ“
  • c) Training AI models
  • d) Cleaning data

8. LLM stands for: 1

  • a) Learning Language Module
  • b) Large Language Model โœ“
  • c) Linear Learning Machine
  • d) Logical Logic Machine

9. A GAN is considered "converged" when: 1

  • a) Generator always wins
  • b) Discriminator can't tell real from fake โœ“
  • c) Training stops
  • d) Images become blurry

10. Which application uses Generative AI? 1

  • a) Spam detection
  • b) AI-generated music โœ“
  • c) Price prediction
  • d) Customer clustering

Section B โ€” Short Answer (3 marks ร— 5 = 15)

11. Explain the difference between a GAN Generator and Discriminator with the "forger and detective" analogy. 3

12. What is an AI hallucination? Give two real examples and explain why it's dangerous. 3

13. Explain how LLMs generate text token by token. 3

14. Compare Generative AI (ChatGPT) and Traditional AI (spam filter) in terms of purpose, input, output and training. 3

15. What is a diffusion model? How is it different from a GAN? 3

Section C โ€” Case Study + HOTS (15 marks)

16. (Case Study) A news website uses AI to generate articles. The AI writes convincing fake stories about celebrity deaths and political events that never happened. (a) What AI technology is being misused? (b) What is this phenomenon called? (c) How can readers identify AI-generated fake news? (d) What are the societal harms? (e) How should this be regulated? 8

17. (HOTS) If AI can generate code, essays, music, and art better than humans, what happens to human creativity? Is this a threat or an opportunity? Argue both sides. 7

Topic 5: Neural Networks & Deep Learning

5.1 The Biological Inspiration

๐Ÿง  Biological Neuron vs Artificial Neuron ๐Ÿงฌ Biological Neuron Dendrites (receive signals) Cell Body Axon (transmit signal) Syn- apse Fires if combined signal > threshold Human brain has 86 billion neurons! โ‰ˆ ๐Ÿค– Artificial Neuron (Perceptron) xโ‚=0.8 wโ‚=0.5 xโ‚‚=0.3 wโ‚‚=0.7 xโ‚ƒ=0.9 wโ‚ƒ=0.3 Inputs โˆ‘ weighted sum f(x) ลท Activation function z = wโ‚xโ‚ + wโ‚‚xโ‚‚ + wโ‚ƒxโ‚ƒ + b = 0.94 Output ลท = sigmoid(0.94) = 0.72

Fig T5.1: Biological neuron mapped to its artificial counterpart โ€” the perceptron

5.2 Activation Functions โ€” Visual Comparison

โšก Activation Functions โ€” What They Do to a Signal Sigmoid Output: 0 to 1 Good for probability ReLU Output: 0 or positive Most popular in CNNs Softmax Cat 0.7 Dog 0.2 Bird 0.1 Outputs sum to 1.0 Used in final layer

Fig T5.2: Three key activation functions โ€” their shapes and use cases

5.3 Convolutional Neural Network (CNN) โ€” Layer by Layer

๐Ÿ–ผ๏ธ CNN Architecture โ€” Processing an Image of a Cat INPUT ๐Ÿฑ 224ร—224ร—3 (pixels ร— colour) Input image CONV 32 filters 3ร—3 kernel Detects edges, colours, patterns Feature maps ReLU Remove negatives Activation MaxPool 9 3 7 1 Take max = 9 Downsample FLATTEN 2D โ†’ 1D vector e.g. 1,024 nums DENSE Fully connected Learn combos SOFTMAX Cat: 0.92 โœ… Dog: 0.06 Bird: 0.02 Predicted: CAT Confidence: 92% โ† Backpropagation: error signal updates all weights

Fig T5.3: CNN architecture โ€” Conv โ†’ ReLU โ†’ MaxPool โ†’ Flatten โ†’ Dense โ†’ Softmax pipeline

๐Ÿ“Š Worked Example โ€” Perceptron for Diabetes Risk Inputs: xโ‚ = Blood Sugar (normalised) = 0.8, xโ‚‚ = BMI (normalised) = 0.6, xโ‚ƒ = Age (normalised) = 0.5
Weights: wโ‚ = 0.7, wโ‚‚ = 0.4, wโ‚ƒ = 0.3, bias b = -0.6

Step 1: Weighted sum z = (0.7ร—0.8) + (0.4ร—0.6) + (0.3ร—0.5) + (-0.6) = 0.56 + 0.24 + 0.15 - 0.6 = 0.35
Step 2: Apply Sigmoid: ลท = 1/(1+e^(-0.35)) = 1/(1+0.705) = 0.587
Step 3: If ลท > 0.5 โ†’ predict HIGH RISK โ†’ Patient flagged for diabetes screening โš ๏ธ

5.4 ANN Architecture โ€” Full Deep Network Diagram

๐Ÿง  Artificial Neural Network (ANN) โ€” Complete Architecture INPUT LAYER HIDDEN LAYER 1 HIDDEN LAYER 2 OUTPUT LAYER xโ‚ xโ‚‚ xโ‚ƒ xโ‚„ hโ‚ hโ‚‚ hโ‚ƒ hโ‚„ hโ‚… hโ‚† Cat0.82 Dog0.18 4 inputs: pixel values 3 neurons: detect basic patterns 3 neurons: combine complex features Final answer: 82% โ†’ Cat โœ…

Fig T5.4: Full ANN โ€” information flows left to right through interconnected layers of neurons

5.5 Forward Propagation & Backpropagation โ€” The Training Cycle

๐Ÿ”„ How a Neural Network Learns โ€” Forward + Backward Pass โžก๏ธ FORWARD PROPAGATION "Making a prediction" Step 1: Input data flows left โ†’ right through layers Step 2: Each neuron computes z = ฮฃ(wแตขxแตข) + b Step 3: Activation function applied: f(z) Step 4: Final layer produces prediction ลท Result: ลท = 0.82 (Cat) โ† but actual = 1.0 (Cat) โŒ Error = |1.0 โˆ’ 0.82| = 0.18 โ†’ Must fix! โฌ…๏ธ BACKPROPAGATION "Learning from mistakes" Step 1: Measure Loss (how wrong?) โ€” Cross-Entropy Step 2: Calculate gradient (โˆ‚Loss/โˆ‚w) using chain rule Step 3: Propagate error backward through each layer Step 4: Update weights: w = w โˆ’ ฮท ร— (โˆ‚Loss/โˆ‚w) Weights adjusted โ†’ Try again โ†’ ลท = 0.87 (better!) โœ… Repeat 1000s of times โ†’ Weights converge!

Fig T5.5: Forward propagation predicts; backpropagation corrects โ€” together they teach the network

๐Ÿ’ก Why Backpropagation is Critical
Without backpropagation, a neural network makes random predictions forever and never learns. Backprop is what makes deep learning possible โ€” it's the algorithm that tells each individual weight in a network of millions of weights exactly how much it contributed to the error and by exactly how much it should change. Geoffrey Hinton (Nobel Prize 2024) pioneered its use in neural networks in the 1980s. Modern GPT-4 has 1.76 trillion parameters โ€” all trained by backpropagation.

5.6 Neural Networks vs CPU Processing โ€” Why GPUs & Why Deep Learning?

โšก CPU vs GPU vs Neural Network โ€” How They Differ ๐Ÿ–ฅ๏ธ CPU Processing 4โ€“16 powerful cores Sequential processing One task at a time โŒ Limitation for AI: Too slow for billions of matrix multiplications needed in deep learning Train GPT: 355 years on CPU ๐ŸŽฎ GPU Processing 1000s of small cores Parallel processing Many tasks simultaneously โœ… Perfect for AI: Computes all matrix ops in parallel โ€” 1000ร— faster than CPU for neural nets Train GPT: 90 days on GPU cluster ๐Ÿง  Why NN in Deep Learning? โ€ข Learn hierarchical features (edgesโ†’shapesโ†’faces) โ€ข Handle unstructured data (images, audio, text) โ€ข Scale with more data (more data = better AI) โ€ข End-to-end learning (no manual feature work) Traditional ML can't do this!

Fig T5.6: CPU handles sequential tasks; GPU enables parallel deep learning; Neural Networks learn complex hierarchical features

๐Ÿ’ก Key Formulas โ€ข Perceptron: z = ฮฃ(wแตขxแตข) + b; output = f(z)
โ€ข Sigmoid: f(z) = 1/(1+e^(-z)) โ†’ output 0 to 1
โ€ข ReLU: f(z) = max(0, z)
โ€ข Forward Propagation: Input โ†’ compute z โ†’ apply f(z) โ†’ get prediction ลท
โ€ข Backpropagation: Measure error (Loss) โ†’ compute gradients โ†’ update weights (w = w โˆ’ ฮท ร— โˆ‚L/โˆ‚w)
โ€ข Error = Loss = how wrong AI is. Backprop minimises it over thousands of iterations
โ€ข GPU is essential for deep learning โ€” parallel processing of millions of matrix operations
โ€ข CNN: Convolution โ†’ ReLU โ†’ MaxPool โ†’ Flatten โ†’ Dense โ†’ Softmax

Practice Paper โ€” T5: Neural Networks

Max Marks: 40 | Time: 1.5 Hours

Section A โ€” MCQ (1 mark ร— 10)

1. The biological equivalent of an artificial neuron's "weights" is: 1

  • a) Dendrites
  • b) Axon
  • c) Synaptic strength โœ“
  • d) Cell body

2. Which activation function outputs values between 0 and 1? 1

  • a) ReLU
  • b) Tanh
  • c) Sigmoid โœ“
  • d) Softmax

3. Max Pooling in CNN is used to: 1

  • a) Add more layers
  • b) Reduce spatial dimensions โœ“
  • c) Increase resolution
  • d) Apply activation

4. Backpropagation is used to: 1

  • a) Add more data
  • b) Update weights using error signal โœ“
  • c) Build the network
  • d) Normalise inputs

5. In a CNN, convolution filters detect: 1

  • a) Data types
  • b) Edges, textures and patterns โœ“
  • c) Output labels
  • d) Network depth

6. The "Flatten" layer in CNN converts: 1

  • a) 1D to 2D
  • b) 2D feature maps to 1D vector โœ“
  • c) RGB to grayscale
  • d) Input to output

7. ReLU outputs: 1

  • a) -1 to +1
  • b) 0 to 1
  • c) max(0, x) โœ“
  • d) Always 0 or 1

8. A perceptron that outputs 0.73 with threshold 0.5 predicts: 1

  • a) Class 0 (negative)
  • b) Class 1 (positive) โœ“
  • c) Uncertain
  • d) Error

9. Softmax is used in the _____ layer of a classification CNN: 1

  • a) First
  • b) Middle
  • c) Last/Output โœ“
  • d) Pooling

10. "Deep" in Deep Learning refers to: 1

  • a) Large datasets
  • b) Many hidden layers โœ“
  • c) Complex maths
  • d) High accuracy

Section B โ€” Calculation + Short Answer (15 marks)

11. A perceptron has inputs xโ‚=0.5, xโ‚‚=0.8 with weights wโ‚=0.6, wโ‚‚=0.4 and bias b=-0.3. Calculate: (a) Weighted sum z (b) Sigmoid output (c) ReLU output (d) Prediction if threshold=0.5 5

12. Draw and label the 6 layers of a CNN architecture. What does each layer do? 5

13. Explain backpropagation in simple terms. Why is it important? 5

Section C โ€” HOTS + Case Study (15 marks)

14. A CNN is trained to detect tumours in X-rays. (a) What would the Input Layer look like? (b) What patterns would early Convolution layers detect? (c) What would late layers detect? (d) Why is Recall more important than Precision here? (e) What happens if the model is overtrained (overfitting)? 8

15. Compare a biological brain and a deep neural network on: number of neurons, energy consumption, learning speed, creativity, and reliability. Which is better for which tasks? 7

Topic 6: Natural Language Processing (NLP)

NLP is the branch of AI that helps computers understand, interpret, and generate human language. From chatbots to translation apps โ€” NLP is everywhere.

๐Ÿค” Why is Language Hard for Computers?
Humans understand "I saw the man with the telescope" instantly โ€” but a computer struggles because the sentence has TWO meanings (did you use the telescope, or did the man have it?). Language is ambiguous, contextual, and cultural.

1. The 7-Step NLP Pipeline

Every NLP system processes text through a series of steps. Think of it like a factory conveyor belt โ€” raw text enters one end, structured understanding comes out the other.

The 7-Step NLP Processing Pipeline Raw Input Text: "The students quickly finished their AI homework before the deadline." Step 1 Tokenisa- tion ["The","students", "quickly",โ€ฆ] Step 2 Stop Word Removal ["students","quickly", "finished","AI",โ€ฆ] Step 3 Stemming / Lemmatisation ["student","quick", "finish","AI",โ€ฆ] Step 4 POS Tagging student/NN finish/VB quickly/RB Step 5 Named Entity Recognition AI โ†’ TECH (No person/place found) Step 6 Vectori- sation [0.2, 0.8, 0.1, 0.5, 0.3, โ€ฆ] Step 7: NLP Task Sentiment / Classification / Translation Sentiment: POSITIVE (0.82) Topic: Education/AI Each step transforms raw text into a form the machine can understand and analyse

Fig 6.1 โ€” The complete NLP pipeline: raw text is progressively cleaned, tagged, and converted to numbers for ML models to process.

2. Tokenisation โ€” Splitting Text into Units

Word Tokenisation
"I love AI" โ†’ ["I", "love", "AI"] โ€” splits on spaces
Sentence Tokenisation
"Hello. How are you?" โ†’ ["Hello.", "How are you?"]
Character Tokenisation
"AI" โ†’ ["A", "I"] โ€” used in some deep learning models
Subword Tokenisation
"unhappiness" โ†’ ["un", "happi", "ness"] โ€” used in BERT, GPT

3. Stop Words โ€” The "Noise" Words

Stop words are common words that carry little meaning and are removed to reduce noise. Think of them as the "filler" words in language.

Stop Word Removal โ€” Before vs After โŒ BEFORE (12 words) "The cat sat on the mat and it was a very cute one" Stop words: The, on, the, and, it, was, a, very, one 9 of 12 words are noise! Useful words: cat, sat, mat, cute โ†’ โœ… AFTER (4 words) ["cat", "sat", "mat", "cute"] 67% size reduction! Only meaningful words remain โœ“ Faster ML processing โœ“ Better accuracy

Fig 6.2 โ€” Stop word removal reduces noise and helps models focus on meaningful content words.

4. Stemming vs Lemmatisation

Stemming vs Lemmatisation โ€” Key Differences โœ‚๏ธ Stemming (Crude, Fast) ๐Ÿ“š Lemmatisation (Accurate) running โ†’ runn running โ†’ run studies โ†’ studi studies โ†’ study better โ†’ better (unchanged) better โ†’ good (correct form!) caring โ†’ car โš ๏ธ Wrong! caring โ†’ care โœ“ Correct Stemming Properties โ€ข Cuts word endings (heuristic) โ€ข Fast but may not be real word โ€ข Algorithm: Porter Stemmer Lemmatisation Properties โ€ข Uses dictionary + grammar rules โ€ข Slower but always valid word โ€ข Tool: NLTK WordNetLemmatizer

Fig 6.3 โ€” Stemming chops word endings; lemmatisation looks up the true root form. Lemmatisation is more accurate but computationally expensive.

5. TF-IDF โ€” How Important Is a Word?

TF-IDF (Term Frequencyโ€“Inverse Document Frequency) measures how important a word is to a specific document compared to all documents.

TF-IDF Formula
TF(word) = (count of word in doc) รท (total words in doc)
IDF(word) = log(total docs รท docs containing word)
TF-IDF = TF ร— IDF
TF-IDF Worked Example โ€” 3 Documents Doc 1: "AI learns fast" (3 words) Doc 2: "AI is smart AI" (4 words) Doc 3: "Fast cars race fast" (4 words) Calculating TF-IDF for the word "AI" across all 3 documents Document TF (AI count/total) IDF (log 3/2) TF-IDF Score Doc 1 ("AI learns fast") 1/3 = 0.333 log(3/2) = 0.176 0.059 Doc 2 ("AI is smart AI") 2/4 = 0.500 log(3/2) = 0.176 0.088 โ† HIGHEST Doc 3 ("Fast cars race fast") 0/4 = 0.000 log(3/2) = 0.176 0.000 ๐Ÿ“Š Insight Doc 2 scores highest for "AI" because it appears TWICE in 4 words (50% density). Doc 3 scores zero because "AI" never appears in it.

Fig 6.4 โ€” TF-IDF rewards words that appear frequently in one document but rarely across all documents, identifying truly distinctive terms.

6. Word Embeddings โ€” Words as Vectors

Word2Vec converts words to numerical vectors so that similar words cluster together in a mathematical space. The famous example: King โˆ’ Man + Woman = Queen

Word2Vec โ€” Word Similarity in Vector Space Royalty Gender King ๐Ÿ‘‘ Queen ๐Ÿ‘‘ Man Woman +female +female -royal Prince Princess ๐Ÿ”ข Famous Analogy King โˆ’ Man + Woman = Queen โœ“ (Vectors subtracted and added like numbers) Applications โ€ข Autocomplete suggestions โ€ข Language translation โ€ข Chatbot understanding โ€ข Semantic search

Fig 6.5 โ€” In Word2Vec space, "King" and "Queen" are close (both royalty) but separated along the gender dimension. Words with similar meanings cluster together.

7. Transformers โ€” The Power Behind ChatGPT

Transformers revolutionised NLP with self-attention โ€” the ability to consider every word's relationship to every other word simultaneously.

Transformer Self-Attention โ€” Every Word Attends to Every Other Word Sentence: "The cat sat on the mat because it was tired" Attention Focus Example Which word does "it" attend to? The cat 0.82 โ† STRONG sat on mat tired "it" โ†’ most likely refers to "cat" Transformer Architecture Encoder Understands context Decoder Generates output โ€ข Multi-Head Self-Attention โ€ข Feed-Forward Networks โ€ข Layer Normalisation โ€ข Positional Encoding Built on Transformers: BERT, GPT, T5, ChatGPT, Gemini

Fig 6.6 โ€” Transformers use self-attention to understand which words relate to each other. "it" in a sentence about a tired cat correctly refers to the cat, not the mat.

8. Real-World NLP Applications

๐ŸŽญ Sentiment Analysis
Amazon reviews: "Amazing product!" โ†’ POSITIVE (0.94). Used in brand monitoring and customer feedback.
๐ŸŒ Machine Translation
Google Translate: Hindi โ†’ English โ†’ French using seq2seq transformer models.
๐Ÿค– Chatbots & Virtual Assistants
Siri, Alexa, Google Assistant use NLU (understanding) + NLG (generation).
๐Ÿ“‹ Text Summarisation
Converting a 10-page report into a 5-sentence summary automatically.
๐Ÿ” Search Engines
Google uses BERT to understand search intent beyond exact keyword matching.
๐Ÿ“ง Spam Detection
Gmail classifies millions of emails as spam/not-spam using NLP + ML.
๐Ÿ“ Key NLP Terms at a Glance
Corpus โ€” Large collection of text used for training | Token โ€” Individual unit (word/character) | Vocabulary โ€” All unique tokens in corpus | Embedding โ€” Numerical vector representation of a word | Attention โ€” Mechanism to focus on relevant parts of input | BERT โ€” Bidirectional Encoder Representations from Transformers | GPT โ€” Generative Pre-trained Transformer

Practice Paper โ€” Topic 6: Natural Language Processing

CBSE Class 9โ€“10 | Code 417 | Full Marks: 40 | Time: 1.5 hrs

Section A โ€” Multiple Choice Questions (1 mark each)

  1. Which NLP step splits text into individual words or sentences?
    (a) Stemming   (b) Tokenisation   (c) Lemmatisation   (d) NER
  2. What does TF stand for in TF-IDF?
    (a) Text Feature   (b) Total Frequency   (c) Term Frequency   (d) Token Form
  3. Which of the following is a stop word?
    (a) quantum   (b) algorithm   (c) the   (d) neural
  4. Word2Vec converts words into:
    (a) Images   (b) Numerical vectors   (c) Sentences   (d) Audio signals
  5. Transformers were introduced in the paper:
    (a) "ImageNet"   (b) "Attention is All You Need"   (c) "AlphaGo"   (d) "Deep Blue"

Section B โ€” Short Answer Questions (2 marks each)

  1. Differentiate between stemming and lemmatisation with one example each. [2]
  2. What is a "corpus" in NLP? Give one example of a well-known NLP corpus. [2]
  3. What is Named Entity Recognition (NER)? Give two examples of entity types. [2]
  4. Why are stop words removed during text preprocessing? [2]
  5. State the full form of BERT and explain in one sentence how it differs from traditional language models. [2]

Section C โ€” Long Answer Questions (5 marks each)

  1. Draw and explain the 7-step NLP pipeline. Apply each step to the sentence: "She quickly ran to the beautiful garden." [5]
  2. Explain TF-IDF with a numerical example using the following 2 documents:
    Doc1: "cat sat mat cat"   Doc2: "dog sat mat"   Calculate TF-IDF for "cat" in Doc1. [5]

Section D โ€” Case Study / HOTS (5 marks)

  1. Case Study: Riya's school is building an AI system that reads student feedback forms and automatically identifies whether feedback about each subject is positive, negative, or neutral. The system must also identify the subjects mentioned by name.
    (a) Which NLP task is being performed to identify positive/negative/neutral? (1)
    (b) Which NLP step identifies the subject names (Maths, Science etc.)? (1)
    (c) Why should common words like "the", "is", "a" be removed before analysis? (1)
    (d) Explain how TF-IDF could help identify which subject is most discussed. (2) [5]

Topic 7: Model Evaluation & Improvement

Building an AI model is only half the job. Knowing how well it works โ€” and why it fails โ€” is equally important. This topic teaches you to measure, diagnose, and improve ML models.

๐ŸŽฏ Why Evaluation Matters
A model that is 99% accurate sounds impressive โ€” until you learn it's diagnosing cancer. If it misses 1% of positive cases, those are real patients who go untreated. Choosing the right metric is as important as building the model itself.

1. The Confusion Matrix โ€” Visualising Predictions

A confusion matrix is a table that shows how many predictions were correct vs incorrect for each class. It is the foundation of classification evaluation.

Confusion Matrix โ€” COVID-19 Test Results (200 patients) PREDICTED BY MODEL ACTUAL RESULT Predicted: COVID+ Predicted: COVIDโˆ’ Actual: COVID + (90 real cases) Actual: COVID โˆ’ (110 healthy) 80 TRUE POSITIVE (Correctly detected COVID) โœ… CORRECT 10 FALSE NEGATIVE (Missed COVID cases!) โš ๏ธ DANGEROUS 15 FALSE POSITIVE (Healthy flagged as COVID) โš ๏ธ COSTLY 95 TRUE NEGATIVE (Correctly cleared healthy) โœ… CORRECT Total: 200 patients | Correct: 175 (TP+TN) | Wrong: 25 (FP+FN) | Accuracy = 87.5%

Fig 7.1 โ€” Confusion matrix for a COVID test model. The 10 false negatives (missed COVID cases) are more serious than the 15 false positives (healthy patients incorrectly flagged).

2. Evaluation Metrics โ€” Precision, Recall, F1

Core Metrics (from confusion matrix above)
Accuracy = (TP + TN) / Total = (80+95)/200 = 87.5%
Precision = TP / (TP + FP) = 80/(80+15) = 84.2% โ€” "Of all COVID+ predictions, how many were right?"
Recall (Sensitivity) = TP / (TP + FN) = 80/(80+10) = 88.9% โ€” "Of all real COVID+ cases, how many did we catch?"
F1-Score = 2 ร— (Precision ร— Recall) / (Precision + Recall) = 86.5%
When to Use Precision vs Recall ๐Ÿ“Œ Use PRECISION Whenโ€ฆ False Positives are costly ๐Ÿ“ง Spam Detection If a real email (FP) goes to spam, user misses important message! โš–๏ธ Legal Document Review Falsely flagging innocent documents wastes lawyers' expensive time! ๐Ÿ“Œ Use RECALL Whenโ€ฆ False Negatives are dangerous ๐Ÿฅ Cancer Detection Missing a real cancer case (FN) could cost the patient their life! ๐Ÿ’ณ Fraud Detection Missing a fraudulent transaction (FN) means real financial loss!

Fig 7.2 โ€” The choice between precision and recall depends on which type of error is more costly in the real-world context.

3. The Precisionโ€“Recall Trade-off

Precisionโ€“Recall Trade-off Curve Precision Recall 0 50% 100% 0 25% 50% 75% 100% Best Balance (High P, High R) HIGH PRECISION Few false positives but misses many positives HIGH RECALL Catches most positives but many false positives F1-Score Balances Both precision and recall F1 = 1.0 โ†’ Perfect F1 = 0.0 โ†’ Useless Use when class imbalance exists (e.g. 95% healthy, 5% diseased patients)

Fig 7.3 โ€” The precision-recall trade-off: increasing one typically decreases the other. F1-score finds the optimal balance point.

4. Overfitting vs Underfitting

Overfitting, Underfitting, and the Right Fit โŒ UNDERFITTING "Too simple model" Straight line misses the actual pattern Train: Low | Test: Low โœ… GOOD FIT "Just right model" Smooth curve fits the true trend Train: High | Test: High โŒ OVERFITTING "Too complex model" Zigzag memorises training noise Train: Very High | Test: Low

Fig 7.4 โ€” Underfitting models are too simple; overfitting models memorise training data but fail on new data. The goal is the right fit in the middle.

5. K-Fold Cross Validation

Instead of using a single train-test split, K-Fold uses the data K times, rotating which portion is used for testing each time. This gives a more reliable performance estimate.

5-Fold Cross Validation โ€” How It Works Full Dataset (100 samples) Fold 1: TEST TRAIN Fold 2: TEST Fold 3: TEST Fold 4: TEST Fold 5: TEST Test set (rotated each fold) Training set Final Score = Avg of 5 fold scores

Fig 7.5 โ€” In 5-Fold Cross Validation, each of the 5 equal portions takes a turn as the test set. The final accuracy is the average of all 5 test scores โ€” more reliable than a single split.

6. How to Improve a Model

Model Improvement Strategies ๐Ÿ“Š More Data Collect more training examples to reduce overfitting โš™๏ธ Tune Hyperparameters Adjust learning rate, tree depth, neurons for better results ๐Ÿ”ง Feature Engineering Create better input features from existing data columns ๐ŸŒฒ Ensemble Methods Combine multiple models (Random Forest = many decision trees voting) ๐Ÿšซ Regularisation L1/L2 penalties to reduce overfitting by simplifying model ๐Ÿ’ง Dropout (Neural Nets) Randomly deactivate neurons during training to force generalisation

Fig 7.6 โ€” Six strategies to improve model performance, categorised by whether they address data quality, model architecture, or training procedure.

7. Learning Curves โ€” Diagnosing Model Problems

Reading Learning Curves Underfitting 100% 0% Train Test Both curves low โ†’ model too simple Good Fit Converging curves โ†’ balanced model Overfitting Diverging curves โ†’ memorising noise

Fig 7.7 โ€” Learning curves plot accuracy vs training size. Underfitting: both curves low. Good fit: curves converge. Overfitting: large gap between train and test accuracy.

๐Ÿ“‹ Quick Reference: All Key Metrics
Accuracy = (TP+TN)/Total โ€” Overall correctness; misleading with imbalanced data
Precision = TP/(TP+FP) โ€” Quality of positive predictions; use when FP is costly
Recall = TP/(TP+FN) โ€” Coverage of real positives; use when FN is dangerous
F1-Score = Harmonic mean of Precision & Recall โ€” Best for imbalanced datasets
Confusion Matrix โ€” Visual table of all prediction outcomes
Cross-Validation โ€” Technique to get robust performance estimate

Practice Paper โ€” Topic 7: Model Evaluation & Improvement

CBSE Class 9โ€“10 | Code 417 | Full Marks: 40 | Time: 1.5 hrs

Section A โ€” Multiple Choice Questions (1 mark each)

  1. A model correctly identifies 80 sick patients out of 90 actual sick patients. What is the Recall?
    (a) 80%   (b) 88.9%   (c) 84.2%   (d) 90%
  2. Which cell in a confusion matrix represents a healthy person incorrectly labelled as sick?
    (a) True Positive   (b) True Negative   (c) False Positive   (d) False Negative
  3. Overfitting occurs when:
    (a) Model is too simple   (b) Model memorises training data   (c) Training accuracy is low   (d) Test data is too large
  4. K-Fold Cross Validation uses the data:
    (a) Once   (b) K times   (c) Kยฒ times   (d) Only for testing
  5. The F1-Score is the harmonic mean of:
    (a) Accuracy and Recall   (b) Precision and Accuracy   (c) Precision and Recall   (d) Recall and Specificity

Section B โ€” Short Answer Questions (2 marks each)

  1. What is underfitting? Give one way to fix it. [2]
  2. Define Precision and state one real-world scenario where it is the most important metric. [2]
  3. Why is a confusion matrix more informative than accuracy alone? [2]
  4. What is regularisation? Name the two common types. [2]
  5. Explain with a diagram what a learning curve shows. [2]

Section C โ€” Long Answer Questions (5 marks each)

  1. A spam detection model was tested on 500 emails:
    TP = 140, FP = 20, FN = 10, TN = 330
    Calculate: (a) Accuracy (b) Precision (c) Recall (d) F1-Score
    Which metric is most important for spam detection? Justify. [5]
  2. Explain 5-fold cross validation with a neat diagram. Why is it preferred over a single train-test split? [5]

Section D โ€” Case Study / HOTS (5 marks)

  1. Case Study: A hospital built an AI model to detect diabetic retinopathy (eye disease) from retina scans. The model achieves 97% accuracy โ€” but the hospital finds it is almost never predicting the disease.
    (a) Why can a model with 97% accuracy still be bad? (1)
    (b) What problem does this indicate โ€” overfitting or class imbalance? (1)
    (c) Which metric should the hospital prioritise: Precision or Recall? Why? (2)
    (d) Suggest one technique to improve the model's performance on rare positive cases. (1) [5]

Topic 8: Computer Vision (CV)

Computer Vision teaches machines to see and interpret images and videos โ€” enabling self-driving cars, face recognition, medical imaging, and much more.

๐Ÿค” How Do Computers "See"?
A digital image is simply a 2D grid of numbers. Each number (0โ€“255) represents the brightness of one pixel. A 640ร—480 colour image = 640 ร— 480 ร— 3 = 921,600 numbers. Computer Vision is the art of finding patterns in these numbers.

1. Images as Numbers โ€” Pixels and Matrices

How a Computer Sees an Image ๐Ÿ“ท Original Image โ†’ ๐Ÿ”ข Computer Sees Numbers (0โ€“255) 20 200 205 210 15 โ† row 1 195 18 22 10 198 190 100 8 98 192 188 12 220 15 185 200 205 210 198 202 5ร—5 grayscale grid (simplified) Colour Image = 3 matrices stacked: ๐Ÿ”ด Red Channel + ๐ŸŸข Green Channel + ๐Ÿ”ต Blue Channel = Full colour image (RGB)

Fig 8.1 โ€” Every digital image is a matrix of numbers. Dark pixels have low values (near 0); bright pixels have high values (near 255). Colour images use three separate matrices.

2. Convolution โ€” How CNNs Detect Features

A convolutional filter (kernel) slides across an image, multiplying its values with the pixels it covers and summing the result. Different filters detect different features โ€” edges, curves, textures.

Convolution Operation โ€” Edge Detection Filter 5ร—5 Input Image 10 10 10 200 200 10 10 10 200 200 10 10 10 200 10 โ† filter position 3ร—3 Edge Filter -1 0 +1 -2 0 +2 -1 0 +1 ร— = ๐Ÿ“Š Calculation (-1ร—10) + (0ร—10) + (+1ร—200) (-2ร—10) + (0ร—10) + (+2ร—200) (-1ร—10) + (0ร—10) + (+1ร—10) = (-10+200) + (-20+400) + (-10+10) = 190 + 380 + 0 = 570 โ†‘ Large value = STRONG EDGE detected! (Values near 0 = flat region, no edge) Types of Filters/Kernels: Edge Detection (Sobel) | Blur (Average) | Sharpen | Emboss | Custom (learned by CNN)

Fig 8.2 โ€” A Sobel edge filter multiplies pixel values and sums them. Where dark and bright pixels are adjacent (an edge), the output is large; in flat regions, it is near zero.

3. CNN Architecture โ€” Layer by Layer

CNN Architecture for Image Classification INPUT IMAGE 224ร—224ร—3 (RGB colour) CONV LAYER + ReLU 32 filters of 3ร—3 detect Edges, Curves Textures Output: 222ร—222ร—32 MAX POOL 2ร—2, stride 2 9 Keeps largest value in each 2ร—2 region CONV + POOL (Deeper layers) โŠ• 64 filters detect Shapes, Patterns Object Parts Output: 55ร—55ร—64 FLATTEN 1D 3Dโ†’1D vector DENSE LAYERS Learns high-level combinations SOFTMAX OUTPUT Cat: 92% Dog: 5% Bird: 3% โ†’ CAT โœ“ โ† Backpropagation adjusts filter weights during training

Fig 8.3 โ€” A full CNN pipeline: convolution detects features, pooling reduces dimensions, dense layers classify. Backpropagation trains the filters automatically.

4. Computer Vision Applications

Real-World Computer Vision Applications ๐Ÿš— Self-Driving Cars Detects lanes, pedestrians, traffic signs Tesla, Waymo ๐Ÿฅ Medical Imaging X-ray & MRI analysis, tumour detection 98% accuracy ๐Ÿ‘ค Face Recognition Unlock phones, attendance, security Face ID ๐Ÿ›’ Retail & Inventory Barcode-free checkout, shelf stock detection Amazon Go ๐ŸŒพ Agriculture Crop disease detection from drone images Drone vision ๐Ÿ“ฆ Quality Control Defect detection in manufacturing lines Industry 4.0

Fig 8.4 โ€” Computer Vision has transformed industries from healthcare to agriculture. The same CNN architecture underlies all these applications.

5. RGB Channels โ€” How Colour Images Work

๐ŸŽจ RGB Channels โ€” Colour Images are 3 Stacked Matrices ๐ŸŒ… Colour Image 640 ร— 480 px ๐Ÿ”ด RED Channel 640 ร— 480 matrix Values 0โ€“255: How red each pixel is ๐ŸŸข GREEN Channel 640 ร— 480 matrix Values 0โ€“255: How green each pixel is ๐Ÿ”ต BLUE Channel 640 ร— 480 matrix Values 0โ€“255: How blue each pixel is + 3D Tensor 640 ร— 480 ร— 3 = 921,600 values This is what the CNN receives as input Colour Mixing: R:255 G:0 B:0 = R:0 G:255 B:0 = R:255 G:255 B:0= R:255 G:255 B:255= Grayscale? Only 1 channel 640 ร— 480 ร— 1 No colour info Used in: X-rays, fingerprints, OCR

Fig 8.5: RGB = 3 stacked matrices. A colour image is a 3D tensor (H ร— W ร— 3) โ€” this is the input to every CNN

6. Object Classification vs Detection vs Segmentation

๐ŸŽฏ Three Levels of Computer Vision Understanding ๐Ÿ“‹ CLASSIFICATION "What is in this image?" ๐Ÿ• โ†’ "Dog" (97.3% confident) Used in: Google Lens, Face ID ๐Ÿ” DETECTION "WHERE are objects?" Dog 94% ๐Ÿ• Cat 89% ๐Ÿฑ โ†’ Bounding boxes + labels YOLO, R-CNN โ€” self-driving cars โœ‚๏ธ SEGMENTATION "WHICH pixels?" ๐Ÿ• ๐Ÿฑ โ†’ Pixel-level mask per class U-Net โ€” surgical robots, cancer

Fig 8.6: Three levels of CV โ€” Classification answers "what", Detection answers "what and where", Segmentation answers "exactly which pixels"

7. Computer Vision in Healthcare & Agriculture

๐ŸŒพ๐Ÿฅ Computer Vision โ€” Transforming Healthcare & Agriculture in India ๐Ÿฅ HEALTHCARE ๐Ÿ”ฌ Cancer Detection CNN analyses X-ray/MRI 96% accuracy (PathAI) Detects tumours 6ร— faster ๐Ÿ‘๏ธ Eye Disease AI Google DeepMind: detects 50 eye conditions from scans Used in Moorfields Hospital ๐Ÿฆ  Skin Lesion AI Stanford AI: identifies malignant melanoma As accurately as dermatologist ๐Ÿค– Surgical Robots da Vinci robot uses CV for real-time precision 0.5mm accuracy in surgery ๐ŸŒพ AGRICULTURE ๐ŸŒฟ Crop Disease AI PlantVillage: 87% accuracy Detects 26 crop diseases Farmer photos leaf on mobile ๐Ÿ›ฐ๏ธ Satellite Analysis SatSure (India): yield prediction from satellite CV Serves 5M+ farmers in India ๐Ÿšœ Smart Harvesting CV robots detect ripeness and pick only ripe fruit 30% less food waste ๐Ÿ’ง Irrigation AI Soil moisture from drone CV โ†’ precise watering 40% water saving (Israel)

Fig 8.7: Computer Vision in Healthcare and Agriculture โ€” two sectors where CV is saving lives and transforming food security

๐Ÿ”‘ Key CV Terms
Pixel โ€” Smallest unit of a digital image | RGB โ€” 3 channels (Red, Green, Blue) forming a 3D tensor (H ร— W ร— 3) | Convolution โ€” Feature extraction operation using a sliding filter | Filter/Kernel โ€” Small matrix that detects specific patterns | Feature Map โ€” Output of a convolution layer showing where features were detected | MaxPooling โ€” Downsampling by keeping the maximum value in each region
Classification โ€” "What is this?" (one label per image) | Detection โ€” "What and WHERE?" (bounding boxes, YOLO) | Segmentation โ€” "Which exact pixels?" (pixel-level masks, U-Net)

Practice Paper โ€” Topic 8: Computer Vision

CBSE Class 9โ€“10 | Code 417 | Full Marks: 40 | Time: 1.5 hrs

Section A โ€” MCQ (1 mark each)

  1. A 100ร—100 grayscale image contains how many pixels?
    (a) 100   (b) 1,000   (c) 10,000   (d) 30,000
  2. In a CNN, which layer reduces the spatial dimensions of a feature map?
    (a) Convolutional   (b) MaxPooling   (c) Flatten   (d) Softmax
  3. What does a Sobel filter detect?
    (a) Colour   (b) Brightness   (c) Edges   (d) Faces
  4. The final layer of an image classifier typically uses which activation function?
    (a) ReLU   (b) Sigmoid   (c) Softmax   (d) Tanh
  5. RGB stands for:
    (a) Red Green Blue   (b) Random Gradient Boost   (c) Recurrent Gradient Backprop   (d) Radiant Graded Brightness

Section B โ€” Short Answer (2 marks each)

  1. What is a pixel? How is a grayscale image different from a colour image in terms of data representation? [2]
  2. Explain what happens in the MaxPooling layer of a CNN. [2]
  3. What is the difference between image classification and object detection? [2]
  4. Why do CNNs use multiple convolutional layers? What does each layer detect? [2]
  5. Name two real-world applications of computer vision in healthcare. [2]

Section C โ€” Long Answer (5 marks each)

  1. Draw and explain the complete CNN architecture for classifying images into cat/dog/bird. Include at least 5 distinct layers. [5]
  2. A 4ร—4 image patch has values: [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]. Apply a 2ร—2 MaxPooling with stride 2. Show the resulting output matrix. [5]

Section D โ€” Case Study (5 marks)

  1. A hospital uses AI to detect diabetic retinopathy from eye scan images. The system analyses 256ร—256 pixel images.
    (a) How many pixel values does one grayscale 256ร—256 image contain? (1)
    (b) What type of neural network is best for this image analysis task? (1)
    (c) What features might the early convolutional layers detect in the eye scan? (2)
    (d) Why is it important the training dataset includes images from diverse patients? (1) [5]

Topic 9: Deep Learning

Deep Learning is a subfield of ML that uses multi-layered neural networks โ€” "deep" refers to the many layers these networks have โ€” enabling breakthrough results in vision, language, and beyond.

Where Deep Learning Fits Artificial Intelligence (AI) Any technique that enables machines to mimic human intelligence Machine Learning (ML) Systems that learn from data (Decision Trees, SVM, Random Forestโ€ฆ) Deep Learning (DL) Multi-layer neural networks that learn hierarchical representations (CNN, RNN, LSTM, Transformer, GAN, Diffusion Modelsโ€ฆ)

Fig 9.1 โ€” Deep Learning is a specialised subset of ML, which is itself a subset of AI. All deep learning is ML, but not all ML is deep learning.

1. Deep Learning Architecture Timeline

Key Deep Learning Architectures โ€” Timeline 1998 โ€” LeNet First CNN digit recognition 2012 โ€” AlexNet Won ImageNet, GPU revolution 2015 โ€” ResNet Skip connections, 152 layers deep 2017 โ€” Transformer "Attention is all you need" 2022+ โ€” GPT/Gemini Large Language Models (LLMs)

Fig 9.2 โ€” The progression of deep learning architectures from simple CNNs to modern billion-parameter language models.

2. Recurrent Neural Networks (RNNs) โ€” For Sequential Data

RNN โ€” Processing a Sentence Word by Word Predicting next word: "The students studied hard for their ___" RNN Cell t=1 "The" RNN Cell t=2 "students" RNN Cell t=3 "studied" โ€ฆ RNN Cell t=7 "their" hโ‚ hโ‚‚ Prediction: "exam" ๐ŸŽฏ (or "tests") LSTM (Long Short-Term Memory) โ€” Solves RNN's Memory Problem RNNs forget early words in long sequences. LSTM adds special "gates" (Forget Gate, Input Gate, Output Gate) to decide what to remember and what to discard โ€” essential for long documents, speech recognition, translation.

Fig 9.3 โ€” RNNs pass a "hidden state" (memory) between time steps, allowing the network to consider context from earlier words when making predictions.

3. ResNet โ€” Skip Connections Solve the Vanishing Gradient

ResNet Skip Connection โ€” Learning the Residual โŒ Plain Network (Deep โ†’ Degraded) Input x Layer 1: H(x) Layer 2: H(H(x)) Gradients vanish in deep networks! โœ… ResNet โ€” Skip Connection Input x Layer: F(x) Skip x added F(x)+x Residual learning! Gradients flow directly through skip path

Fig 9.4 โ€” ResNet's skip connections add the original input x directly to the layer output F(x), creating a "shortcut" for gradients to flow backward, enabling training of 100+ layer networks.

4. Deep Learning vs Traditional ML

Traditional ML

Feature engineering required by humans โ€” expert must choose which features matter

Works well with small-medium datasets (hundreds to thousands of examples)

Interpretable โ€” decision tree shows exactly why a decision was made

Algorithms: Decision Trees, SVM, k-NN, Naรฏve Bayes, Linear Regression

Fast to train on standard hardware (CPU)

Deep Learning

Automatic feature extraction โ€” network learns what to look for from raw data

Needs large datasets (millions of examples) to outperform traditional ML

Black box โ€” hard to explain why the network made a decision (XAI research)

Architectures: CNN, RNN, LSTM, Transformer, GAN, Diffusion

Requires GPU โ€” training ResNet-50 takes hours even on powerful GPU

๐Ÿ“Œ Deep Learning Key Numbers to Remember
GPT-3 has 175 billion parameters | GPT-4 estimated ~1.8 trillion | ResNet-50 has 50 layers | AlexNet (2012) won ImageNet with 15.3% error โ€” humans were at ~5% | Today's models achieve <2% error | ImageNet has 14 million images across 1,000 categories

Practice Paper โ€” Topic 9: Deep Learning

CBSE Class 9โ€“10 | Code 417 | Full Marks: 40 | Time: 1.5 hrs

Section A โ€” MCQ (1 mark each)

  1. What does "deep" in Deep Learning refer to?
    (a) The depth of data   (b) The number of hidden layers   (c) The difficulty of tasks   (d) The depth of the hardware
  2. RNNs are most suitable for:
    (a) Image classification   (b) Sequential data like text and speech   (c) Tabular data   (d) Object detection
  3. What is the main innovation in ResNet?
    (a) Dropout   (b) Skip connections   (c) Attention mechanism   (d) Batch normalisation
  4. LSTM stands for:
    (a) Large Scale Training Model   (b) Layered Sequential Training Machine   (c) Long Short-Term Memory   (d) Linear Static Temporal Model
  5. Which architecture is the foundation of ChatGPT?
    (a) CNN   (b) RNN   (c) Transformer   (d) LSTM

Section B โ€” Short Answer (2 marks each)

  1. What is the vanishing gradient problem? Which architecture solves it and how? [2]
  2. What is the difference between an RNN and an LSTM? Why is LSTM preferred for long sequences? [2]
  3. List three advantages of deep learning over traditional machine learning. [2]
  4. What is transfer learning? Give one example of its use. [2]
  5. Why does deep learning require large datasets and GPUs? [2]

Section C โ€” Long Answer (5 marks each)

  1. Draw and explain the general architecture of a deep neural network. Include input layer, hidden layers, and output layer. Explain the role of activation functions at each stage. [5]
  2. Compare Deep Learning and Traditional ML under 5 different criteria using a table. [5]

Section D โ€” Case Study (5 marks)

  1. A tech company wants to build a voice assistant that understands spoken Hindi and responds in English. The system must understand full sentences and maintain context across a conversation.
    (a) Which type of neural network handles sequential audio input? (1)
    (b) Why is LSTM preferred over a basic RNN for long conversations? (1)
    (c) Which architecture would handle the translation from Hindi to English? (1)
    (d) What is "fine-tuning" and how could a pre-trained model help reduce training time? (2) [5]

Topic 10: Introduction to Data Science

Data Science is the discipline of extracting insights from data using statistics, programming, and domain expertise. It is the fuel that powers all of AI and ML.

The Data Science Venn Diagram Statistics & Maths Programming & CS Skills Domain Expertise Machine Learning Research Data Engineering DATA SCIENCE

Fig 10.1 โ€” Data Science sits at the intersection of three skills: mathematical thinking, programming ability, and knowledge of the application domain (healthcare, finance, education, etc.).

1. The Data Science Workflow

6-Step Data Science Workflow (CRISP-DM Framework) 1. Business Understand Define the problem & goals clearly 2. Data Collection Surveys, APIs, databases, web scraping 3. Data Cleaning Handle nulls, duplicates, outliers 4. EDA & Visualise Charts, stats, find patterns & correlations 5. Model Build & Test Train ML/DL model, evaluate metrics 6. Deploy & Monitor API/Web app, watch for drift, retrain as needed โ† Iterative process: findings at any step may require going back

Fig 10.2 โ€” The CRISP-DM (Cross-Industry Standard Process for Data Mining) framework is the industry-standard data science workflow. It is iterative โ€” new insights often require revisiting earlier steps.

2. Python Data Science Tools

Python Data Science Ecosystem ๐Ÿผ Pandas Data tables (DataFrames) โ€ข Load CSV/Excel โ€ข Filter rows โ€ข Group & aggregate โ€ข Handle nulls import pandas as pd ๐Ÿ”ข NumPy Numerical computing โ€ข Fast arrays โ€ข Matrix ops โ€ข Linear algebra โ€ข Random numbers import numpy as np ๐Ÿ“Š Matplotlib Visualisation โ€ข Line, bar charts โ€ข Scatter plots โ€ข Heatmaps โ€ข Histograms import matplotlib.pyplot ๐Ÿค– Scikit-learn ML algorithms โ€ข Classification โ€ข Regression โ€ข Clustering โ€ข Preprocessing from sklearn importโ€ฆ ๐Ÿ”ฅ TensorFlow/ PyTorch Deep learning โ€ข Build neural nets โ€ข GPU training โ€ข Auto-gradient โ€ข Pre-trained models import tensorflow as tf

Fig 10.3 โ€” The Python data science stack: Pandas for data manipulation, NumPy for maths, Matplotlib for charts, Scikit-learn for classical ML, and TensorFlow/PyTorch for deep learning.

3. Choosing the Right Visualisation

When to Use Which Chart Type ๐Ÿ“Š Bar Chart Compare categories Use: Sales by region, scores by class ๐Ÿ“ˆ Line Chart Show trends over time Use: Stock prices, temperature over months โšฌโšฌ Scatter Plot Show relationships Use: Height vs weight, study hrs vs marks ๐Ÿฅง Pie Chart Show proportions Use: Market share, budget allocation

Fig 10.4 โ€” Choosing the right chart type is crucial. Bar charts compare categories, line charts show trends, scatter plots show correlations, and pie charts show proportions.

4. Data Science Career Roles

๐Ÿ“Š Data Analyst
Collects and analyses data, creates dashboards and reports. Tools: Excel, SQL, Power BI, Tableau.
๐Ÿ”ฌ Data Scientist
Builds predictive models, applies ML. Tools: Python, R, Scikit-learn, Jupyter.
โš™๏ธ ML Engineer
Deploys models to production, builds ML pipelines. Tools: TensorFlow, Docker, Kubernetes, MLflow.
๐Ÿ—๏ธ Data Engineer
Builds data pipelines, manages warehouses. Tools: Spark, Hadoop, AWS, Airflow.
๐ŸŽจ AI/ML Researcher
Develops new algorithms and architectures. Background: PhD in CS/Math.
๐Ÿ—ฃ๏ธ BI Developer
Business Intelligence โ€” translates data insights into business decisions. Tools: SQL, Power BI, Tableau.

5. Data Science Real-World Impact

Data Science Impact โ€” By the Numbers 95% of Netflix shows watched via data- driven recommendations ๐Ÿ“บ Netflix 94% fraud detection accuracy achieved by ML models ๐Ÿ’ณ Banking 2.5EB data created every single day (2.5 exabytes = 2.5ร—10ยนโธ) ๐ŸŒ Internet 11.5M data science jobs projected worldwide by 2026 ๐Ÿ’ผ Global Jobs

Fig 10.5 โ€” Data Science is one of the fastest-growing and highest-paid fields globally, with applications across every industry.

๐ŸŽ“ Data Science Quick Summary
Data Science = Statistics + Programming + Domain Knowledge | Core Python tools: Pandas, NumPy, Matplotlib, Scikit-learn | CRISP-DM has 6 phases: Business โ†’ Data โ†’ Clean โ†’ Explore โ†’ Model โ†’ Deploy | EDA (Exploratory Data Analysis) always comes before modelling | Good data scientist = 80% cleaning data, 20% modelling | "Data is the new oil" โ€” but raw data needs refining to be useful

Practice Paper โ€” Topic 10: Introduction to Data Science

CBSE Class 9โ€“10 | Code 417 | Full Marks: 40 | Time: 1.5 hrs

Section A โ€” MCQ (1 mark each)

  1. Which Python library is primarily used for data manipulation and analysis?
    (a) NumPy   (b) Matplotlib   (c) Pandas   (d) TensorFlow
  2. What does EDA stand for?
    (a) Estimated Data Analysis   (b) Exploratory Data Analysis   (c) Extended Data Attributes   (d) External Data Analytics
  3. The CRISP-DM framework has how many phases?
    (a) 3   (b) 4   (c) 6   (d) 8
  4. Which chart type is best for showing trends over time?
    (a) Bar chart   (b) Pie chart   (c) Line chart   (d) Scatter plot
  5. Data Science sits at the intersection of Statistics, Programming, and:
    (a) Ethics   (b) Hardware Knowledge   (c) Domain Expertise   (d) Networking

Section B โ€” Short Answer (2 marks each)

  1. What is EDA? Why is it performed before building an ML model? [2]
  2. Differentiate between a Data Analyst and a Data Scientist. [2]
  3. What is the purpose of data cleaning? Name two common data quality issues. [2]
  4. What does the scatter plot reveal about the relationship between two variables? [2]
  5. Name two Python libraries used for machine learning and state one function of each. [2]

Section C โ€” Long Answer (5 marks each)

  1. Draw and explain all 6 phases of the CRISP-DM data science workflow. Apply the framework to a scenario: "A school wants to predict which students are likely to fail their final exam." [5]
  2. A dataset of student exam scores contains the following issues: (a) 3 missing values in the "Marks" column, (b) One student listed as age "250", (c) Two duplicate rows. Describe how you would clean this data. Which pandas functions would you use? [5]

Section D โ€” Case Study (5 marks)

  1. Zomato (a food delivery app) collects data from: millions of restaurant orders, customer ratings, delivery times, and location data. They want to use Data Science to improve delivery time predictions.
    (a) What type of ML problem is "predicting delivery time"? (1)
    (b) List two features (input variables) that would help predict delivery time. (1)
    (c) What chart would best show delivery time distribution across different time slots? (1)
    (d) After deploying the model, delivery time predictions start becoming inaccurate after 3 months. What might cause this? What should Zomato do? (2) [5]
๐Ÿ† Achievement unlocked!
Advertisement
Advertisement