AI Logic School

Empowering Students with AI & Computational Thinking

CBSE नया AI & CT Curriculum 2026-27 | Class 3 से 12 तक पूरी जानकारी | AI Logic School

🚨 बड़ी खबर | Big Update

CBSE का नया AI & CT Curriculum 2026-27
CBSE New AI & Computational Thinking Curriculum 2026-27

Class 3 से Class 12 तक — सभी के लिए AI की पढ़ाई अब अनिवार्य
AI Education made mandatory from Class 3 to Class 12 for all schools

🗓️ Session 2026-27 | Official CBSE Update

मुख्य बदलाव | Key Changes

🎓

Class 3 से AI शुरू

Class 3 से AI की पढ़ाई

CBSE has launched AI & CT curriculum starting from Class 3 — the earliest integration of AI education in India's school history.

CBSE ने Class 3 से AI curriculum शुरू किया — यह भारत के स्कूल इतिहास में सबसे पहले AI की पढ़ाई है।

📋

Compulsory Module (Class 9-10)

Class 9-10 में अनिवार्य

CT/AI is now a compulsory module for Classes 9-10 — not just an elective. It formally enters the board examination framework.

Class 9-10 में CT/AI अब अनिवार्य विषय है — अब यह सिर्फ optional नहीं रहा। Board exam में शामिल।

🏫

Theme: "AI for Education"

थीम: "शिक्षा में AI"

The curriculum is themed "AI for Education, AI in Education" — launched by Union Education Minister Dharmendra Pradhan.

Curriculum की थीम "AI for Education, AI in Education" है — केंद्रीय शिक्षा मंत्री धर्मेंद्र प्रधान ने लॉन्च किया।

💻

Class 11-12: AI Elective

Class 11-12 में AI विषय

AI remains a specialised elective in Classes 11-12 (Subject Code 843) with updated syllabus and Generative AI added.

Class 11-12 में AI एक विशेष elective विषय है (Subject Code 843) — Generative AI नया जोड़ा गया।

Class-wise Breakdown | कक्षा-वार जानकारी

Class / कक्षा What is Taught / क्या पढ़ाया जाएगा How / कैसे Status
Class 3–5
कक्षा 3–5
Computational Thinking through Maths, Languages & EVS
गणित, भाषा और EVS के जरिए CT
Puzzles, Games, Storytelling
पहेलियाँ, खेल, कहानियाँ
NEW 2026-27
Class 6–8
कक्षा 6–8
Foundational AI concepts + Computational Thinking
AI की basic जानकारी + CT
Activity-based, Cross-subject
गतिविधि आधारित, सभी विषयों में
NEW 2026-27
Class 9–10
कक्षा 9–10
AI Project Cycle, CV, NLP, Data Science, Python
AI Project Cycle, CV, NLP, Data Science, Python
Theory + Practical (50+50)
Theory + Practical
COMPULSORY
Class 11–12
कक्षा 11–12
Python, Data Science, Neural Networks, Generative AI, Orange Tool
Python, Data Science, Neural Networks, Gen AI
Theory + Practical (50+50), Capstone Project
Theory + Practical + Capstone Project
ELECTIVE 843

Students क्या सीखेंगे | What Students Will Learn

🧩

Logical Reasoning

तार्किक सोच

Think step-by-step to solve problems systematically

🔍

Pattern Recognition

पैटर्न पहचान

Find similarities and patterns in data and problems

🤖

AI Basics

AI की बुनियादी जानकारी

Understand how AI works in real life — phones, apps, robots

🐍

Python Programming

Python प्रोग्रामिंग

Code in Python for data science and AI projects

⚖️

AI Ethics

AI की नैतिकता

Responsible and ethical use of AI technology

📊

Data Literacy

Data को समझना

Read, analyse and visualise data to make decisions

Timeline of CBSE AI Updates | CBSE AI बदलावों की Timeline

2019–20
AI introduced as optional skill subject (Class 8-10)
AI को Class 8-10 में optional skill subject के रूप में शुरू किया
15-hour module added to curriculum. Subject Code 417 introduced for Class 9-10.
2021–22
AI Subject Code 843 for Class 11-12
Class 11-12 के लिए Subject Code 843 शुरू
Full 100-mark AI subject (50 Theory + 50 Practical) introduced for senior secondary students.
2025–26
Updated syllabus — Generative AI added to Class 12
Updated syllabus — Class 12 में Generative AI जोड़ा गया
Unit 7: Generative AI (Gemini API, ChatGPT, LLMs) added to Class 12 Subject Code 843. Supplement released for Class 10.
2026–27 🆕
BIGGEST UPDATE — AI & CT for Class 3 to 8
सबसे बड़ा बदलाव — Class 3 से 8 के लिए AI & CT
Launched by Union Education Minister. CT integrated into all subjects from Class 3. Foundational AI introduced in Class 6-8. CT/AI becomes compulsory in Class 9-10 board framework.

👩‍🏫 Teachers के लिए जरूरी जानकारी | Important for Teachers

Training and Resources — प्रशिक्षण और संसाधन
  • Class 3–5: Maths and subject teachers will handle CT components Class 3–5: गणित और subject teachers CT पढ़ाएंगे
  • Class 6–8: Teachers from different disciplines will collaborate to integrate AI & CT Class 6–8: अलग-अलग विषयों के teachers मिलकर AI & CT पढ़ाएंगे
  • Class 9–12: Computer Science teachers will lead AI instruction Class 9–12: Computer Science teachers AI की पढ़ाई करवाएंगे
  • Teacher training available through NISHTHA and partner institutions NISHTHA और partner institutions के through teacher training मिलेगी
  • Study materials available on DIKSHA platform — free of cost Study material DIKSHA platform पर मुफ्त में उपलब्ध होगा
