L
LLLOS.ai
Learn
L

Chapter 1 — Introduction To Ai

Class 10 · Artificial Intelligence

Overview

This chapter introduces Artificial Intelligence (AI) for Class 10 students by explaining what AI is, how it evolved, and why it matters today. It highlights the importance of AI in everyday life and across industries, and gives a clear, age-appropriate explanation of core ideas such as intelligent agents, data, algorithms, models, and the difference between rule-based systems and learning-based systems. Key themes include types of AI (narrow vs general), basic machine learning concepts (training, testing, supervised vs unsupervised learning), common applications (voice assistants, image recognition, recommendation systems), and ethical and social considerations (bias, privacy, responsible use). By the end of the chapter students will be able to define basic AI terms, recognise simple AI applications, understand how data and models work at a conceptual level, appreciate limitations and risks of AI, and identify pathways for further study and careers in AI. The chapter balances conceptual understanding with CBSE’s emphasis on responsible, practical use of technology.

Learning Objectives

  • Define artificial intelligence and related terms such as machine learning, deep learning, and neural network.
  • Explain the history and evolution of AI with key milestones and contributions.
  • Describe main approaches and branches of AI (symbolic, statistical, learning-based) and their characteristics.
  • Differentiate between AI, machine learning, and deep learning using clear examples.
  • Identify common real-world applications of AI in domains such as healthcare, education, transport, and entertainment.
  • List basic AI tasks (classification, regression, clustering, NLP, computer vision) and give one example for each.
  • Apply a simple step-by-step process to frame an AI problem: define objective, collect data, choose model, evaluate results.
  • Illustrate the difference between supervised and unsupervised learning with classroom-level examples.

Topics in this chapter

19 topics · tap a topic title to jump straight to it.

🤖1

Introduction to AI

💡 KEY CONCEPT SUMMARY

Introduction to AI

Key Point: Bayes' theorem (useful in probabilistic reasoning): P(A|B) = [P(B|A) × P(A)] / P(B)

What is Artificial Intelligence (AI)?

Artificial Intelligence (AI) is the branch of computer science that creates systems able to perform tasks that normally require human intelligence. These tasks include learning from data, recognizing patterns, understanding language, making decisions and solving problems.

Key ideas

1. Goal: Build machines that perceive, reason, learn and act.

2. Types of AI:

  • Narrow (Weak) AI: Designed for a specific task (e.g., voice assistant).
  • General (Strong) AI: Hypothetical systems with broad human-like intelligence (research goal).

3. Main branches:

  • Machine Learning (ML): Algorithms that learn patterns from data.
  • Deep Learning (DL): ML using multi-layer neural networks.
  • Natural Language Processing (NLP): Understanding/generating human language.
  • Computer Vision (CV): Interpreting images and video.
  • Robotics: AI controlling physical machines.

How AI systems are built (simple workflow)

  1. Problem definition (what to solve).
  2. Collect and prepare data (cleaning, labeling).
  3. Choose model/algorithm (e.g., decision tree, neural network).
  4. Train model on data (adjust parameters to learn patterns).
  5. Evaluate performance (using metrics; refine).
  6. Deploy and monitor (use model in real world; update as needed).

Why AI works

AI works by finding patterns in data and using those patterns to make predictions or decisions. The more and better-quality data, and the better the algorithm, the better the AI's performance.

Benefits and challenges

Benefits: Automates repetitive tasks, supports faster decision-making, improves accuracy in many domains (medicine, finance, education).

Challenges: Bias in data, privacy issues, need for large data and compute, and ethical concerns (responsibility, transparency).

Simple classroom example

Consider an email spam filter: It learns from examples of 'spam' and 'not spam' emails (training data). The trained model inspects new emails and predicts whether each is spam. Performance is measured and the model is updated over time.

📌 Examples
  • Voice assistants (e.g., Siri, Google Assistant) — understand spoken queries and provide answers.
  • Recommendation systems (e.g., YouTube, Netflix) — suggest videos or movies based on your past behaviour.
  • Autonomous (self-driving) features in cars — detect lanes, pedestrians and make driving decisions.
  • Spam email filter — classifies inbound mail as 'spam' or 'not spam' using learned patterns.
  • Face unlock on phones — uses computer vision to recognize authorized faces.
  • Medical diagnosis support — analyses medical images (X-rays, MRIs) to highlight possible problems.