ℹ️

NEP 2020 Alignment: This curriculum is developed in alignment with the National Education Policy 2020 and NCF-SE 2023. It promotes interdisciplinary learning — linking AI with Mathematics, Science and Humanities. For schools without digital infrastructure, "unplugged learning" activities are provided that teach AI concepts without computers or internet.

यह curriculum NEP 2020 और NCF-SE 2023 के अनुसार बनाया गया है। जिन schools में computer या internet नहीं है, उनके लिए "unplugged learning" activities दी जाएंगी जिनमें बिना computer के AI सिखाया जाएगा।

Class 12 में क्या नया है 2025-26 | What's New in Class 12

Unit 7: Generative AI (NEW)

Generative AI — नया Unit

ChatGPT, Gemini API, LLMs, Prompt Engineering, Canva AI, Animaker — all added to Class 12 syllabus.

ChatGPT, Gemini API, LLMs, Prompt Engineering — ये सब Class 12 syllabus में जोड़े गए।

🍊

Orange Data Mining Tool

Orange Tool — Practical में

Orange Tool for no-code AI — Classification, NLP, Word Cloud, Image Analytics now in practical file (min 3 programs).

Orange Tool से बिना code के AI — Classification, NLP — practical file में minimum 3 programs जरूरी।

🌍

Capstone Project — SDG Aligned

Capstone Project — SDG से जुड़ा

Group project (3-5 students) must address a UN Sustainable Development Goal. 3-minute video + documentation required.

Group project (3-5 students) किसी UN SDG से जुड़ा होना चाहिए। 3-minute video + documentation जरूरी।

📖

Data Storytelling — Unit 8

Data Storytelling — नया Unit 8

Freytag's Pyramid structure for data stories. MDMS case study is the mandatory CBSE sample for practical file.

Data story के लिए Freytag's Pyramid। MDMS case study — practical file के लिए CBSE का अनिवार्य sample।

📚 AI Logic School पर सब कुछ मिलेगा | Find everything on AI Logic School

Class 3 to 12 — Notes, Python Programs, MCQs, Projects — Free

📖 Study Now ✈️ Join Telegram

CBSE AI Project — Image Recognition with Python 2025-26 | Class 10 & 12 | OpenCV MobileNet | Code 417 & 843

🤖 AI Project #1 — AI Logic School

Image Recognition
with Python & AI

Build a real AI system that detects and identifies objects in images — step by step, with full working code. For CBSE Class 10 and Class 12.

Class 10 — Beginner Class 12 — Advanced Python · OpenCV · MobileNet CBSE Code 417 & 843
CBSE AI Project | Class 10 (Code 417) & Class 12 (Code 843) | Session 2025-26
This AI project covers Image Recognition using Python, OpenCV and MobileNet neural network. Two versions — beginner (Class 10) and advanced (Class 12) — both with full working code and line-by-line explanation.
// concept

What is Image Recognition?

Image recognition is the ability of a computer to identify objects, people, places, or actions in images using Artificial Intelligence. It is one of the most powerful and widely used AI applications in the world today.

In CBSE AI curriculum (Code 417 and 843), image recognition is a key topic in the Computer Vision unit. Building this project demonstrates your understanding of AI Project Cycle, data preprocessing, model usage, and evaluation.

💡 Real-world examples you already use every day

📸 Google Photos — automatically groups photos by person's face using face recognition

🚗 Self-driving cars — detect pedestrians, traffic lights, road signs in real time

🏥 Medical AI — detect tumors and abnormalities in X-ray and MRI scans

📦 Amazon Go stores — detect which products you pick up without any checkout

📱 Face Unlock — your phone's camera recognizes your face in milliseconds

Class 10 Version — Beginner

  • Detect colours in an image
  • Find dominant colour
  • Use OpenCV and NumPy
  • No neural network needed
  • ~35 lines of code
  • Perfect for Code 417

Class 12 Version — Advanced

  • Object detection with labels
  • Confidence score shown
  • MobileNet neural network
  • Bounding boxes drawn
  • ~65 lines of code
  • Perfect for Code 843

// class 10 project

Project 1 — Colour & Shape Detector Beginner

In this project we use Python and OpenCV to detect colours in any image. This covers Computer Vision concepts from the CBSE Class 10 AI syllabus — no machine learning required, perfect for beginners!

// step 1 — install libraries

Open Command Prompt and run these one by one:

pip install opencv-python pip install numpy pip install matplotlib
// step 2 — full code
colour_detector.py
# AI Logic School — Class 10 Image Recognition Project
# Colour Detector using OpenCV | CBSE Code 417

import cv2
import numpy as np
import matplotlib.pyplot as plt

# Step 1: Load image — replace 'photo.jpg' with your file
image = cv2.imread('photo.jpg')
image_rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)

# Step 2: Convert to HSV colour space for easier detection
hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)

# Step 3: Define HSV ranges for Red, Blue, Green
lower_red   = np.array([0,   120, 70]);  upper_red   = np.array([10,  255, 255])
lower_blue  = np.array([100, 150, 50]);  upper_blue  = np.array([130, 255, 255])
lower_green = np.array([40,  70,  70]);  upper_green = np.array([80,  255, 255])

# Step 4: Create masks for each colour
mask_red   = cv2.inRange(hsv, lower_red,   upper_red)
mask_blue  = cv2.inRange(hsv, lower_blue,  upper_blue)
mask_green = cv2.inRange(hsv, lower_green, upper_green)

# Step 5: Apply masks to show detected colour only
result_red   = cv2.bitwise_and(image_rgb, image_rgb, mask=mask_red)
result_blue  = cv2.bitwise_and(image_rgb, image_rgb, mask=mask_blue)
result_green = cv2.bitwise_and(image_rgb, image_rgb, mask=mask_green)

# Step 6: Count detected pixels for each colour
red_px   = cv2.countNonZero(mask_red)
blue_px  = cv2.countNonZero(mask_blue)
green_px = cv2.countNonZero(mask_green)

print(f"Red pixels   : {red_px}")
print(f"Blue pixels  : {blue_px}")
print(f"Green pixels : {green_px}")

# Step 7: Find the dominant colour
colours  = {'Red': red_px, 'Blue': blue_px, 'Green': green_px}
dominant = max(colours, key=colours.get)
print(f"\n✅ Dominant colour: {dominant}")

# Step 8: Display all results
fig, axes = plt.subplots(1, 4, figsize=(16, 4))
axes[0].imshow(image_rgb);    axes[0].set_title('Original')
axes[1].imshow(result_red);   axes[1].set_title('Red Detected')
axes[2].imshow(result_blue);  axes[2].set_title('Blue Detected')
axes[3].imshow(result_green); axes[3].set_title('Green Detected')
for ax in axes: ax.axis('off')
plt.suptitle(f'Dominant Colour: {dominant}', fontsize=14, fontweight='bold')
plt.tight_layout()
plt.show()
▶ EXPECTED OUTPUT
Red pixels   : 3420
Blue pixels  : 8901
Green pixels : 2150

✅ Dominant colour: Blue
// line-by-line explanation
Line / FunctionWhat it does
cv2.imread()Loads your image file into Python as a matrix (array) of pixel values
cvtColor(BGR2HSV)Converts image to HSV colour space — easier to detect colours than RGB
np.array([...])Defines the lower and upper HSV range for each colour to detect
cv2.inRange()Creates a mask — white pixels where colour is found, black everywhere else
bitwise_and()Applies the mask to show only the detected colour on original image
countNonZero()Counts how many pixels of each colour were found in the image
max(colours)Finds which colour appeared the most — that becomes the dominant colour
plt.subplots()Creates a 4-panel figure to display original image + 3 colour results

🎯 Try It Yourself — Class 10 Challenges

  1. Add detection for Yellow colour (HSV lower: [20,100,100], upper: [30,255,255])
  2. Print what percentage of the total image each colour covers
  3. Save the result image using cv2.imwrite('result.jpg', image)
  4. Try on 3 different images — a sunset, a forest, a school photo

// class 12 project

Project 2 — Object Detection with AI Advanced

Now we go deeper. We use a pre-trained neural network called MobileNet SSD to detect and label real objects in any image — like person, car, dog, laptop — with confidence scores shown on screen.

🧠 How the neural network works

MobileNet SSD is trained on 80 different object types (COCO dataset). It was trained by Google on millions of images. We just load the already-trained model — no training needed from scratch!

It outputs three things for each detection: bounding box coordinates (where the object is) + class label (what the object is) + confidence score (how sure the AI is, 0–100%)

This is an example of Transfer Learning — a key CBSE Class 12 AI concept. We use Google's pre-trained model and apply it to our own images.

// step 1 — install libraries

Open Command Prompt and run:

pip install opencv-python pip install numpy matplotlib
// step 2 — full code
object_detector.py
# AI Logic School — Class 12 Image Recognition Project
# Object Detection using MobileNet SSD | CBSE Code 843

import cv2
import numpy as np
import matplotlib.pyplot as plt
import urllib.request
import os

# 80 object labels from COCO dataset
LABELS = [
    "background", "person", "bicycle", "car", "motorcycle",
    "airplane", "bus", "train", "truck", "boat",
    "traffic light", "fire hydrant", "stop sign",
    "bench", "bird", "cat", "dog", "horse", "sheep",
    "cow", "elephant", "bear", "zebra", "giraffe",
    "backpack", "umbrella", "handbag", "suitcase",
    "bottle", "cup", "fork", "knife", "spoon", "bowl",
    "banana", "apple", "sandwich",
    "chair", "couch", "laptop", "cell phone", "book"
]
COLOURS = np.random.uniform(50, 255, size=(len(LABELS), 3))

# Download model files (runs only once, ~25 MB)
MODEL_URL = "https://github.com/chuanqi305/MobileNet-SSD/raw/master/MobileNetSSD_deploy.caffemodel"
PROTO_URL = "https://raw.githubusercontent.com/chuanqi305/MobileNet-SSD/master/MobileNetSSD_deploy.prototxt"

if not os.path.exists("model.caffemodel"):
    print("📥 Downloading model... (first time only)")
    urllib.request.urlretrieve(MODEL_URL, "model.caffemodel")
    urllib.request.urlretrieve(PROTO_URL, "model.prototxt")
    print("✅ Model downloaded!")

# Load the pre-trained neural network
print("🧠 Loading neural network...")
net = cv2.dnn.readNetFromCaffe("model.prototxt", "model.caffemodel")
print("✅ Model loaded!")

# Load and prepare image
image = cv2.imread("photo.jpg")   # replace with your image
image = cv2.resize(image, (600, 400))
(H, W) = image.shape[:2]

# Convert image to blob format the network understands
blob = cv2.dnn.blobFromImage(
    cv2.resize(image, (300, 300)),
    0.007843, (300, 300), 127.5
)