🧮 Formulas
  1. \[Bayes' theorem (useful in probabilistic reasoning): P(A|B) = [P(B|A) × P(A)] / P(B)\]
  2. \[Accuracy (classification): Accuracy = (TP + TN) / (TP + TN + FP + FN)\]
  3. \[Precision and Recall: Precision = TP / (TP + FP)\]
    \[Recall = TP / (TP + FN)\]
  4. \[F1 score (harmonic mean of precision and recall): F1 = 2 × (Precision × Recall) / (Precision + Recall)\]
  5. \[Linear regression (simple prediction): y = mx + c (m = slope\]
    \[c = intercept)\]
  6. \[Mean Squared Error (MSE) — common loss for regression: MSE = (1/n) Σ (y_i − ŷ_i)^2\]
🐒2

History and Evolution of AI

💡 KEY CONCEPT SUMMARY

History and Evolution of AI

Key Point: Linear regression (prediction): y = mx + c. Explanation: Predicts a numeric outcome y from input x using slope m and intercept c.

What is AI? Artificial Intelligence (AI) is the field of computer science that builds systems able to perform tasks that normally require human intelligence: learning, reasoning, perception, language understanding and decision-making.

Early ideas and foundations (pre-1950s)
Ideas about intelligent machines date back centuries. In modern times, mathematical logic and early computing concepts (like Alan Turing's 1936 work on computability) provided the foundation. In 1950, Turing proposed the "Imitation Game" (Turing Test) to judge machine intelligence.

Birth of AI (1956)
The term "Artificial Intelligence" was coined at the Dartmouth workshop (1956). Researchers were optimistic that general intelligent machines would soon be built. Early research focused on symbolic reasoning and problem solving.

Symbolic AI and early successes (1950s–1970s)
Researchers developed programs that used rules and logic to prove theorems, play games (chess, checkers), and solve algebra. Knowledge representation and search algorithms were important. These systems relied on handcrafted rules and expert knowledge.

AI Winter(s) (1970s–1990s)
Expectations exceeded practical results. Funding dropped when symbolic approaches failed to scale to real-world complexity. Two periods of reduced interest and investment are called AI winters.

Rise of Machine Learning (1980s–2000s)
Instead of only hand-coded rules, researchers focused on learning from data. Neural networks were revisited (backpropagation in the 1980s). Probabilistic models and statistical learning (Bayesian methods, hidden Markov models) became important for speech and pattern recognition.

Big Data, GPUs and Deep Learning (2010s–present)
Access to large datasets, faster hardware (GPUs) and improved algorithms led to breakthroughs in deep learning (multi-layer neural networks). Systems achieved human-level performance in tasks like image recognition, speech recognition and language modelling. Transformer architectures (2017) enabled powerful language models such as BERT and GPT.

Modern AI and applications
AI today spans narrow/specialized systems — voice assistants, recommendation engines, medical image analysis, autonomous vehicles, fraud detection, and generative models producing text, images and code. Research continues on general intelligence, safety, fairness and ethics.

Key trends shaping AI

  • From rules to data-driven learning
  • From shallow models to deep learning
  • Increasing compute and data scale
  • Interdisciplinary integration: neuroscience, statistics, optimization
  • Focus on ethics, explainability and regulation

Summary timeline (short)

  • 1936: Computability theory (Turing)
  • 1950: Turing Test
  • 1956: Dartmouth workshop; term "AI" coined
  • 1950s–70s: Symbolic AI, logic and search
  • 1970s–90s: AI winters; rise of probabilistic methods
  • 1980s: Neural networks revived (backpropagation)
  • 2000s: Machine learning matures; large datasets
  • 2012: Deep learning breakthrough in image recognition
  • 2017: Transformer architecture introduced
  • 2020s: Large language models, widespread AI applications and ethical focus
📌 Examples
  • Voice assistants (Siri, Google Assistant, Alexa) use speech recognition and natural language processing to understand commands and respond.
  • Recommendation systems (Netflix, YouTube, Amazon) analyze user behaviour and item features to suggest movies, videos or products.
  • Autonomous vehicles use sensors, computer vision and decision-making algorithms to navigate roads.
  • Medical image analysis systems detect abnormalities in X-rays or MRIs using deep learning.
  • Fraud detection in banks uses machine learning models trained on transaction data to flag suspicious activity.
  • Chatbots and conversational agents (customer support bots, GPT-based chat models) generate human-like responses to queries.
🧮 Formulas
  1. \[Linear regression (prediction): y = mx + c\]
    \[Explanation: Predicts a numeric outcome y from input x using slope m and intercept c.\]
  2. \[Mean Squared Error (loss for regression): MSE = (1/n) * Σ(yi - ŷi)^2\]
    \[Explanation: Measures average squared difference between true values yi and predictions ŷi.\]
  3. \[Gradient descent update (single parameter): θ := θ - α * (dJ/dθ)\]
    \[Explanation: Iterative method to minimize a loss J by moving parameter θ in direction of negative gradient\]
    \[α is learning rate.\]
  4. \[Sigmoid activation: σ(z) = 1 / (1 + exp(-z))\]
    \[Explanation: Maps input z to a value between 0 and 1\]
    \[useful for binary outputs.\]
  5. \[Softmax (for multi-class probabilities): softmax(zi) = exp(zi) / Σj exp(zj)\]
    \[Explanation: Converts vector of scores into probabilities that sum to 1.\]
  6. \[Bayes' theorem (probabilistic reasoning): P(A|B) = P(B|A) * P(A) / P(B)\]
    \[Explanation: Updates probability of hypothesis A given evidence B.\]
🤖3

Types of AI

💡 KEY CONCEPT SUMMARY

Types of AI

Key Point: Accuracy = (True Positives + True Negatives) / (TP + TN + FP + FN)

Overview: Artificial Intelligence (AI) can be grouped by capability (what level of intelligence the system reaches) and by functionality (how the system behaves or processes information). Each classification helps understand current systems, research goals and limitations.

Classification by Capability

  • Narrow (Weak) AI: Designed for a specific task. Performs that task as well as or better than humans but cannot generalize beyond it. Examples: voice assistants, recommendation systems, image classifiers.
  • General (Strong) AI: A machine with human-level cognitive abilities across a wide range of tasks, understanding and reasoning like a person. This remains a research goal—not achieved yet.
  • Superintelligent AI: Hypothetical AI that surpasses human intelligence in all aspects (creativity, problem-solving, emotional intelligence). This is theoretical and the subject of ethical debate.

Classification by Functionality

  • Reactive Machines: No memory of past events; respond to current inputs only. They cannot learn from experience. Example idea: classical game-playing engines that evaluate positions only.
  • Limited Memory: Can use recent past data to make decisions (has a short-term memory). Most modern AI systems fall in this category (self-driving cars, chatbots that use conversation context).
  • Theory of Mind: AI that would understand beliefs, intentions and emotions of others. This level is still in development as research prototypes; not yet realized in full form.
  • Self-aware AI: An extension of Theory of Mind where the AI has consciousness and self-awareness. This is purely theoretical and does not exist today.

Key differences & how to read them:

  • Capability classification (Narrow/General/Super) describes the breadth and depth of intelligence.
  • Functionality classification (Reactive/Limited/ToM/Self-aware) describes the internal design and ability to model or remember the world.

Why this matters for students: Most practical AI you meet in daily life is Narrow AI implemented with Limited Memory designs. Understanding these categories clarifies what AI can and cannot do today, and frames ethical and safety discussions for future AI.

📌 Examples
  • Reactive Machine: Simple rule-based chess engine that evaluates moves from current board position only (classical example: early game-playing programs).
  • Limited Memory: Self-driving cars use recent sensor data and mapping history to make driving decisions; virtual assistants (Siri, Alexa) use recent dialogue context.
  • Theory of Mind: Research social robots like MIT’s Kismet (prototype research demonstrating basic social cues) — not full Theory of Mind yet.
  • Self-aware AI: No real-world examples — purely hypothetical and a subject of philosophical and ethical debate.
  • Narrow AI example: Netflix recommendation system suggests movies based on past viewing and other users’ behavior.
  • General AI (hypothetical): A single machine that could perform any intellectual task a human can (not yet built).
🧮 Formulas
  1. \[Accuracy = (True Positives + True Negatives) / (TP + TN + FP + FN)\]
  2. \[Precision = TP / (TP + FP)\]
  3. \[Recall (Sensitivity) = TP / (TP + FN)\]
  4. \[F1 Score = 2 * (Precision * Recall) / (Precision + Recall)\]
  5. \[Mean Squared Error (for regression) = (1/n) * Σ (y_i - ŷ_i)^2\]
  6. \[Bayes' Theorem (useful in probabilistic models): P(A|B) = [P(B|A) * P(A)] / P(B)\]
🤖4

Approaches and Techniques in AI

💡 KEY CONCEPT SUMMARY

Approaches and Techniques in AI

Key Point: Bayes' theorem: P(A|B) = P(B|A) × P(A) / P(B)

Artificial Intelligence (AI) is a set of methods that allow machines to perform tasks that normally require human intelligence. The topic 'Approaches and Techniques in AI' explains the main ways AI systems are built and the common techniques they use.

Major Approaches

  • Symbolic / Rule-based approach: Uses human-readable rules and logic to make decisions (if-then rules, logic inference). Good for clear, structured domains (e.g., expert systems for diagnosis).
  • Search and Planning: Solves problems by exploring possible states and actions (search trees). Techniques include uninformed search (BFS, DFS) and informed/heuristic search (A*).
  • Probabilistic approach: Handles uncertainty using probabilities and statistics (e.g., Bayesian networks, Markov models).
  • Machine Learning (Learning-based): Systems learn patterns from data instead of only following hard-coded rules. Includes supervised, unsupervised, and reinforcement learning.
  • Neural Networks / Deep Learning: Layers of connected artificial neurons learn complex patterns (used in image/speech recognition).
  • Evolutionary & Optimization approaches: Use ideas from natural evolution (genetic algorithms) or optimization to find good solutions.
  • Fuzzy Logic: Deals with reasoning that is approximate rather than fixed and exact (good for control systems where boundaries are vague).

Common Techniques

  • Search algorithms: Explore possible actions to reach a goal (BFS, DFS, A*). A* uses a heuristic to estimate the cost to reach the goal and is efficient when a good heuristic is available.
  • Knowledge representation and reasoning: Ways to encode facts, rules and relationships so a system can draw conclusions (semantic networks, logic).
  • Supervised learning: Learn a mapping from inputs to outputs using labeled examples (classification and regression). Algorithms: k-NN, decision trees, linear regression, SVMs, neural networks.
  • Unsupervised learning: Discover structure in unlabeled data (clustering like k-means, dimensionality reduction like PCA).
  • Reinforcement learning: An agent learns by trial and error to maximize cumulative reward (used in games, robotics).
  • Probabilistic inference: Use Bayes' theorem and graphical models to update beliefs given evidence.
  • Neural network training: Use backpropagation and gradient-based optimization to adjust weights to minimize error on training data.
  • Natural Language Processing (NLP) and Computer Vision: Techniques to process text and images (tokenization, embeddings, convolutional networks).

How the approaches relate: In practice, systems combine approaches—for example, a robot may use search & planning for pathfinding, probabilistic filters for sensor noise, and deep learning for vision.

Simple conceptual formulas (illustrative):

  • Bayes' theorem (probabilistic reasoning): P(A|B) = P(B|A) * P(A) / P(B)
  • Mean Squared Error (supervised regression loss): MSE = (1/n) * Σ (y_i - ŷ_i)^2
  • Gradient descent update (trainable parameter θ): θ := θ - α * (dJ/dθ) where α is learning rate
  • Sigmoid activation (neural unit): σ(x) = 1 / (1 + e-x)

Typical workflow in an AI system

  1. Understand the problem and choose an approach (rule-based, learning-based, hybrid).
  2. Collect and prepare data (if learning-based).
  3. Select model/algorithm (decision tree, neural network, planner, etc.).
  4. Train/encode the model (learning or writing rules).
  5. Evaluate using metrics and refine.
  6. Deploy and monitor in the real world.

Key point for Class 10: Approaches give the overall idea how to build intelligence (rules, search, probability, learning), while techniques are the concrete algorithms and methods (A*, Bayes, k-means, neural nets) used to implement them. Most real systems combine several approaches to handle perception, reasoning, decision-making and learning.

📌 Examples
  • Spam filter: supervised learning classifies emails as 'spam' or 'not spam' using features from email text and sender.
  • Route planning in maps: A* search finds the shortest path by using a heuristic (estimated distance) to the destination.
  • Voice assistants (Siri/Google Assistant): use NLP techniques and neural networks for speech recognition and understanding.
  • Recommendation systems (Netflix/Amazon): use machine learning (collaborative filtering) to suggest items based on past behavior.
  • Medical diagnosis expert system: rule-based system or probabilistic model suggests likely diseases from symptoms.
  • Face recognition: deep learning (convolutional neural networks) identifies people from images.
🧮 Formulas
  1. \[Bayes' theorem: P(A|B) = P(B|A) × P(A) / P(B)\]
  2. \[Mean Squared Error (MSE): MSE = (1/n) * Σ (y_i - ŷ_i)^2\]
  3. \[Gradient descent update: θ := θ - α * (∂J/∂θ)\]
    \[where α is the learning rate\]
  4. \[Sigmoid activation: σ(x) = 1 / (1 + e^-x)\]
  5. \[Accuracy (classification): Accuracy = (TP + TN) / (TP + TN + FP + FN)\]
🤖5

Intelligent Agents and Architecture

💡 KEY CONCEPT SUMMARY

Intelligent Agents and Architecture

Key Point: Agent function: f: PerceptSequence → Action (agent maps histories of percepts to actions).

What is an Intelligent Agent?

An intelligent agent is an entity (software or hardware) that perceives its environment through sensors and acts upon that environment through actuators to achieve goals. It maps percept sequences to actions: agent function f: percepts* → actions.

Key concepts

  • Percept: input received at one moment (e.g., a camera image).
  • Percept sequence: complete history of all percepts up to now.
  • Actuator: means by which an agent acts (motors, display, network messages).
  • Rationality: an agent is rational if it selects actions expected to maximize its performance measure given what it knows.

PEAS framework

Used to describe an agent’s task environment:

  • Performance: how success is measured (e.g., accuracy, time, safety).
  • Environment: where the agent operates (e.g., roads, web, home).
  • Actuators: how the agent acts (wheels, speakers, API calls).
  • Sensors: how the agent perceives (cameras, microphones, sensors).

Types of Environments

  • Observable: fully vs partially observable (does the agent get complete state information?).
  • Deterministic vs Stochastic: whether next state is determined entirely by current state and action.
  • Episodic vs Sequential: whether current decisions affect future decisions.
  • Static vs Dynamic: whether environment changes while agent is thinking.
  • Discrete vs Continuous and Single-agent vs Multi-agent.

Agent Architectures (Types of Agents)

Different internal designs (architectures) suit different problems:

  • Simple reflex agents: act only on current percept with condition-action rules. Good for simple, fully observable tasks.
  • Model-based reflex agents: maintain an internal state (model) of the world to handle partially observable environments.
  • Goal-based agents: choose actions to achieve specified goals; they can plan and evaluate future states.
  • Utility-based agents: use a utility function to prefer some world states over others and trade off between multiple objectives.
  • Learning agents: improve their performance (or model) over time using feedback from performance measures.

How architecture maps to components

Typical architecture components: sensors → perception module → world model → decision/planning (goal or utility) → actuator commands → actuators. Learning modules adjust rules, models or utility based on experience.

Design considerations

  • Choose sensors and actuators appropriate for the environment.
  • Select an architecture that balances simplicity and capability (reactive vs deliberative).
  • Define a clear performance measure and consider safety and ethical constraints.

Wrap-up

Intelligent agents combine sensing, reasoning, and acting. The architecture determines how they represent knowledge, make decisions, and learn. Matching the right agent type to the PEAS description and environment ensures effective behaviour.

📌 Examples
  • Thermostat (simple reflex): senses temperature, turns heating on/off by rule.
  • Roomba vacuum (model-based reflex + reactive): senses obstacles and dirt, keeps a map, uses rules to navigate and clean.
  • Chess program (goal-based): searches moves to achieve the goal of checkmate; plans several steps ahead.
  • Self-driving car (hybrid: reactive + model + utility): uses sensors (lidar, camera), models world, plans routes, and optimizes safety and comfort.
  • Smart assistant (learning agent): observes user queries, learns preferences, and improves responses over time.
  • Recommender system (utility-based + learning): estimates utility (user satisfaction) of items and suggests those with highest expected utility.
🧮 Formulas
  1. \[Agent function: f: PerceptSequence → Action (agent maps histories of percepts to actions).\]
  2. \[Rational action selection: a* = argmax_a E[Performance | do(a)\]
    \[belief] (choose action maximizing expected performance).\]
  3. \[Expected utility: EU(a) = Σ_o P(o | a) × U(o) (sum over possible outcomes o of probability times utility).\]
  4. \[Belief/state update (informal): belief' = update(belief\]
    \[action\]
    \[percept) (model-based agents update their internal state after acting and perceiving).\]
📊6

Data: Collection and Preparation

💡 KEY CONCEPT SUMMARY

Data: Collection and Preparation

Key Point: Mean (average): μ = (1/n) * Σ(xi) for i = 1 to n

What is data collection and preparation? Data collection is the process of gathering raw information relevant to a task or problem. Data preparation (also called data preprocessing) is the set of steps that clean, transform and format that raw data so it can be used by AI and machine-learning models.

Why it matters: Quality and suitability of data determine the performance, fairness and reliability of AI models. Poor or biased data produces poor or biased models.

Types and sources of data

  • Structured data: tables, numbers, categories (e.g., spreadsheets, databases).
  • Unstructured data: text, images, audio, video (e.g., social media posts, photos).
  • Primary sources: surveys, sensors, experiments, logs collected directly.
  • Secondary sources: public datasets, APIs, scraped data, research repositories.

Key steps in data collection

  • Define objective and what labels (target) are needed.
  • Choose data sources and collection methods (surveys, sensors, scraping, public datasets).
  • Ensure ethical and legal compliance (consent, privacy, licensing).
  • Label or annotate data if supervised learning is needed.

Data preparation workflow

  1. Data inspection: examine types, missing values, distributions and class balance.
  2. Cleaning: remove or correct errors, handle missing values, remove duplicates and inconsistent records.
  3. Handling missing values: delete rows/columns, impute with mean/median/mode, or use model-based imputation.
  4. Outlier detection and treatment: detect using IQR or z‑score; remove or cap extreme values where appropriate.
  5. Feature engineering: create new features (e.g., date → day/month), aggregate or bin continuous variables.
  6. Encoding categorical variables: label encoding for ordinal data, one-hot encoding for nominal categories.
  7. Scaling and normalization: bring features to comparable ranges (min–max scaling or z‑score standardization).
  8. Balancing datasets: address imbalanced classes by oversampling, undersampling or synthetic methods (e.g., SMOTE).
  9. Splitting data: divide into training, validation and test sets (common splits: 70/30, 80/20, or 60/20/20) and consider k‑fold cross validation for robust evaluation.

Data quality dimensions: accuracy, completeness, consistency, timeliness, uniqueness and validity. Validate data against expected ranges and formats.

Notes on reproducibility: document data sources, random seeds, preprocessing pipelines and transformations so results can be reproduced.

📌 Examples
  • Retail sales forecasting: Collect historical sales (date, store, item, price), clean missing prices, create features (day of week, holiday flag), encode store and item as categorical, scale numeric features, split into train/test to build a demand-prediction model.
  • Image classification for medical scans: Collect labeled X‑ray images, remove low-quality scans, resize images to a common size, apply normalization and data augmentation (flip, rotate) to increase data, ensure class balance to avoid bias toward more common diagnoses.
  • Spam detection in emails: Gather raw emails (text + label spam/ham), clean text (remove headers, stopwords, punctuation), convert text to numeric features (TF‑IDF or word embeddings), handle class imbalance and split data for training and testing.
  • Traffic sensor data for smart city: Collect time-stamped vehicle counts, fill short missing intervals by interpolation, detect and correct sensor spikes (outliers), aggregate to hourly counts and standardize features before modeling traffic flow.
🧮 Formulas
  1. \[Mean (average): μ = (1/n) * Σ(xi) for i = 1 to n\]
  2. \[Variance: σ² = (1/n) * Σ(xi - μ)²\]
    \[Standard deviation: σ = sqrt(σ²)\]
  3. \[Min–max normalization: x' = (x - min(X)) / (max(X) - min(X)) → scales to [0,1]\]
  4. \[Z‑score standardization: z = (x - μ) / σ → mean 0 and standard deviation 1\]
  5. \[Interquartile range (IQR): IQR = Q3 - Q1\]
    \[Typical outlier thresholds: lower < Q1 - 1.5*IQR or upper > Q3 + 1.5*IQR\]
  6. \[Class balance ratio: ratio_class = count(class) / total_count\]
⚙️7

Machine Learning (ML)

💡 KEY CONCEPT SUMMARY

Machine Learning (ML)

Key Point: Linear regression (simple): y = m*x + c (predicts a numeric y from one input x)

What is Machine Learning? Machine Learning (ML) is a branch of Artificial Intelligence that enables computers to learn patterns from data and make predictions or decisions without being explicitly programmed for each task. Instead of writing rules, we provide data and let the machine build a model that generalises to new data.

Key ideas: ML uses examples (data) consisting of features (input variables) and often labels (desired outputs) to train a model. The trained model is evaluated on unseen data to check how well it generalises.

Typical workflow:

  • Collect and prepare data (cleaning, selecting features).
  • Split data into training and testing sets.
  • Choose an algorithm (model) and train it on the training set.
  • Evaluate performance on the test set and tune the model if needed.
  • Deploy the model to make predictions on new data.

Main types of ML:

  • Supervised learning: Learns from labelled data (input → known output). Used for classification (categories) and regression (numerical prediction).
  • Unsupervised learning: Finds structure in unlabelled data, e.g., clustering similar items or reducing dimensions.
  • Reinforcement learning: Learns by trial-and-error, receiving rewards or penalties for actions in an environment.

Common algorithms (examples): Linear regression (for predicting numbers), logistic regression and decision trees (for classification), k-means (for clustering), and neural networks (for complex tasks like image recognition).

Important concepts: Overfitting (model learns noise and fails on new data) and underfitting (model too simple to capture patterns). Regular evaluation using metrics and validation techniques (like cross-validation) helps avoid these problems.

📌 Examples
  • Email spam detection (supervised classification): model learns from examples of "spam" and "not spam" emails to classify incoming mail.
  • Predicting house prices (supervised regression): model predicts price from features such as area, number of rooms and location.
  • Customer segmentation (unsupervised clustering): grouping customers by buying behaviour to target marketing.
  • Handwritten digit recognition (supervised, neural networks): model recognises digits 0–9 from image pixels.
  • Recommendation systems (unsupervised + supervised): suggest movies or products based on user history and patterns.
  • Game playing (reinforcement learning): program learns to play games (e.g., chess, video games) by trial-and-error and rewards.
🧮 Formulas
  1. \[Linear regression (simple): y = m*x + c (predicts a numeric y from one input x)\]
  2. \[Sigmoid (used in logistic regression): σ(z) = 1 / (1 + e^{-z}) (maps real numbers to 0–1 probabilities)\]
  3. \[Mean Squared Error (MSE) for regression: MSE = (1/n) * Σ(yi - ŷi)^2 (average squared difference between actual and predicted values)\]
  4. \[Accuracy (classification): Accuracy = (TP + TN) / (TP + TN + FP + FN)\]
  5. \[Precision: Precision = TP / (TP + FP)\]
  6. \[Recall (Sensitivity): Recall = TP / (TP + FN)\]
⚙️8

Neural Networks and Deep Learning

💡 KEY CONCEPT SUMMARY

Neural Networks and Deep Learning

Key Point: Neuron weighted input (linear part): z = w1*x1 + w2*x2 + ... + wn*xn + b

What is a Neural Network?
A neural network is a computing system inspired by the human brain. It is made of many simple units called neurons (or nodes) connected in layers. Each neuron receives inputs, multiplies them by weights, adds a bias, and applies an activation function to produce an output. Layers are arranged so that outputs of one layer become inputs to the next.

Structure
Typical parts: an input layer (features), one or more hidden layers (where learning happens), and an output layer (predictions). A network with many hidden layers is called a deep neural network, and the field that studies and uses these is called deep learning.

How learning happens
Learning means adjusting the weights and biases so the network’s outputs match the correct answers on training data. The main steps are:

  • Forward pass: compute outputs by passing inputs through the network.
  • Loss calculation: measure the difference between predicted outputs and true values using a loss function.
  • Backpropagation: compute gradients (how much each weight contributed to the error).
  • Update weights: change weights slightly using an optimizer (e.g., gradient descent) to reduce loss.

Key concepts made simple
Activation functions add non-linearity so networks can learn complex patterns. Common ones: sigmoid, ReLU (rectified linear unit), softmax (for multi-class outputs). Deep learning works well for images, speech, and language because many layers can learn hierarchical features (edges → shapes → objects).

Why deep networks?
Shallow models struggle to represent complex relationships. Deep networks automatically learn features from raw data, reducing the need for manual feature design. For example, in image recognition early layers detect edges, middle layers detect textures and shapes, later layers detect whole objects.

Important practical points
Training requires labeled data (supervised learning) for tasks like classification or regression. It also needs computing power (GPUs) and care to avoid overfitting (when the model learns training noise instead of general patterns). Techniques to improve learning include regularization, dropout, and using more data.

📌 Examples
  • Image recognition: A deep network classifies photos as 'cat' or 'dog' by learning visual patterns from many labeled images.
  • Voice assistants: Neural networks convert audio to text and interpret user commands (speech recognition and natural language understanding).
  • Handwriting recognition: Networks read handwritten digits (used in postal code reading or digitizing forms).
  • Recommendation systems: Netflix or YouTube use deep models to predict videos you might like based on past behavior.
  • Medical imaging: Deep learning helps detect diseases from X-rays or MRI scans by spotting patterns radiologists may miss.
🧮 Formulas
  1. \[Neuron weighted input (linear part): z = w1*x1 + w2*x2 + ... + wn*xn + b\]
  2. \[Neuron output with activation: y_hat = activation(z)\]
  3. \[Sigmoid activation: sigmoid(z) = 1 / (1 + e^{-z})\]
  4. \[ReLU activation: ReLU(z) = max(0\]
    \[z)\]
  5. \[Softmax for class i: softmax_i(z) = e^{z_i} / sum_j e^{z_j} (used for multi-class probabilities)\]
  6. \[Mean Squared Error (MSE) loss: MSE = (1/N) * sum_{k=1..N} (y_k - y_hat_k)^2\]
🤖9

Natural Language Processing (NLP)

💡 KEY CONCEPT SUMMARY

Natural Language Processing (NLP)

Key Point: Chain rule for sentence probability: P(w1,w2,...,wn) = Π_{i=1..n} P(wi | w1...w_{i-1}) (general; used in language modelling)

What is NLP? Natural Language Processing (NLP) is a branch of Artificial Intelligence that enables computers to understand, interpret, and generate human language (text or speech). NLP connects human communication and computer understanding so machines can perform language tasks such as translation, summarization, and conversation.

Why it matters (Class 10 level): Humans use natural language to communicate. NLP lets applications read and respond to these inputs — making technology more useful and accessible (e.g., chatbots, voice assistants, search engines).

Common NLP tasks:

  • Tokenization: Splitting text into words or sentences.
  • Part-of-Speech (POS) Tagging: Identifying grammar roles (noun, verb, adjective).
  • Named Entity Recognition (NER): Finding names of people, places, dates.
  • Parsing: Analyzing sentence structure (grammar trees).
  • Sentiment Analysis: Determining if text shows positive/negative feelings.
  • Machine Translation: Translating text between languages (e.g., English → Hindi).
  • Text Summarization: Producing a short summary of a long document.

Basic NLP pipeline:

Text input → Preprocessing (lowercase, remove punctuation) → Tokenization → Feature extraction (bag-of-words, TF-IDF, embeddings) → Model (classification, sequence model) → Output (translation, label, reply).

Approaches: Rule-based systems (hand-written grammar rules), Statistical methods (probabilities from data), and Modern Deep Learning (word embeddings, neural networks, transformers like BERT). For Class 10, it is enough to know that older systems used rules and statistics, while newer systems learn patterns from lots of examples.

Challenges: Ambiguity (same word, different meaning), slang, multiple languages, idioms and sarcasm, lack of labelled data for some languages.

Benefits and applications: Improves accessibility (readers, voice control), automates tasks (customer support), helps learning (language translation), and supports search and information extraction.

📌 Examples
  • Chatbots and virtual assistants (e.g., Google Assistant, Siri) that answer questions and follow commands.
  • Machine translation tools like Google Translate converting text between languages.
  • Spell-check and autocorrect in mobile keyboards.
  • Email filters and spam detection that classify messages.
  • Sentiment analysis on social media to find public opinion about a product.
  • Text summarization that creates short summaries of long articles or reports.
🧮 Formulas
  1. \[Chain rule for sentence probability: P(w1,w2,...,wn) = Π_{i=1..n} P(wi | w1...w_{i-1}) (general\]
    \[used in language modelling)\]
  2. \[Bigram approximation: P(w1...wn) ≈ Π_{i=1..n} P(wi | w_{i-1}) (simpler statistical model)\]
  3. \[Naive Bayes classification: P(Class | Text) = P(Text | Class) * P(Class) / P(Text) (used for text classification\]
    \[assumes word independence)\]
  4. \[TF–IDF (term weighting): TFIDF(t,d) = TF(t,d) * log(N / DF(t)) where TF = term frequency\]
    \[DF = document frequency\]
    \[N = total documents\]
  5. \[Cosine similarity for embeddings: cosine(A,B) = (A · B) / (||A|| * ||B||) (measures similarity between word or document vectors)\]
💻10

Computer Vision

💡 KEY CONCEPT SUMMARY

Computer Vision

Key Point: Image as matrix: I(i, j) represents the pixel value at row i and column j. For color images, I(i, j) = [R, G, B].

What is Computer Vision?
Computer Vision is a field of Artificial Intelligence that enables computers to 'see', interpret and make decisions from visual data such as images and videos. It converts images into numerical information and uses algorithms and models to recognize patterns, objects, motions and scenes.

How it works (basic pipeline)

  1. Image acquisition: Capture using a camera or sensor; an image is represented as a matrix of pixel values.
  2. Pre-processing: Improve quality and make data uniform (e.g., resize, denoise, convert to grayscale, normalize).
  3. Feature extraction: Compute useful information (edges, corners, textures) using filters or learned features (CNN layers).
  4. Recognition / Interpretation: Use algorithms or machine learning models to classify, detect, or segment objects.
  5. Post-processing and decision: Refine results (non-maximum suppression, thresholding) and take actions (alerts, counts, navigation).

Main tasks: image classification (label an image), object detection (find & locate objects with bounding boxes), image segmentation (pixel-level labeling), face recognition, optical character recognition (OCR), motion tracking.

Common techniques: simple image processing operations (filters, morphological ops), feature descriptors (SIFT, ORB — advanced topics), and deep learning methods, especially Convolutional Neural Networks (CNNs) which learn good feature extractors from data.

Why it matters for Class 10 AI: At this level, understanding how images are represented, basic processing (grayscale, thresholding, edge detection) and seeing how models use features to make decisions is the goal. Computer Vision is used in many everyday technologies you interact with.

📌 Examples
  • Smartphone camera: autofocus, scene detection and automatic color correction.
  • Face unlock on phones: detecting and recognizing a face to grant access.
  • Self-driving cars: detecting lanes, pedestrians, traffic signs and other vehicles.
  • Medical imaging: detecting fractures or anomalies in X-rays and MRIs.
  • Optical Character Recognition (OCR): converting printed or handwritten text into editable text (scanned notes to digital).
  • Security cameras: motion detection and suspicious-object alerts.
🧮 Formulas
  1. \[Image as matrix: I(i\]
    \[j) represents the pixel value at row i and column j\]
    \[For color images\]
    \[I(i\]
    \[j) = [R\]
    \[G\]
    \[B].\]
  2. \[Convert RGB to grayscale (weighted): Gray = 0.299·R + 0.587·G + 0.114·B\]
  3. \[Convolution (filtering) at position (x,y): (I * K)(x,y) = Σ_u Σ_v I(x + u\]
    \[y + v) · K(u\]
    \[v) — sums over kernel K indices.\]
  4. \[Gradient magnitude (edge strength) from horizontal (Gx) and vertical (Gy) derivatives: |G| = sqrt(Gx^2 + Gy^2) (often approximated by |Gx| + |Gy|).\]
  5. \[Simple thresholding (binary image): B(i,j) = 1 if I(i,j) ≥ T\]
    \[else 0\]
    \[where T is a chosen threshold.\]
  6. \[Accuracy for a classifier: Accuracy = (TP + TN) / (TP + TN + FP + FN)\]
🤖11

AI Development Pipeline

💡 KEY CONCEPT SUMMARY

AI Development Pipeline

Key Point: Accuracy = (TP + TN) / (TP + TN + FP + FN) — proportion of correct predictions.

What is an AI Development Pipeline?

An AI Development Pipeline is a structured sequence of steps followed to build, evaluate, deploy and maintain an AI system. It turns a real-world problem into a working AI application by moving from problem definition through data handling, model building, testing and deployment.

Main stages of the pipeline

  • 1. Problem definition: Define the goal (e.g., classify emails as spam/not-spam, predict student scores). Decide success criteria and evaluation metrics.
  • 2. Data collection: Gather relevant data (text, images, sensor readings, etc.). Good quality and representative data are essential.
  • 3. Data preprocessing: Clean data (handle missing values, remove noise), normalize/scale features, and label data if needed.
  • 4. Feature engineering: Transform raw data into meaningful inputs (e.g., TF-IDF for text, pixel normalization for images, derived features like age groups).
  • 5. Model selection: Choose a suitable algorithm (decision tree, logistic regression, neural network) based on the task and data size.
  • 6. Training: Use training data to teach the model by minimizing a loss function. Adjust parameters (weights) with optimization methods (like gradient descent).
  • 7. Evaluation: Measure model performance on validation/test data using selected metrics (accuracy, precision, recall, F1, MSE). Use techniques like cross-validation to check generalization.
  • 8. Hyperparameter tuning: Change settings that are not learned (e.g., learning rate, number of layers) to improve performance.
  • 9. Deployment: Integrate the trained model into an application (web app, mobile app, embedded system) so users can access it.
  • 10. Monitoring & maintenance: Monitor model performance in the real world, collect new data, and retrain or update the model when performance drops (concept drift).

Key principles

  • Iterative process: You often loop back—poor evaluation may require more data or different features.
  • Data quality matters more than model complexity.
  • Ethics & privacy: Ensure data is used responsibly, remove bias, and protect user privacy.

Typical workflow example (short): Define problem → collect labeled data → preprocess & create features → split into train/validation/test sets → train model → evaluate & tune → deploy → monitor.

📌 Examples
  • Spam detection: Collect emails labeled as 'spam' or 'not spam', preprocess text (remove stopwords), extract features (bag-of-words or TF-IDF), train a classifier, evaluate with precision/recall, deploy as an email filter.
  • Voice assistant: Collect audio recordings and transcriptions, preprocess audio (noise reduction), extract features (MFCCs), train speech-to-text and intent-recognition models, evaluate accuracy, deploy on device with periodic updates.
  • Recommendation system (e.g., e-commerce): Collect user interactions and item data, create user/item features, train collaborative filtering or matrix factorization models, evaluate with measures like hit rate, deploy to serve real-time recommendations.
  • Medical diagnosis support: Collect medical images with diagnoses, preprocess images (resize, normalize), augment data, train a CNN, evaluate with sensitivity and specificity, use as a decision-support tool under clinician supervision.
  • Self-driving car perception: Collect camera/LiDAR data, label objects, preprocess sensor data, train object detection and lane-detection models, evaluate in simulation and real-world tests, deploy with continuous monitoring.
🧮 Formulas
  1. \[Accuracy = (TP + TN) / (TP + TN + FP + FN) — proportion of correct predictions.\]
  2. \[Precision = TP / (TP + FP) — proportion of positive predictions that are correct.\]
  3. \[Recall (Sensitivity) = TP / (TP + FN) — proportion of actual positives correctly identified.\]
  4. \[F1-score = 2 * (Precision * Recall) / (Precision + Recall) — harmonic mean of precision and recall.\]
  5. \[Mean Squared Error (MSE) = (1/n) * Σ(y_i - ŷ_i)^2 — average squared difference between actual and predicted (regression).\]
  6. \[Binary Cross-Entropy Loss = -(1/n) * Σ[ y_i*log(p_i) + (1 - y_i)*log(1 - p_i) ] — common loss for binary classification (p_i is predicted probability).\]
🤖12

Evaluation Metrics

💡 KEY CONCEPT SUMMARY

Evaluation Metrics

Key Point: Accuracy = (TP + TN) / (TP + TN + FP + FN)

What are Evaluation Metrics?
Evaluation metrics are numbers and charts used to measure how well an AI model performs. They help compare models, choose the best one, and understand errors. Different tasks (classification vs. regression) need different metrics.

Key ideas — Classification
For tasks where the model assigns categories (e.g., spam vs. not spam), we use the confusion matrix. The confusion matrix shows true vs predicted labels:

Predicted PositivePredicted Negative
Actual PositiveTrue Positive (TP)False Negative (FN)
Actual NegativeFalse Positive (FP)True Negative (TN)

From these values we compute metrics:

  • Accuracy — overall correctness: (TP + TN) / (TP + TN + FP + FN). Good when classes are balanced.
  • Precision — of predicted positives, how many are correct: TP / (TP + FP). Important when false alarms are costly.
  • Recall (Sensitivity) — of actual positives, how many were found: TP / (TP + FN). Important when missing positives is costly.
  • F1 score — harmonic mean of precision and recall: 2 * (Precision * Recall) / (Precision + Recall). Balances precision and recall.
  • Specificity — TN / (TN + FP), measures correct identification of negatives.

Key ideas — Regression
For tasks that predict continuous values (e.g., temperature), we measure error between predicted and actual values:

  • Mean Absolute Error (MAE) — average absolute difference: (1/n) * Σ |y_i - ŷ_i|. Simple and interpretable.
  • Mean Squared Error (MSE) — average squared difference: (1/n) * Σ (y_i - ŷ_i)^2. Penalizes big errors more.
  • Root Mean Squared Error (RMSE) — sqrt(MSE). Same units as predictions.

Choosing metrics
Pick metrics based on the problem. For example, in medical diagnosis you may prioritize recall (avoid missing sick patients). For a spam filter you may value precision (avoid marking important mail as spam). For balanced class problems accuracy can be useful; for imbalanced classes prefer precision/recall/F1.

Trade-offs
Often increasing precision lowers recall and vice versa. The F1 score helps compare models when both matter. ROC and Precision–Recall curves show performance across thresholds.

📌 Examples
  • Spam detection (binary classification): use precision to avoid marking important emails as spam, and recall to catch as much spam as possible. F1 balances both.
  • Medical diagnosis (disease vs no disease): prioritize recall (sensitivity) so fewer sick patients are missed; also monitor specificity to control false alarms.
  • Image classification (many balanced classes): use accuracy and class-wise precision/recall to check per-class performance.
  • Recommendation (predicting rating values — regression): use MAE or RMSE to measure how close predicted ratings are to actual ratings.
  • Weather forecasting (continuous prediction): use RMSE to penalize larger temperature prediction errors more than MAE.
🧮 Formulas
  1. \[Accuracy = (TP + TN) / (TP + TN + FP + FN)\]
  2. \[Precision = TP / (TP + FP)\]
  3. \[Recall (Sensitivity) = TP / (TP + FN)\]
  4. \[F1 score = 2 * (Precision * Recall) / (Precision + Recall)\]
  5. \[Specificity = TN / (TN + FP)\]
  6. \[False Positive Rate (FPR) = FP / (FP + TN)\]
🤖13

Applications of AI

💡 KEY CONCEPT SUMMARY

Applications of AI

Key Point: Accuracy = (Number of correct predictions / Total number of predictions) × 100

What are applications of AI? Applications of Artificial Intelligence (AI) are practical uses of techniques such as machine learning, natural language processing, computer vision and robotics to solve real-world problems, make decisions, automate tasks and provide intelligent behaviour in software and machines.

Main areas where AI is applied

  • Healthcare: AI helps in disease diagnosis (e.g., analysing X‑rays and MRIs), predicting patient outcomes, personalising treatment and managing electronic health records.
  • Education: Intelligent tutoring systems, personalized learning recommendations, automated grading and language-learning apps adapt to students' needs.
  • Agriculture: AI-powered crop monitoring, pest detection using images, yield prediction and smart irrigation increase productivity and reduce waste.
  • Transportation: Navigation apps, traffic prediction, driver-assist features and self-driving cars rely on AI for perception and decision-making.
  • Finance: Fraud detection, algorithmic trading, credit scoring and personalized financial advice use ML models to analyse patterns.
  • Customer Service: Chatbots and virtual assistants handle customer queries, book appointments and provide 24/7 support using NLP.
  • Manufacturing & Industry: Predictive maintenance, quality inspection (computer vision) and process automation improve efficiency.
  • Everyday Life: Recommendation systems (movies, products), voice assistants (Siri, Alexa), smart thermostats and home security use AI to simplify daily tasks.

How AI is typically used (simple pipeline)

  • Data collection → Data cleaning/preparation → Model training (learn patterns) → Model evaluation → Deployment → Continuous improvement.

Benefits and Limitations

  • Benefits: automation of repetitive tasks, faster and often more accurate decisions, scalability, personalised services.
  • Limitations: need for good data, possible bias, privacy and ethical concerns, lack of common-sense reasoning in many systems.

Important idea for Class 10: AI applications are not magic — they use data and algorithms to recognize patterns and make predictions. The same basic methods (e.g., classification for labels, regression for numeric prediction) are reused across many domains.

📌 Examples
  • Virtual assistants (Siri, Google Assistant) that understand voice commands and set reminders, play music, answer questions.
  • Recommendation systems (Netflix, YouTube, Amazon) that suggest movies, videos or products based on your past behaviour.
  • Medical image analysis where AI models help detect pneumonia or fractures from X‑ray images.
  • Spam filters in email services that classify messages as 'spam' or 'not spam' using patterns learned from examples.
  • Self‑driving car features (lane keeping, object detection) that use computer vision and sensor data to make driving decisions.
  • Smart irrigation systems that use weather and soil data to water crops optimally, saving water and improving yield.
🧮 Formulas
  1. \[Accuracy = (Number of correct predictions / Total number of predictions) × 100\]
  2. \[Precision = TP / (TP + FP) (TP = true positives\]
    \[FP = false positives)\]
  3. \[Recall (Sensitivity) = TP / (TP + FN) (FN = false negatives)\]
  4. \[Mean Squared Error (MSE) = (1/n) × Σ (y_i - ŷ_i)^2 (used for regression)\]
  5. \[Simple linear model (regression): ŷ = w·x + b (predict output ŷ from input x using weight w and bias b)\]
  6. \[Bayes' Theorem (useful in probabilistic reasoning): P(A|B) = [P(B|A) × P(A)] / P(B)\]
🤖14

Tools, Platforms and Languages

💡 KEY CONCEPT SUMMARY

Tools, Platforms and Languages

Key Point: Linear regression (prediction): y = w*x + b

What they are

Tools, platforms and languages are the software and environments used to build, train, evaluate and deploy Artificial Intelligence (AI) systems.

Languages: programming languages used to write AI code and algorithms (for example Python, R, Java, C++, JavaScript). Python is the most common because of its simplicity and rich AI libraries.

Tools and libraries: ready-made code components and frameworks that implement common AI functionality—data handling, model building, training routines and visualization. Examples: TensorFlow, Keras, PyTorch, scikit-learn, Weka, OpenCV. They speed development by providing tested implementations of algorithms.

Platforms and environments: where development, training and deployment run. This includes local IDEs and notebooks (Jupyter, VS Code), cloud platforms (Google Colab, AWS SageMaker, Azure ML, Google Cloud AI), and low-code/no-code platforms (RapidMiner, KNIME). Platforms often provide compute resources (CPUs, GPUs, TPUs), storage, versioning and deployment services.

How they fit in an AI workflow

  • Data collection & storage: databases, cloud storage, big-data tools (e.g., Google Cloud Storage, AWS S3, Hadoop).
  • Data preprocessing & exploration: pandas, NumPy, Jupyter/Colab notebooks, visualization tools (Matplotlib, Seaborn).
  • Model building & training: scikit-learn for classical ML, TensorFlow/Keras or PyTorch for deep learning.
  • Evaluation: metrics libraries, confusion matrix visualization, cross-validation utilities.
  • Deployment: cloud services, Docker containers, mobile/edge SDKs, APIs.

Choosing the right stack

  • For learning and prototyping: Python + Jupyter/Colab + scikit-learn/Keras.
  • For research/advanced deep learning: Python + PyTorch or TensorFlow + GPUs/TPUs.
  • For large-scale production: cloud platforms (AWS/GCP/Azure), containerization (Docker), orchestration (Kubernetes).

Advantages

  • Libraries reduce development time and bugs.
  • Cloud platforms provide scalable compute (useful for training large models).
  • Languages with strong ecosystems (Python/R) give many learning resources and community support.

Limitations & considerations

  • Compute cost (cloud GPUs/TPUs can be expensive).
  • Tool choice affects performance, ease of deployment and development speed.
  • Production systems require monitoring, security and maintenance in addition to model quality.
📌 Examples
  • Image recognition app: Python + Keras/TensorFlow for model training; OpenCV for image processing; Google Colab for free GPU training; deploy via a Flask API on a cloud VM.
  • Chatbot for a school website: Python + Rasa (tool), Jupyter for prototyping, deployed on a cloud platform (Heroku/Azure) with webhook integration.
  • Spam email classifier: Python + scikit-learn (tools) using logistic regression; use Jupyter notebook to preprocess email text and evaluate with accuracy/precision/recall.
  • Recommendation system for e-commerce: Apache Spark (platform) with MLlib, Scala or Python for code; deployed on cloud to handle large user data.
  • Voice assistant: Python + Kaldi or TensorFlow for speech recognition, deployed on devices or cloud; uses GPUs for model training.
🧮 Formulas
  1. \[Linear regression (prediction): y = w*x + b\]
  2. \[Mean Squared Error (MSE): MSE = (1/n) * Σ (y_i - ŷ_i)^2\]
  3. \[Sigmoid function (logistic): σ(z) = 1 / (1 + e^-z)\]
  4. \[Softmax for multi-class probabilities: softmax(z_i) = e^{z_i} / Σ_j e^{z_j}\]
  5. \[Accuracy: (TP + TN) / (TP + TN + FP + FN)\]
  6. \[Precision: TP / (TP + FP)\]
🤖15

Ethics, Safety and Social Impact

💡 KEY CONCEPT SUMMARY

Ethics, Safety and Social Impact

Key Point: Accuracy = (TP + TN) / (TP + TN + FP + FN) — proportion of correct predictions.

Ethics, Safety and Social Impact

AI systems are powerful tools that affect people’s lives. The topic covers three linked areas:

  • Ethics — moral principles that guide how AI is designed, deployed and used (fairness, privacy, transparency, accountability, consent).
  • Safety — making AI reliable and robust so it does not cause harm (testing, fail‑safes, human oversight, security).
  • Social Impact — how AI changes society (jobs, equality, access to services, law and policy).

Key ethical principles

  • Fairness: Avoiding unfair bias so people of different genders, races, ages, or backgrounds are treated equally by AI.
  • Privacy: Protecting personal data and collecting it with consent and minimal retention.
  • Transparency: Making AI decisions understandable — explaining why a decision was made (as far as possible).
  • Accountability: Assigning responsibility when AI causes harm — humans must be able to correct or stop systems.

Safety practices

  • Design for robustness: test models on varied data and against adversarial inputs.
  • Human-in-the-loop: keep humans involved for critical decisions (healthcare, driving, legal).
  • Fail-safe measures: set limits and fallbacks if the AI behaves unexpectedly.
  • Data security: encrypt and limit access to sensitive information.

Social impacts to consider

  • Employment: Automation can displace repetitive jobs but also create new roles—training and reskilling are needed.
  • Digital divide: Unequal access to AI tools can worsen social and economic disparities.
  • Bias and discrimination: Biased training data can lead to unfair treatment in lending, hiring, policing, etc.
  • Misinformation and deepfakes: AI can create realistic false content, impacting trust and democracy.

How to act responsibly (for students and developers)

  • Collect and use data lawfully and with consent.
  • Test models for different groups and measure performance separately.
  • Document design choices and be ready to explain decisions.
  • Include safety checks and human oversight in sensitive applications.

In short: build AI that is fair, safe, transparent and beneficial to society. Awareness of ethical issues lets us design better systems and make better choices when using AI.

📌 Examples
  • Facial recognition systems showing higher error rates for particular skin tones — lesson: check and fix bias in training data before deployment.
  • Autonomous vehicle emergency braking tested with humans in the loop — lesson: safety-critical AI needs rigorous testing and fallbacks.
  • Healthcare AI that suggests diagnoses — lesson: AI can assist doctors but final decisions should remain with qualified professionals and data privacy must be ensured.
  • Recommendation systems that create filter bubbles (only showing similar content) — lesson: design for diversity and user control.
  • Chatbots producing misleading or harmful advice when given bad prompts — lesson: limit scope, add guardrails and clearly show limitations.
  • Job automation in factories replacing repetitive tasks while creating new tech and maintenance roles — lesson: plan for reskilling and education.
🧮 Formulas
  1. \[Accuracy = (TP + TN) / (TP + TN + FP + FN) — proportion of correct predictions.\]
  2. \[Precision = TP / (TP + FP) — proportion of positive predictions that are correct (how many predicted positives are true).\]
  3. \[Recall (Sensitivity) = TP / (TP + FN) — proportion of actual positives correctly identified (how many real positives are found).\]
  4. \[F1 Score = 2 * (Precision * Recall) / (Precision + Recall) — harmonic mean of precision and recall\]
    \[useful for imbalanced data.\]
  5. \[False Positive Rate (FPR) = FP / (FP + TN) — important when false alarms are costly.\]
  6. \[Demographic parity difference = |P(ŷ=1 | Group A) - P(ŷ=1 | Group B)| — measures selection-rate difference between groups (lower is fairer).\]
🤖16

Limitations and Challenges

💡 KEY CONCEPT SUMMARY

Limitations and Challenges

Key Point: Confusion matrix terms: TP (true positive), TN (true negative), FP (false positive), FN (false negative).

Overview: Artificial Intelligence (AI) systems are powerful tools but have important limitations and face many practical challenges. These arise from the data they learn from, the algorithms themselves, hardware constraints, and social, legal and ethical factors. Understanding these limits helps students use AI responsibly and design better systems.

Main limitations and explanations

  • Data dependence: AI systems learn patterns from data. If data are limited, noisy, mislabeled or unrepresentative, the model will learn incorrect patterns. This causes poor performance in real-world situations not covered by the training data.
  • Bias and fairness: If training data reflect historical biases (gender, race, income), the model can reproduce or amplify them. Bias causes unfair or discriminatory outcomes.
  • Generalization and overfitting: A model may perform very well on training data but fail on new data (overfitting). Good models must generalize—learn underlying patterns, not memorise examples.
  • Interpretability and explainability: Many models (e.g., deep neural networks) are "black boxes." It can be hard to explain why they made a particular decision, which is a problem for trust and accountability.
  • Robustness and adversarial attacks: Small, carefully chosen changes to inputs (adversarial examples) can make models give wrong outputs. Models can also fail under unusual or noisy conditions.
  • Privacy and security: Training data may contain sensitive personal information. Collecting, storing and using such data raise privacy and legal issues; models themselves can sometimes reveal private data.
  • Computational and resource constraints: Training large models needs lots of computing power, memory and energy. This creates costs and limits deployment on low-power devices (e.g., smartphones).
  • Lack of common sense and reasoning: Most AI systems lack broad real-world knowledge and simple common-sense reasoning. They can make errors that a human would not make.
  • Regulation, ethics and social impact: Deploying AI affects jobs, legal responsibility, and social norms. Regulation and ethical design are required but often lag behind technology.
  • Data shift and maintenance: When the world changes (new user behaviour, new sensors), model performance can degrade. Models need ongoing monitoring and retraining.

Mitigation strategies (brief): collect diverse and high-quality data; use validation and cross-validation to detect overfitting; apply fairness-aware training and bias audits; use interpretable models or explanation tools; apply privacy-preserving methods (anonymisation, differential privacy); monitor models in production; optimize models for resource-constrained devices.

Why this matters for Class 10 students: Knowing these limitations helps you critically evaluate AI claims, design safer AI projects, and see where human oversight is essential.

📌 Examples
  • Hiring algorithm that favors one gender because the training data came from a past workforce dominated by that gender.
  • Facial recognition system with lower accuracy for certain ethnic groups, causing misidentification.
  • Self-driving car that misreads a partially covered stop sign (adversarial or real-world robustness issue).
  • Chatbot that confidently gives incorrect medical advice (hallucination / lack of common sense).
  • Health-diagnosis model trained on data from one hospital fails to work well for patients at another hospital (data shift).
  • Smartphone voice assistant recording private conversations or sending data to servers (privacy concerns).
🧮 Formulas
  1. \[Confusion matrix terms: TP (true positive)\]
    \[TN (true negative)\]
    \[FP (false positive)\]
    \[FN (false negative).\]
  2. \[Accuracy = (TP + TN) / (TP + TN + FP + FN)\]
  3. \[Precision = TP / (TP + FP)\]
  4. \[Recall (Sensitivity) = TP / (TP + FN)\]
  5. \[F1 score = 2 * (Precision * Recall) / (Precision + Recall)\]
  6. \[Cross-entropy loss (classification): L = -Σ y_i * log(p_i) (sum over classes i\]
    \[where y_i is true label indicator and p_i is predicted probability)\]
🤖17

Simple Projects and Classroom Activities

💡 KEY CONCEPT SUMMARY

Simple Projects and Classroom Activities

Key Point: Accuracy = (TP + TN) / (TP + TN + FP + FN)

Overview: Simple projects and classroom activities help students apply core AI concepts—data collection, feature extraction, model building, evaluation and deployment—in small, supervised settings. These activities reinforce theoretical ideas through hands‑on practice and encourage problem solving, teamwork and ethical thinking.

Typical project workflow (step‑by‑step)

  • Define the problem: decide whether it is classification, regression, clustering, or rule‑based automation.
  • Collect data: gather or create a small dataset (CSV, images, text, audio). Ensure variety and representative examples.
  • Label & clean data: remove duplicates/missing values and annotate examples if needed.
  • Feature selection / extraction: choose meaningful inputs (words counts, image pixels, sensor values). For text use token counts or simple bag‑of‑words; for images use resized grayscale or basic edge features.
  • Choose a simple model: decision tree, k‑NN, linear regression, Naive Bayes, small neural network, or rule‑based system depending on the task.
  • Train and test: split data into train/test (e.g., 80/20), train the model, evaluate on test set.
  • Evaluate & iterate: use metrics to measure performance, refine features or model, and repeat.
  • Present & reflect: show results, demonstrate model behaviour, discuss limitations, bias and ethical concerns.

Classroom activity ideas and learning goals

  • Spam detector (text classification): teaches text preprocessing, simple classifiers and evaluation metrics.
  • Weather/Temperature predictor (regression): introduces regression, plotting predictions vs actual values and error metrics.
  • Student clustering for study groups (clustering): shows unsupervised learning and how features group similar students.
  • Image classification (e.g., leaf vs non‑leaf): basic image preprocessing and model building.
  • Rule‑based chatbot or FAQ bot: demonstrates pattern matching and simple natural language interaction.

Classroom activity structure (45–90 minutes)

  1. Short intro & objective (5–10 min)
  2. Data exploration and cleaning (10–20 min)
  3. Feature engineering and choose model (10–20 min)
  4. Train & test (10–20 min)
  5. Discuss results, biases and ethical issues (10–15 min)

Ethics & good practices: use anonymized data, check for bias in labels or class imbalance, explain limitations, avoid collecting sensitive personal information without consent.

📌 Examples
  • Email spam detector: collect labeled emails (spam/ham), extract simple features (word frequencies), train Naive Bayes or decision tree and evaluate with accuracy and confusion matrix.
  • Simple weather predictor: use historical daily temperature data to build a linear regression that predicts tomorrow’s temperature; plot predicted vs actual values.
  • Plant health classifier: collect phone photos of healthy vs diseased leaves, resize images, train a small image classifier (or use feature matching) to detect disease.
  • Rule‑based chatbot for FAQs: create pattern–response pairs (if user asks X, reply Y) to simulate a basic conversational agent without machine learning.
  • Student grouping via clustering: use features like subject strengths and interests, apply k‑means to form study groups with similar profiles.
🧮 Formulas
  1. \[Accuracy = (TP + TN) / (TP + TN + FP + FN)\]
  2. \[Precision = TP / (TP + FP)\]
  3. \[Recall (Sensitivity) = TP / (TP + FN)\]
  4. \[F1 score = 2 * (Precision * Recall) / (Precision + Recall)\]
  5. \[Mean Absolute Error (MAE) = (1/n) * Σ |yi - ŷi|\]
  6. \[Mean Squared Error (MSE) = (1/n) * Σ (yi - ŷi)^2\]
🤖18

Careers and Future of AI

💡 KEY CONCEPT SUMMARY

Careers and Future of AI

Key Point: Accuracy = (TP + TN) / (TP + TN + FP + FN) — proportion of correct predictions (TP=true positives, TN=true negatives, FP=false positives, FN=false negatives).

What is this topic about? "Careers and Future of AI" explains the kinds of jobs AI creates, the skills students need, how AI will affect industries, and how a student (Class 10) can prepare for an AI career. It also outlines trends that shape future opportunities.

Key ideas

  • Types of AI roles: data scientist, machine learning (ML) engineer, AI researcher, AI product manager, AI ethicist, AI hardware engineer, AI UX designer, and prompt engineer.
  • Core skills: mathematics (algebra, probability), basic statistics, programming (Python), logical thinking, problem solving, and communication.
  • Education path: after Class 10 focus on Mathematics, Computer Science and Physics; later pursue B.Tech/B.E. (Computer Science / AI), BSc (Data Science), BCA, or integrated AI degrees; complement with online courses and internships.
  • Future trends: growth in healthcare AI (diagnosis), autonomous systems (self-driving), generative AI (content creation), edge AI (on-device intelligence), AI in agriculture, finance and education, and rising importance of AI ethics and regulation.

How AI affects jobs

AI will automate repetitive tasks but will also create new, higher-skilled jobs. Routine roles may shrink while roles requiring creativity, domain knowledge and AI oversight will grow. This means education should emphasize fundamental thinking, coding and domain expertise.

Practical tips for Class 10 students

  • Strengthen mathematics and learn basic programming (start with Python).
  • Participate in coding clubs, science fairs, and online AI courses (e.g., introductory ML or data science).
  • Build small projects: simple chatbots, image classifiers, or recommendation demos.
  • Learn communication and teamwork—AI projects are collaborative.

Career roadmap (short)

  1. Class 10–12: focus on Maths, CS and projects.
  2. Undergraduate (3–4 years): CS/AI/Data Science degree.
  3. Internships & certificates: practical experience, Kaggle or project portfolios.
  4. Advanced study or job: ML engineer, data scientist, or specialized roles; continuous learning as AI evolves.

Big picture: AI offers many career paths. Success comes from combining strong fundamentals (math + coding), real projects, and soft skills. Ethics and human oversight are becoming essential parts of AI careers.

📌 Examples
  • Chatbots in customer service: Many companies use AI chatbots to answer common customer queries 24/7, reducing human workload and speeding response times.
  • Recommendation systems: Netflix and Amazon use ML models to suggest movies or products based on user history, increasing engagement and sales.
  • Medical imaging: AI models help radiologists detect diseases (like certain cancers) in X-rays and MRIs faster and sometimes more accurately.
  • Autonomous vehicles: Companies like Tesla and Waymo use AI to process sensor data for driving decisions; engineers work on perception, planning and safety.
  • Smart farming: Drones and AI analyze plant health and soil conditions to recommend irrigation and fertilizer, increasing crop yield.
  • AI tutors and personalised learning: Educational platforms use AI to recommend lessons and practice based on a student's strengths and weaknesses.
🧮 Formulas
  1. \[Accuracy = (TP + TN) / (TP + TN + FP + FN) — proportion of correct predictions (TP=true positives\]
    \[TN=true negatives\]
    \[FP=false positives\]
    \[FN=false negatives).\]
  2. \[Precision = TP / (TP + FP) — of predicted positives\]
    \[how many are correct.\]
  3. \[Recall (Sensitivity) = TP / (TP + FN) — of actual positives\]
    \[how many were found.\]
  4. \[F1-score = 2 * (Precision * Recall) / (Precision + Recall) — harmonic mean of precision and recall.\]
  5. \[Mean Squared Error (MSE) = (1/n) * Σ (y_i - ŷ_i)^2 — common regression loss (y_i true, ŷ_i predicted).\]
  6. \[Gradient descent update (simple form): θ := θ - α * ∂J/∂θ — update model parameter θ by learning rate α and gradient of loss J.\]
🤖19

Glossary of Key Terms

💡 KEY CONCEPT SUMMARY

Glossary of Key Terms

Key Point: Accuracy = (TP + TN) / (TP + TN + FP + FN)

This glossary lists and explains the fundamental terms used in the Class 10 AI chapter 'Introduction to AI'. Each term includes a concise definition and its role in typical AI systems. Understanding these terms helps you read AI examples, follow algorithms, and interpret results.

  • Artificial Intelligence (AI): The field of computer science that builds systems able to perform tasks that normally require human intelligence (e.g., reasoning, perception, language).
  • Algorithm: A step-by-step procedure or set of rules a computer follows to solve a problem (e.g., training a model, sorting data).
  • Data: Raw facts or measurements (numbers, text, images) used as input for AI models.
  • Dataset: A collection of data samples organized for training or evaluating models; usually split into training, validation, and test sets.
  • Model: A learned representation (mathematical/ computational) that maps inputs to outputs. Training adjusts model parameters so it can make predictions.
  • Training: The process of adjusting a model’s parameters using labeled data so it learns patterns.
  • Testing / Evaluation: Measuring how well a trained model performs on new, unseen data (test set).
  • Feature: An individual measurable property of an object (e.g., height, color intensity, word frequency) used as input to models.
  • Label / Target: The correct answer or output the model should predict (e.g., class name, numeric value).
  • Supervised Learning: Training where each input has a corresponding label. Used for classification and regression tasks.
  • Unsupervised Learning: Training without labels; the model finds structure in the data (e.g., clustering, dimensionality reduction).
  • Reinforcement Learning: An agent learns by taking actions in an environment to maximize cumulative reward.
  • Classification: Predicting a category (discrete label) for a given input (e.g., spam or not spam).
  • Regression: Predicting a continuous numeric value (e.g., house price prediction).
  • Neural Network: A model composed of layers of interconnected nodes (neurons) that learn complex patterns from data; deep learning uses many layers.
  • Overfitting: When a model learns training data too well, including noise, and performs poorly on new data.
  • Underfitting: When a model is too simple to capture underlying patterns and performs poorly both on training and test data.
  • Bias: Systematic error in predictions (model assumptions that cause it to miss patterns). Often linked to underfitting.
  • Variance: Sensitivity of a model to fluctuations in the training data (high variance leads to overfitting).
  • Confusion Matrix: A table that summarizes classification predictions: True Positives (TP), True Negatives (TN), False Positives (FP), False Negatives (FN).
  • Accuracy: Fraction of correct predictions out of all predictions.
  • Precision: Of items predicted positive, the fraction that are actually positive (measures exactness).
  • Recall (Sensitivity): Of actual positives, the fraction correctly predicted (measures completeness).
  • F1-score: Harmonic mean of precision and recall; balances both metrics.
  • Loss (Cost) Function: A function that measures how far a model’s predictions are from actual values; training minimizes this loss.
  • Gradient Descent: An optimization method that updates model parameters by moving them in the direction that reduces loss.
  • Natural Language Processing (NLP): AI area dealing with understanding and generating human language (e.g., translation, chatbots).
  • Computer Vision: AI area focused on interpreting images and videos (e.g., object detection, face recognition).
  • Agent & Environment: In reinforcement learning, the agent takes actions and the environment responds with new states and rewards.

Tip: Many of these terms are connected — e.g., a dataset (data + labels) is used to train a model with an algorithm; the model’s performance is measured by metrics (accuracy, precision) calculated from a confusion matrix.

📌 Examples
  • Spam detection (Classification, Supervised Learning): Emails are features (words, sender) and labels (spam/not spam). A model is trained on labeled emails to predict spam.
  • Face unlocking on phones (Computer Vision, Neural Network): The model learns features of faces from many images and classifies whether a face matches the owner.
  • Movie recommendation (Unsupervised/Supervised hybrid): Features are user ratings and watch history; models cluster similar users or predict ratings.
  • Self-driving car (Reinforcement Learning + Computer Vision): Agent (car) observes environment (camera, lidar), takes actions (steer, brake), and learns from rewards (safety, progress).
  • Weather forecasting (Regression): Use past weather features to predict future temperature (continuous value) using regression models.
  • Voice assistants (NLP): Convert speech to text, interpret user intent, and generate responses using language models.
🧮 Formulas
  1. \[Accuracy = (TP + TN) / (TP + TN + FP + FN)\]
  2. \[Precision = TP / (TP + FP)\]
  3. \[Recall (Sensitivity) = TP / (TP + FN)\]
  4. \[F1-score = 2 * (Precision * Recall) / (Precision + Recall)\]
  5. \[Mean Squared Error (MSE) = (1/n) * Σ (y_pred_i - y_true_i)^2\]
  6. \[Gradient Descent update: w := w - η * ∇L(w) (η = learning rate, ∇L = gradient of loss)\]

Key Concepts

Artificial Intelligence (AI)
The branch of computer science that makes machines perform tasks that normally require human intelligence, like learning, reasoning, and problem solving.
Machine Learning (ML)
A subset of AI where computers learn patterns from data and improve their performance without being explicitly programmed for every task.
Deep Learning
A type of machine learning that uses multi-layered neural networks to learn complex patterns from large amounts of data.
Neural Network
A computing model inspired by the human brain, made of interconnected nodes (neurons) that process and transmit information.
Supervised Learning
A learning approach where the model is trained on labeled data (input-output pairs) so it can predict outputs for new inputs.
Unsupervised Learning
A learning method where the model finds patterns or groupings in unlabeled data without explicit output labels.
Reinforcement Learning
A learning technique where an agent learns by taking actions in an environment and receiving rewards or penalties.
Dataset
A collection of data used to train, validate, or test AI models, often organized in examples with features and (sometimes) labels.
Training
The process of feeding data to an AI model so it can learn patterns and adjust its internal parameters.
Testing
Evaluating a trained model on new, unseen data to measure its performance and generalization ability.
Model
A mathematical representation (often learned) that makes predictions or decisions based on input data.
Algorithm
A step-by-step procedure or set of rules used by a computer to solve problems or perform tasks in AI.
Feature
An individual measurable property or attribute of data used as an input to a model.
Label
The known output or category associated with an input example, used in supervised learning.
Classification
A type of supervised learning task where the model assigns inputs to discrete categories or classes.
Regression
A supervised learning task where the model predicts a continuous numeric value.
Natural Language Processing (NLP)
A field of AI that enables machines to understand, interpret, and generate human language.
Computer Vision
An area of AI focused on enabling machines to interpret and process visual information from images or videos.
Robotics
The study and use of robots—machines that can sense, plan, and act—often combined with AI for intelligent behavior.
Chatbot
A software application that uses AI (often NLP) to simulate conversation with human users, answering questions or performing tasks.

Practice Questions

  1. Define Artificial Intelligence and explain the difference between Narrow AI and General AI. / आर्टिफिशियल इंटेलिजेंस को परिभाषित कीजिए और संकीर्ण AI तथा सामान्य AI के बीच अंतर समझाइए।
    Show answer

    AI is the branch of computer science that builds systems able to perform tasks needing human intelligence, such as learning, reasoning and decision-making; Narrow (Weak) AI is designed for one specific task like a voice assistant, while General (Strong) AI is a hypothetical system with broad human-like intelligence across many tasks. / AI कंप्यूटर विज्ञान की वह शाखा है जो ऐसे सिस्टम बनाती है जो सीखने, तर्क करने और निर्णय लेने जैसे मानव बुद्धि की आवश्यकता वाले कार्य कर सकें; संकीर्ण (दुर्बल) AI किसी एक विशिष्ट कार्य जैसे वॉइस असिस्टेंट के लिए बनाया जाता है, जबकि सामान्य (सशक्त) AI एक काल्पनिक सिस्टम है जिसमें कई कार्यों में व्यापक मानव-सदृश बुद्धि होती है।

  2. How are AI, Machine Learning and Deep Learning related? / AI, मशीन लर्निंग और डीप लर्निंग आपस में कैसे संबंधित हैं?
    Show answer

    AI is the broad field of making intelligent machines; Machine Learning is a branch of AI where algorithms learn patterns from data instead of being explicitly programmed; Deep Learning is a type of ML that uses multi-layer neural networks to learn complex patterns. / AI बुद्धिमान मशीनें बनाने का व्यापक क्षेत्र है; मशीन लर्निंग AI की एक शाखा है जिसमें एल्गोरिद्म स्पष्ट रूप से प्रोग्राम किए बिना डेटा से पैटर्न सीखते हैं; डीप लर्निंग ML का एक प्रकार है जो जटिल पैटर्न सीखने के लिए बहु-स्तरीय न्यूरल नेटवर्क का उपयोग करता है।

  3. Differentiate between supervised and unsupervised learning with one example each. / पर्यवेक्षित और अपर्यवेक्षित अधिगम के बीच एक-एक उदाहरण सहित अंतर बताइए।
    Show answer

    Supervised learning uses labelled data to learn a mapping from input to known output, e.g., classifying emails as spam or not spam; unsupervised learning finds hidden structure in unlabelled data, e.g., grouping customers by buying behaviour using clustering. / पर्यवेक्षित अधिगम लेबल किए गए डेटा का उपयोग करके इनपुट से ज्ञात आउटपुट तक का मानचित्रण सीखता है, जैसे ईमेल को स्पैम या नॉन-स्पैम के रूप में वर्गीकृत करना; अपर्यवेक्षित अधिगम बिना लेबल वाले डेटा में छिपी संरचना खोजता है, जैसे क्लस्टरिंग द्वारा ग्राहकों को उनके खरीद व्यवहार के आधार पर समूहीकृत करना।

  4. What is an intelligent agent, and what does the PEAS framework describe? / बुद्धिमान एजेंट क्या है, और PEAS ढाँचा क्या वर्णन करता है?
    Show answer

    An intelligent agent is an entity that perceives its environment through sensors and acts on it through actuators to achieve goals; PEAS describes its task environment in terms of Performance measure, Environment, Actuators and Sensors. / बुद्धिमान एजेंट एक ऐसी इकाई है जो सेंसर के माध्यम से अपने वातावरण को समझती है और एक्चुएटर के माध्यम से लक्ष्य प्राप्त करने के लिए उस पर कार्य करती है; PEAS इसके कार्य-वातावरण को निष्पादन मापक, वातावरण, एक्चुएटर और सेंसर के रूप में वर्णित करता है।

  5. A spam classifier gives TP = 40, TN = 50, FP = 5, FN = 5. Calculate its accuracy. / एक स्पैम वर्गीकारक देता है TP = 40, TN = 50, FP = 5, FN = 5। इसकी सटीकता (accuracy) की गणना कीजिए।
    Show answer

    Accuracy = (TP + TN) / (TP + TN + FP + FN) = (40 + 50) / (40 + 50 + 5 + 5) = 90 / 100 = 0.90 or 90%. / सटीकता = (TP + TN) / (TP + TN + FP + FN) = (40 + 50) / (40 + 50 + 5 + 5) = 90 / 100 = 0.90 या 90%।

  6. Why is data quality important in building an AI model? / AI मॉडल बनाने में डेटा गुणवत्ता क्यों महत्वपूर्ण है?
    Show answer

    AI models learn patterns from data, so the quality and suitability of data directly determine the model's performance, fairness and reliability; poor or biased data produces poor or biased models. / AI मॉडल डेटा से पैटर्न सीखते हैं, इसलिए डेटा की गुणवत्ता और उपयुक्तता सीधे मॉडल के प्रदर्शन, निष्पक्षता और विश्वसनीयता को निर्धारित करती है; खराब या पक्षपाती डेटा खराब या पक्षपाती मॉडल बनाता है।

  7. Briefly describe how a Natural Language Processing (NLP) pipeline turns text into an output. / संक्षेप में बताइए कि प्राकृतिक भाषा संसाधन (NLP) पाइपलाइन पाठ को आउटपुट में कैसे बदलती है।
    Show answer

    Text input is preprocessed (lowercasing, removing punctuation), then tokenized into words or sentences, converted into numeric features (such as bag-of-words, TF-IDF or embeddings), passed through a model, which produces an output like a label, translation or reply. / पाठ इनपुट का पूर्व-संसाधन (छोटे अक्षर बनाना, विराम चिह्न हटाना) किया जाता है, फिर इसे शब्दों या वाक्यों में टोकनीकृत किया जाता है, संख्यात्मक विशेषताओं (जैसे बैग-ऑफ-वर्ड्स, TF-IDF या एम्बेडिंग) में बदला जाता है, मॉडल से गुज़ारा जाता है, जो लेबल, अनुवाद या उत्तर जैसा आउटपुट देता है।

  8. In Computer Vision, how is a digital image represented and how is an RGB image converted to grayscale? / कंप्यूटर विज़न में, डिजिटल छवि को कैसे निरूपित किया जाता है और RGB छवि को ग्रेस्केल में कैसे बदला जाता है?
    Show answer

    An image is represented as a matrix of pixel values where I(i, j) is the pixel at row i and column j (for colour images each pixel is [R, G, B]); an RGB image is converted to grayscale using the weighted formula Gray = 0.299·R + 0.587·G + 0.114·B. / छवि को पिक्सेल मानों के मैट्रिक्स के रूप में निरूपित किया जाता है जहाँ I(i, j) पंक्ति i और स्तंभ j पर पिक्सेल है (रंगीन छवियों के लिए प्रत्येक पिक्सेल [R, G, B] होता है); RGB छवि को भारित सूत्र Gray = 0.299·R + 0.587·G + 0.114·B द्वारा ग्रेस्केल में बदला जाता है।

Related Laws & Principles

Explore all

Foundational laws & principles connected to this chapter — tap to open in the Laws Explorer.

Loading related laws…
Sourced from 249 content files · LLOS Learn · browse all chapters