# Run image through the neural network
net.setInput(blob)
detections = net.forward()   # AI "thinks" here

# Draw bounding boxes on detected objects
found = []
for i in range(detections.shape[2]):
    confidence = detections[0, 0, i, 2]
    if confidence > 0.50:   # only show >50% confident detections
        idx    = int(detections[0, 0, i, 1])
        label  = LABELS[idx]
        colour = [int(c) for c in COLOURS[idx]]
        box    = detections[0, 0, i, 3:7] * np.array([W, H, W, H])
        (sX, sY, eX, eY) = box.astype("int")
        cv2.rectangle(image, (sX, sY), (eX, eY), colour, 2)
        text = f"{label}: {confidence*100:.1f}%"
        cv2.putText(image, text, (sX, sY-8),
                    cv2.FONT_HERSHEY_SIMPLEX, 0.5, colour, 2)
        found.append(f"  • {label} ({confidence*100:.1f}% confidence)")

# Print and display results
print(f"\n🎯 Objects detected: {len(found)}")
for obj in found: print(obj)

result_rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
plt.figure(figsize=(10, 6))
plt.imshow(result_rgb)
plt.title(f"Objects Detected: {len(found)}", fontsize=14)
plt.axis('off')
plt.tight_layout()
plt.show()
▶ EXPECTED OUTPUT
📥 Downloading model... (first time only)
✅ Model downloaded!
🧠 Loading neural network...
✅ Model loaded!

🎯 Objects detected: 3
  • person   (94.2% confidence)
  • laptop   (87.6% confidence)
  • chair    (71.3% confidence)
// line-by-line explanation
Line / ConceptWhat it does
LABELS list80 object names the model was trained to recognise — from person to giraffe
readNetFromCaffe()Loads pre-trained MobileNet neural network weights from the downloaded file
blobFromImage()Converts image to exact format (300×300, normalised) the network was designed for
net.forward()The AI "thinks" — image passes through all neural network layers, predictions come out
detections[0,0,i,2]Confidence score for detection i — how sure the AI is (0.0 to 1.0)
confidence > 0.50Only show results where AI is more than 50% confident — reduces false detections
detections[...,3:7]Bounding box as fractions (0-1) of image size — multiply by W and H for pixel coordinates
cv2.rectangle()Draws the coloured box around each detected object
cv2.putText()Writes the label name and confidence % above each bounding box

🎯 Try It Yourself — Class 12 Challenges

  1. Change confidence threshold from 0.50 to 0.70 — what happens to number of detections?
  2. Count how many people specifically are in the image and print that count
  3. Save the result image with bounding boxes using cv2.imwrite('result.jpg', image)
  4. Try the code on a classroom photo — can it detect students and chairs?
  5. Extension: Modify code to use webcam using cv2.VideoCapture(0)

// viva & exam questions

Important Viva & Board Exam Questions

Q1. What is Image Recognition in AI?
Image recognition is the ability of AI to identify objects, people, or actions in images. It uses Computer Vision techniques and neural networks trained on millions of labeled images.
Q2. What is OpenCV? Why is it used?
OpenCV (Open Source Computer Vision) is a Python library for image processing tasks — reading images, colour detection, drawing shapes, applying filters, and running neural networks on images.
Q3. What is HSV colour space? Why use it over RGB?
HSV (Hue, Saturation, Value) separates colour information from brightness. This makes colour detection more reliable under different lighting conditions compared to RGB.
Q4. What is a pre-trained model? Give one example.
A pre-trained model is a neural network already trained on a large dataset. We can directly use it without training from scratch. Example: MobileNet SSD — trained by Google on 80 object types.
Q5. What is a confidence score in object detection?
A confidence score (0 to 1) tells how certain the AI is about its detection. A score of 0.94 means 94% confident. We typically only show detections above 50% confidence to reduce errors.
Q6. How does this project demonstrate the AI Project Cycle?
Problem Scoping: detect objects in images. Data Acquisition: use photo.jpg. Data Exploration: view image pixels. Modeling: run MobileNet neural network. Evaluation: check confidence scores and bounding boxes.

📲 Get More AI Projects — Free!

Join our Telegram channel for free PDF notes, practical files and more AI projects for CBSE Code 417 and 843.

📲 Join Telegram — Free
// more resources

More Free Resources — AI Logic School

AI Logic School · AI Project: Image Recognition · CBSE Class 10 & 12 · Code 417 & 843 · 2025-26

CBSE Class 11 AI Machine Learning Basics 2025-26 | Linear Regression KNN K-Means | Code 843 Unit 6 Notes

CBSE · SUB CODE 843 · CLASS 11 · UNIT 6

📥 Class 11 AI Notes — Unit 6: Machine Learning Basics

Complete notes with Python programs, examples and exam tips for CBSE Code 843 · Free for all students

Class XI | Subject: Artificial Intelligence | Code: 843 | Unit 6: Machine Learning | Session 2025-26
Complete study notes covering all ML types, algorithms, Python programs, daily life examples and exam tips as per the official CBSE Class 11 AI syllabus.

Class 11 AI Code 843 Machine Learning Unit 6 Notes Linear Regression KNN Algorithm K-Means Clustering CBSE 2025-26
CBSE · SUB CODE 843 · CLASS 11 · UNIT 6

Machine Learning Basics

From zero to understanding ML — explained with daily life examples

Supervised Learning Unsupervised Learning Linear Regression kNN · k-Means
WHAT IS MACHINE LEARNING?

Machine Learning (ML) is a branch of AI where machines learn from data and improve over time without being explicitly programmed for every task.

Machine Learning is the core of modern AI applications. When you use Google Search, YouTube recommendations, Netflix suggestions, Gmail spam filter, or face unlock on your phone — all of these use Machine Learning. In CBSE Class 11 AI (Code 843), Unit 6 covers ML fundamentals including types of learning, key algorithms, and Python implementation.

🍎 UNDERSTAND WITH A DAILY LIFE EXAMPLE
👶 HOW A CHILD LEARNS

You show a child 100 pictures of dogs and cats. After seeing enough examples, the child can identify a new dog or cat — even one they have never seen before!

🤖 HOW ML WORKS

You feed 10,000 dog and cat images to a computer. The ML model learns patterns (ears, tail, face) and can now identify any new animal image correctly!

Types of Machine Learning

There are three main types of Machine Learning. Understanding the difference between them is very important for CBSE Class 11 AI board exams. Each type is used for different kinds of problems and data.

TYPE 1
Supervised Learning

The machine is trained on labelled data — data that already has the correct answers. The machine learns by comparing its predictions to the correct answers and adjusting itself to reduce errors.

🏠 DAILY LIFE EXAMPLE — House Price Prediction

You have data of 500 houses — size, location, age → and their actual selling prices. You train a model on this data. Now give it a new house's size and location — it predicts the price! This is supervised learning because you gave it the correct answers (prices) during training.

Other real-world examples of Supervised Learning: Gmail spam filter (spam/not spam), Medical diagnosis (disease/no disease), Credit card fraud detection, Image recognition (cat/dog), Weather forecasting (rain/no rain).

Linear Regression Classification kNN Algorithm Decision Tree Spam Detection
TYPE 2
Unsupervised Learning

The machine is trained on unlabelled data — no correct answers given. The machine finds hidden patterns, groups and structures in the data completely on its own.

🛒 DAILY LIFE EXAMPLE — Amazon Product Recommendations

Amazon groups customers into clusters based on buying behavior — without anyone telling it what the groups are. Customers who buy science books get grouped together. Now Amazon recommends science books to anyone in that group. Nobody labelled the data — the machine found the pattern itself!

Other examples: Grouping news articles by topic, Detecting unusual transactions (anomaly detection), Social media friend suggestions, DNA sequence analysis in biology.

k-Means Clustering Customer Segmentation Anomaly Detection PCA
TYPE 3
Reinforcement Learning

The machine learns by trial and error — getting rewards for correct actions and penalties for wrong ones. Like training a dog with treats — do the right thing, get a reward!

🎮 DAILY LIFE EXAMPLE — Video Games AI

Google's AlphaGo played millions of games against itself. Every time it won, it got a reward. Every time it lost, it learned what NOT to do. After enough games, it became the world's best Go player — beating world champions!

Other examples: Self-driving cars (reward for safe driving), Robot learning to walk, Personalized content feeds, Trading algorithms in stock markets.

Linear Regression — Explained Simply

Linear Regression is a Supervised Learning algorithm used to predict a continuous numerical value. It finds the best straight line through your data points so you can predict future values.

Formula: y = mx + c  |  where y = predicted value, m = slope, x = input, c = intercept

📚 DAILY LIFE EXAMPLE — Study Hours vs Marks

If a student studies 2 hours → gets 50 marks, 4 hours → 65 marks, 6 hours → 80 marks... Linear regression draws a line through these points. Now if you study 7 hours, the model predicts your marks! The formula is: Marks = (slope × Hours) + constant

🐍 Python Code — Linear Regression
import numpy as np
from sklearn.linear_model import LinearRegression

# Study hours and marks data
hours = np.array([[2],[4],[6],[8],[10]])
marks = np.array([50, 65, 75, 85, 95])

# Create and train the model
model = LinearRegression()
model.fit(hours, marks)

# Predict marks for 7 hours of study
predicted = model.predict([[7]])
print(f"Predicted marks for 7 hours: {predicted[0]:.1f}")
Output: Predicted marks for 7 hours: 80.0

k-Nearest Neighbour (kNN) — Explained Simply

kNN is a Supervised Learning algorithm used for classification. It classifies a new data point based on the majority class of its K nearest neighbors in the training data.

Key point: kNN does not build a model — it memorizes the entire training dataset. When a new point arrives, it calculates distance to all training points and picks the K closest ones.

👫 DAILY LIFE EXAMPLE — "Tell me your friends, I'll tell you who you are"

Imagine a new student joins your school. You don't know if they like Science or Arts. kNN says — look at their 3 nearest neighbours (most similar students). If 2 out of 3 similar students like Science, the new student probably likes Science too! That's kNN — classify based on nearest neighbours.

🐍 Python Code — kNN Classifier
from sklearn.neighbors import KNeighborsClassifier
import numpy as np

# Features: [height(cm), weight(kg)] → Sport: 0=Basketball, 1=Gymnastics
X = np.array([[180,75],[175,70],[165,55],[160,50],[170,65]])
y = np.array([0, 0, 1, 1, 0])

# Train kNN with k=3
model = KNeighborsClassifier(n_neighbors=3)
model.fit(X, y)

# Predict for a new student: height=168, weight=58
result = model.predict([[168, 58]])
sports = ["Basketball","Gymnastics"]
print(f"Predicted sport: {sports[result[0]]}")
Output: Predicted sport: Gymnastics

k-Means Clustering — Explained Simply

k-Means is an Unsupervised Learning algorithm used for clustering — grouping similar data points together without any labels. You decide how many groups (K) you want.

How it works: 1. Choose K random points as initial cluster centers (centroids). 2. Assign each data point to the nearest centroid. 3. Recalculate centroids as the average of all points in the cluster. 4. Repeat steps 2-3 until centroids stop moving.

🎂 DAILY LIFE EXAMPLE — Sorting Sweets at a Party

Imagine 20 sweets are scattered on a table — gulab jamun, ladoo, and barfi all mixed up. k-Means (with k=3) will automatically group them into 3 clusters based on their shape, size and color — without you telling it what each sweet is called. It just finds 3 natural groups!

🐍 Python Code — k-Means Clustering
from sklearn.cluster import KMeans
import numpy as np

# Customer data: [age, spending_score]
customers = np.array([
    [25,70],[30,80],[22,65],   # Young high spenders
    [50,20],[55,30],[48,25],   # Older low spenders
    [35,50],[40,55],[38,48]    # Middle group
])

# Group into 3 clusters
model = KMeans(n_clusters=3, random_state=0)
model.fit(customers)

print("Customer groups:", model.labels_)
print("Group centers:", model.cluster_centers_)
Output: Customer groups: [0 0 0 1 1 1 2 2 2]  |  3 clusters found automatically

Quick Comparison — All Three Algorithms

Algorithm ML Type Purpose Output Daily Example
Linear Regression Supervised Predict a number Continuous value Predicting exam marks
kNN Supervised Classify into categories Class label Spam or not spam email
k-Means Unsupervised Group similar items Cluster number Customer segmentation
📊 Supervised vs Unsupervised Learning — Key Differences
Feature Supervised Learning Unsupervised Learning
Data Labelled (with correct answers) Unlabelled (no correct answers)
Goal Predict output for new data Find hidden patterns or groups
Algorithms Linear Regression, kNN, Decision Tree k-Means, PCA, DBSCAN
Example Spam detection, Price prediction Customer grouping, News clustering

Important Viva & Board Exam Questions

Q1. Define Machine Learning. How is it different from traditional programming?
ML is a branch of AI where machines learn from data without being explicitly programmed. In traditional programming, rules are written by humans → computer follows them. In ML, data + output are given → computer finds the rules itself.
Q2. What is the difference between Supervised and Unsupervised Learning?
Supervised: trained on labelled data with correct answers. Example: spam detection. Unsupervised: trained on unlabelled data, finds hidden patterns. Example: customer segmentation.
Q3. What is Linear Regression? Give one real-world application.
Linear Regression finds the best-fit straight line to predict continuous values. Application: predicting house prices based on size and location.
Q4. Explain kNN algorithm with an example.
kNN classifies a new point based on the majority class of its K nearest neighbors. Example: if K=3 and 2 out of 3 nearest emails are spam, the new email is classified as spam.
Q5. What is k-Means Clustering? How is it different from kNN?
k-Means is unsupervised — groups unlabelled data into K clusters. kNN is supervised — classifies labelled data. k-Means finds groups; kNN predicts class labels.
Q6. What is Reinforcement Learning? Give one example.
RL trains an agent through rewards and penalties. Example: AlphaGo — learned to play Go by getting rewards for winning moves and penalties for losing moves.
📝 EXAM TIPS — REMEMBER THESE FOR CBSE CODE 843
  • ML = machines learn from data without being explicitly programmed
  • Supervised = labelled data | Unsupervised = unlabelled data
  • Linear Regression = predict continuous values (marks, price, temperature)
  • kNN = classify into categories (spam/not spam, disease/no disease)
  • k-Means = group data into k clusters (no labels needed)
  • kNN is Supervised; k-Means is Unsupervised — don't confuse them!
  • Pearson Correlation: +1 = strong positive, -1 = strong negative, 0 = no relation
  • Reinforcement Learning uses reward and penalty — no labelled data
🔗 More Free CBSE AI Resources — AI Logic School
📘 CLASS 12
Class 12 AI Practical File
20+ Python programs for CBSE Code 843 with output.
📗 CLASS 9
Class 9 AI Practical File
15 Python programs for CBSE Code 417 with output.
📙 CLASS 10
Class 10 AI Unit 2 Notes
50 MCQs, Case Studies, Q&A for CBSE Code 417.

📲 Get Complete Class 11 AI Notes PDF

Join our Telegram channel for free PDF downloads of all CBSE AI notes, worksheets and practical files.

📲 Join Telegram — Free PDF
AI Logic School · Machine Learning Basics · CBSE Class 11 · Sub Code 843 · Unit 6 · Session 2025-26

Class 11 AI Notes | All Units | CBSE Subject Code 843

CBSE · SUBJECT CODE 843 · CLASS XI · SESSION 2025-26

Artificial Intelligence — Class 11 Notes

Complete chapter-wise notes based on official CBSE syllabus · AI Logic School

Theory: 50 Marks Practical: 50 Marks 8 Units Total: 100 Marks
Syllabus Overview — Part B (Subject Specific Skills)
Unit Topic Theory Hrs Marks
Unit 1Introduction: AI for Everyone44
Unit 2Unlocking Your Future in AI65
Unit 3Python Programming105
Unit 4Introduction to Capstone Project65
Unit 5Data Literacy: Collection to Analysis66
Unit 6Machine Learning Algorithms96
Unit 7Leveraging Linguistics & CS (NLP)55
Unit 8AI Ethics and Values44
UNIT 1

Introduction: Artificial Intelligence for Everyone

LEARNING OUTCOMES
  • Communicate effectively about AI concepts in written and oral formats
  • Describe the historical development of AI
  • Differentiate between types and domains of AI including applications
  • Recognize key terminologies related to ML and Deep Learning
  • Formulate informed opinions on benefits and limitations of AI

1.1 What is Artificial Intelligence?

Artificial Intelligence (AI) is a branch of computer science that focuses on building machines that can perform tasks that normally require human intelligence. These tasks include reasoning, learning, problem-solving, perception, and language understanding.

KEY DEFINITION

Artificial Intelligence is the simulation of human intelligence processes by machines, especially computer systems. It includes learning, reasoning, and self-correction.

1.2 Evolution of AI

EraKey Development
1950sAlan Turing proposes the Turing Test; birth of AI as a discipline
1960s–70sExpert Systems developed; first AI winter due to limited computing power
1980s–90sMachine Learning emerges; neural networks revived
2000sBig Data and improved algorithms accelerate AI research
2010s–nowDeep Learning, GPUs, Cloud AI — ChatGPT, self-driving cars, facial recognition

1.3 Types of AI

NARROW AI (Weak AI)

Designed for a specific task. Examples: Siri, Google Translate, Chess engines, recommendation systems.

GENERAL AI (Strong AI)

Can perform any intellectual task a human can. Still theoretical — does not yet exist.

SUPER AI

Surpasses human intelligence in all areas. Hypothetical — subject of research and ethical debate.

1.4 Three Domains of AI

Computer Vision

Enables machines to interpret and understand visual input. Examples: Face recognition, medical imaging, self-driving cars.

Natural Language Processing

Enables machines to understand human language. Examples: Chatbots, translation, sentiment analysis.

Speech Recognition

Converts spoken language into text/commands. Examples: Alexa, Google Assistant, voice-to-text.

1.5 Key AI Terminologies

IMPORTANT TERMS TO KNOW
Machine Learning (ML)A subset of AI where machines learn from data without being explicitly programmed.
Deep Learning (DL)A subset of ML using neural networks with many layers to learn complex patterns.
Neural NetworkA system of algorithms modeled on the human brain to recognize patterns.
AlgorithmA step-by-step set of instructions for solving a problem or completing a task.
Training DataThe dataset used to teach a machine learning model.
REMEMBER — Unit 1 Key Points
  • AI = making machines think and act like humans
  • Three domains: Computer Vision, NLP, Speech Recognition
  • AI → Machine Learning → Deep Learning (nested relationship)
  • Narrow AI exists today; General AI and Super AI are future concepts
UNIT 2

Unlocking Your Future in AI

LEARNING OUTCOMES
  • Articulate demand for AI professionals and career opportunities
  • Identify skills and tools for a career in AI
  • Understand roles and responsibilities of AI professionals
  • Evaluate personal interests for AI career pathways

2.1 Global Demand for AI Professionals

AI is one of the fastest-growing fields globally. According to World Economic Forum reports, AI and automation will create 97 million new jobs by 2025 while transforming existing ones. India is among the top countries with growing AI talent demand.

2.2 Common Job Roles in AI

AI/ML Engineer

Builds and deploys ML models and AI systems.

Data Scientist

Analyses complex data to help organizations make decisions.

NLP Engineer

Develops systems that understand human language.

AI Ethicist

Ensures AI systems are fair, transparent and accountable.

Robotics Engineer

Designs and programs intelligent robotic systems.

Computer Vision Engineer

Builds systems that process and interpret images/video.

2.3 Essential Skills for AI Careers

TECHNICAL SKILLS
  • Python programming
  • Mathematics (Statistics, Linear Algebra)
  • Machine Learning frameworks
  • Data analysis and visualization
  • Cloud computing basics
SOFT SKILLS
  • Critical thinking
  • Problem-solving ability
  • Communication skills
  • Teamwork and collaboration
  • Continuous learning mindset
UNIT 3

Python Programming

LEARNING OUTCOMES
  • Explain basics of Python — character sets, tokens, modes, operators, datatypes
  • Use selective and iterative (control) statements effectively
  • Use libraries: NumPy, Pandas, Scikit-learn efficiently
  • Work with CSV files for data handling

3.1 Level 1 — Python Basics

DATA TYPES IN PYTHON
intIntegers — e.g. 5, -3, 100x = 10
floatDecimal numbers — e.g. 3.14, -0.5pi = 3.14
strText — e.g. "Hello", 'AI'name = "AI"
boolTrue or False onlyflag = True
listOrdered collection — e.g. [1, 2, 3]a = [1,2,3]

3.2 Control Statements

IF-ELSE (Selection)
age = 18
if age >= 18:
    print("Adult")
else:
    print("Minor")
FOR LOOP (Iteration)
fruits = ["apple","mango"]
for fruit in fruits:
    print(fruit)
WHILE LOOP
i = 1
while i <= 5:
    print(i)
    i = i + 1

3.3 Level 2 — Libraries

NumPy

Numerical computing library for arrays and mathematical operations.

import numpy as np
a = np.array([1,2,3])
print(a.mean())
Pandas

Data analysis library for working with tables (DataFrames).

import pandas as pd
df = pd.read_csv("data.csv")
print(df.head())
Scikit-learn

Machine learning library for building and training ML models.

from sklearn.linear_model
  import LinearRegression
model = LinearRegression()
UNIT 4

Introduction to Capstone Project

LEARNING OUTCOMES
  • Decompose any problem using the 5W1H method
  • Apply Design Thinking methodology
  • Create Empathy Maps
  • Align problems to Sustainable Development Goals (SDGs)

4.1 Design Thinking

Design Thinking is a human-centered approach to problem-solving. It focuses on understanding users, challenging assumptions, and creating innovative solutions.

1. Empathise
2. Define
3. Ideate
4. Prototype
5. Test

4.2 Empathy Map

An Empathy Map helps you understand your users better by examining what they Say, Think, Do and Feel. It is used in the first stage of Design Thinking (Empathise).

SAYS

What the user says out loud — their direct quotes and statements

THINKS

What the user thinks but may not say — inner thoughts

DOES

Actions the user takes — observable behaviours

FEELS

Emotional state of the user — frustrations, motivations

UNIT 5

Data Literacy — Data Collection to Data Analysis

LEARNING OUTCOMES
  • Explain the importance of data literacy in AI
  • Identify different data collection methods
  • Apply basic statistical analysis techniques
  • Visualize data using Python (matplotlib)
  • Understand matrices and data pre-processing

5.1 What is Data Literacy?

Data Literacy is the ability to read, understand, create and communicate data as information. It is a key skill in AI as all AI systems depend on data to learn and make decisions.

5.2 Statistical Analysis — Key Terms

MeasureDefinitionPython
MeanAverage of all valuesnp.mean(data)
MedianMiddle value when sortednp.median(data)
ModeMost frequently occurring valuestats.mode(data)
Std DeviationSpread of data around meannp.std(data)
VarianceSquare of standard deviationnp.var(data)

5.3 Data Visualization with Matplotlib

import matplotlib.pyplot as plt

# Line Graph
plt.plot([1,2,3,4], [10,20,15,30])
plt.title("Line Graph")
plt.show()

# Bar Graph
plt.bar(["A","B","C"], [5,10,7])
plt.title("Bar Graph")
plt.show()

# Histogram
plt.hist([1,2,2,3,3,3,4,4,4,4], bins=4)
plt.title("Histogram")
plt.show()
UNIT 6

Machine Learning Algorithms

LEARNING OUTCOMES
  • Differentiate between types of Machine Learning
  • Understand Linear Regression, kNN and k-Means algorithms
  • Apply ML methods to solve day-to-day problems

6.1 Types of Machine Learning

Supervised Learning

Trained on labelled data. Machine learns from examples with correct answers.
Examples: Linear Regression, Classification

Unsupervised Learning

Trained on unlabelled data. Machine finds patterns on its own.
Examples: k-Means Clustering

Reinforcement Learning

Learns through reward and penalty system — trial and error.
Examples: Game playing AI, robots

6.2 Key Algorithms

THREE KEY ALGORITHMS — CBSE SYLLABUS
Linear RegressionPredicts a continuous value based on input data. E.g. predicting house price from size. Uses: finding the best-fit line through data points.
k-Nearest Neighbour (kNN)A classification algorithm. Classifies a new data point based on the k nearest examples. Used for spam detection, image recognition.
k-Means ClusteringUnsupervised algorithm that groups data into k clusters based on similarity. Used for customer segmentation, document grouping.
UNIT 7

Leveraging Linguistics and Computer Science (NLP)

LEARNING OUTCOMES
  • Understand complexities of human language and NLP challenges
  • Learn techniques and algorithms for NLP tasks
  • Create a simple chatbot using online platforms

7.1 What is NLP?

Natural Language Processing (NLP) is a branch of AI that enables computers to understand, interpret, and generate human language in a way that is both meaningful and useful.

7.2 Applications of NLP

💬
Chatbots
Customer support automation
🌍
Translation
Google Translate, DeepL
😊
Sentiment Analysis
Detecting emotions in text
📝
Text Summarisation
Auto-summarizing articles

7.3 Phases of NLP

PhaseDescription
Lexical AnalysisBreaking text into words and tokens
Syntactic AnalysisAnalyzing grammar and sentence structure
Semantic AnalysisUnderstanding the meaning of words and sentences
Discourse IntegrationUnderstanding context across multiple sentences
Pragmatic AnalysisUnderstanding intended meaning beyond literal words
UNIT 8

AI Ethics and Values

LEARNING OUTCOMES
  • Understand fundamental principles of ethics in AI
  • Develop understanding of AI bias and its sources
  • Identify strategies for mitigating bias in AI systems
  • Recognize the significance of AI policies

8.1 The Five Pillars of AI Ethics

⚖️
Fairness

AI must treat all people equally without discrimination

🔍
Transparency

AI decisions must be explainable and understandable

🔒
Privacy

User data must be protected and used responsibly

Accountability

Developers must be responsible for AI outcomes

🛡️
Safety

AI systems must not cause harm to humans

8.2 AI Bias

AI Bias occurs when an AI system produces unfair outcomes due to flawed assumptions in its training data or algorithm design. Biased AI can lead to discrimination in hiring, lending, healthcare and more.

SOURCES OF BIAS IN AI
Historical BiasTraining data reflects past discrimination and inequalities
Representation BiasCertain groups underrepresented in training data
Measurement BiasErrors in how data is collected or labelled
Algorithm BiasFlaws in the algorithm design itself
MASTER SUMMARY — CLASS 11 AI (SUB. CODE 843)
UNIT 1
AI for Everyone
Types, Domains, Evolution
UNIT 2
Future in AI
Careers, Skills, Industries
UNIT 3
Python Programming
Basics + NumPy/Pandas/SKLearn
UNIT 4
Capstone Project
Design Thinking, Empathy Map
UNIT 5
Data Literacy
Stats, Visualization, Matrices
UNIT 6
Machine Learning
Regression, kNN, k-Means
UNIT 7
NLP
Chatbots, Phases, Applications
UNIT 8
AI Ethics
5 Pillars, Bias, Policies
AI Logic School · Class 11 AI Notes · Based on CBSE Official Syllabus Sub. Code 843 · Session 2025-26
Chat on WhatsApp