CBSE Class 10 Artificial Intelligence Comprehensive Study Guide

Unit 1: Revisiting AI Project Cycle & Ethical Frameworks for AI

Overview of the AI Project Cycle

  • Planning and Execution Analogy: Executing any real-world task (such as making a personalized greeting card) follows structured steps: gathering ideas, listing required resources, acquiring missing items, creating the product, rectifying/remaking if errors occur, and delivering the final result. Similarly, developing an Artificial Intelligence (AI) project requires a structured methodology known as the AI Project Cycle.

  • The Six Stages of the AI Project Cycle:

    1. Problem Scoping:

      • Defines the core aim and objective of the AI project.

      • Identifies key parameters and operational boundaries affecting the problem statement to bring clarity before execution.

    2. Data Acquisition:

      • Collects relevant datasets from reliable, authentic, and verified sources to serve as the foundational base for the project.

      • Ensures the acquired data aligns directly with the parameters defined during problem scoping.

    3. Data Exploration:

      • Converts raw visual or numerical data into structured representations such as graphs, charts, databases, maps, and flowcharts.

      • Enables developers to analyze patterns, trends, and underlying structures within the acquired datasets.

    4. Modelling:

      • Selects, constructs, and trains mathematical or machine learning algorithms based on the patterns discovered during data exploration.

      • Involves testing multiple algorithms to determine the most efficient architecture for generating predictions.

    5. Evaluation:

      • Tests the trained model against unseen, newly fetched datasets.

      • Measures performance parameters (such as accuracy, precision, and recall) to refine and optimize algorithm performance.

    6. Deployment:

      • Integrates the validated AI solution into real-world operational environments.

      • Ensures seamless interaction with end-users and stakeholders to deliver practical value and social impact.

Introduction to AI Domains

  • Categorization of AI Domains: Artificial Intelligence systems depend entirely on training datasets. AI models are broadly classified into three primary domains based on the data format processed:

    1. Statistical Data:

      • Definition: Relies on numerical, tabular, and structured data systems. The AI collects, maintains, and processes data to extract analytical insights and inform automated decision-making.

      • Applications & Real-World Examples: Price comparison platforms (e.g., PriceGrabber, PriceRunner, Junglee, Shopzilla, DealTime). These systems aggregate millions of real-time price points across technology, hospitality, automobile, and apparel sectors to allow cross-vendor comparisons.

    2. Computer Vision (CV):

      • Definition: Depicts the capability of a machine to acquire, screen, process, and analyze visual data (photographs, live video streams, infrared or thermal sensor output). It extracts pixel-level information and translates visual data into computer-readable descriptions for automated decision-making.

      • Applications & Real-World Examples:

        • Agricultural Monitoring: Camera-equipped drones capture aerial farm imagery to assess crop health, detect pest infestations, and predict harvest yields.

        • Surveillance Systems: Automated video analysis monitors public spaces, tracks vehicles or individuals, and delivers real-time safety alerts.

    3. Natural Language Processing (NLP):

      • Definition: Focuses on facilitating direct interaction between human languages (spoken or written text) and computers using specialized semantic and syntactic algorithms.

      • Applications & Real-World Examples:

        • Email Filters: Automated classification mechanisms (such as spam filters) that scan incoming text for specific keywords or phrase structures.

        • Machine Translation: Platforms such as Google Translate and Microsoft Translator parse sentence semantics and structure to execute real-time cross-language conversions.

Ethical Frameworks for AI

  • Framework: A structured, step-by-step methodology designed to guide systematic problem-solving, ensure all relevant factors are evaluated, and establish a common collaborative language.

  • Ethical Framework: Systematic guidelines integrating moral principles and human values into decision-making processes to prevent unintended negative consequences or harm.

  • Necessity in AI: AI systems increasingly act as decision-making or decision-influencing entities (e.g., automated recruitment systems showing bias against female applicants). Ethical frameworks ensure AI systems generate morally acceptable, non-biased, and equitable outputs prior to real-world deployment.

  • Factors Influencing Decision-Making:

    • Identity and location of affected entities/recipients.

    • Societal, cultural, and religious norms.

    • Internal personal intuition and core moral values.

    • Relative valuation assigned to human vs. non-human entities.

    • Presence of cognitive or systemic biases.

Categorization of Ethical Frameworks

  • 1. Sector-Based Frameworks: Tailored to specific fields or industrial domains.

    • Bioethics: Focuses on healthcare, life sciences, and clinical AI applications. Governs patient privacy, medical data protection, and clinical decision support systems.

    • Other Application Sectors: Finance, education, transportation, agriculture, governance, and law enforcement.

  • 2. Value-Based Frameworks: Rooted in foundational moral philosophies:

    • Rights-Based Framework: Prioritizes human dignity, fundamental rights, individual autonomy, and essential freedoms above secondary operational parameters.

    • Utility-Based Framework: Evaluates actions based on utilitarian principles—maximizing overall positive benefit and welfare for the greatest number of people while minimizing societal harm.

    • Virtue-Based Framework: Centers on the moral character, integrity, honesty, and compassion of the individuals and organizations designing and deploying the system.

Principles of Bioethics

  • Respect for Autonomy: Ensures complete transparency regarding automated decision-making. Users and patients must understand how models operate; training data and label logic should be reproducible, accessible, and explainable.

  • Non-Maleficence ("Do No Harm"): Mandates the total avoidance of physical, social, or emotional harm to human and non-human entities. When unavoidable tradeoffs exist, the system must select the path of absolute minimum harm.

  • Beneficence ("Ensure Maximum Benefit"): Proactively promotes well-being and positive social outcomes. AI solutions must exceed minimal safety metrics to actively deliver tangible clinical or operational benefits.

  • Justice: Demands equitable distribution of benefits, burdens, and resources across all individuals regardless of region, race, gender, or socioeconomic background.

Bioethics Case Study: Healthcare Resource Allocation AI

  • Context & Problem: An AI algorithm developed in the United States was designed to evaluate hospital patient datasets to identify high-risk individuals requiring specialized care management.

  • The Unintended Outcome: Patients from Western regions exhibited significantly more severe physical health conditions than non-Western patients who were assigned the exact same risk score by the algorithm.

  • Root Cause Analysis: The developers trained the model using historical healthcare expenditure data as a proxy for health risk, rather than actual clinical/physical metrics. Because less financial expenditure was historically allocated to Western region patients due to existing systemic disparities, the algorithm incorrectly inferred that these patients were less ill.

  • Application of Bioethical Solutions:

    • Respect for Autonomy: Provide full access to data labels and model decision mechanisms to healthcare providers and affected patients.

    • Non-Maleficence: Eliminate financial metrics from training pipelines to prevent inappropriate, discriminatory allocation of intensive care resources.

    • Beneficence: Train the system on unbiased, objective clinical markers (e.g., physiological metrics, diagnosis history) that reflect actual patient healthcare needs.

    • Justice: Actively account for underlying social determinants of health to ensure healthcare access is equitably distributed.

Self-Assessment & Review Questions

  • Question 1: What is the purpose of defining the problem statement during Problem Scoping?

    • Answer: B) To understand the aim and objective of the project.

  • Question 2: In what ways can AI models be categorized based on input data?

    • Answer: C) Three domains (Statistical Data, Computer Vision, NLP).

  • Question 3: What is the primary function of the system in Statistical Data?

    • Answer: B) Analyzing data to extract insights.

  • Question 4: What is the main goal of Computer Vision projects?

    • Answer: D) Converting digital visual data into computer-readable language.

  • Question 5: What is the primary focus of NLP?

    • Answer: C) Dealing with the interaction between computers and humans using natural language.

  • Question 6: What do frameworks provide in problem-solving?

    • Answer: B) Step-by-step guidance.

  • Question 7: How are Ethical Frameworks for AI categorized?

    • Answer: B) Into sector-based and value-based frameworks.

  • Question 8: What is the central focus of virtue-based value-based frameworks?

    • Answer: C) Aligning actions with ethical principles and beliefs.

  • Question 9: Which best describes rights-based value-based frameworks?

    • Answer: A) Prioritizing human rights and dignity, valuing human life over other considerations.

  • Question 10: What is the primary domain of application for Bioethics?

    • Answer: B) Healthcare and life sciences.

  • Question 11 (Assertion & Reasoning):

    • Assertion: Ethics provide guidance in distinguishing right from wrong.

    • Reasoning: Ethics consist of a set of values and morals that aid individuals in making moral judgments.

    • Answer: A) Both Assertion and Reasoning are true, and Reasoning is the correct explanation of the Assertion.

  • Question 12 (Assertion & Reasoning):

    • Assertion: Value-based frameworks in ethics provide guidance by focusing on fundamental ethical principles and values.

    • Reasoning: These frameworks reflect different moral philosophies guiding ethical reasoning and are concerned with assessing moral worth.

    • Answer: A) Both Assertion and Reasoning are true, and Reasoning is the correct explanation of the Assertion.

Unit 2: Advanced Concepts of Modeling in AI

Differentiating Artificial Intelligence, Machine Learning, and Deep Learning

  • Hierarchical Relationship: Artificial Intelligence (AI) is the umbrella field encompassing all systems that mimic human intelligence. Machine Learning (ML) is a subset of AI. Deep Learning (DL) is a specialized subset of Machine Learning.

  • Definitions:

    • Artificial Intelligence (AI): Any computational technique, code, or algorithm that enables machines to mimic human intelligence, sense their environment, and make decisions.

    • Machine Learning (ML): A mathematical subset of AI that gives systems the capability to automatically learn and improve performance from experience and historical data without being explicitly programmed for every scenario.

    • Deep Learning (DL): A specialized subset of ML based on multi-layered Artificial Neural Networks (ANNs) that enables software to train itself on vast, unstructured datasets by automatically discovering complex latent features.

Core Data Terminology

  • Data: Information structured or unstructured in any format (e.g., tabular databases containing fruit records).

  • Features: Individual measurable properties or attributes stored in dataset columns (e.g., color, weight, size).

  • Labels: Special target columns denoting the definitive category or ground truth outcome assigned to an instance (e.g., identifying a fruit as an "Apple" based on feature inputs).

  • Labeled Data: Raw data paired with explicit contextual tags, labels, or target outputs.

  • Unlabeled Data: Raw data points lacking attached tags, labels, or target outcomes.

  • Training Dataset: The initial subset of labeled data presented to an algorithm to facilitate pattern extraction and learning.

  • Testing Dataset: An independent subset of data (stripped of visible labels during prediction) utilized to evaluate model performance and prediction accuracy.

Approaches to AI Modelling

  • Rule-Based Approach:

    • The developer explicitly programs pre-defined rules, logical branching, and static algorithms into the machine along with input data to generate structured outputs.

    • Characteristics: Static learning behavior. The system cannot adapt to data changes outside its pre-programmed rules. If presented with unseen variations during operational testing, a rule-based system fails to improvise.

    • Example: Rule-based customer support chatbots utilizing strict decision-tree logic (e.g., checking order shipment status via precise keyword triggers).

  • Learning-Based Approach:

    • The algorithm dynamically detects latent patterns, rules, and mathematical relationships directly from the ingested training data without reliance on rigid, hand-coded instructions.

    • Characteristics: Adaptive learning behavior. The model continuously updates its decision boundaries when fed new data points, effectively handling unseen edge cases and exceptions.

Classifications of Machine Learning Models

  • 1. Supervised Learning:

    • Mechanism: The algorithm is provided with fully labeled datasets containing known input features along with target output labels.

    • Analogy: A student learning mathematics with step-by-step solved sample problems provided by a teacher.

    • Coin Weight Example: Given explicit training weights (1 Euro=5 g1\text{ Euro} = 5\text{ g}, 1 Dirham=7 g1\text{ Dirham} = 7\text{ g}, 1 Dollar=3 g1\text{ Dollar} = 3\text{ g}, 1 Rupee=4 g1\text{ Rupee} = 4\text{ g}), the model learns the feature-to-label map (WeightCurrency\text{Weight} \rightarrow \text{Currency}) to classify unknown coin weights accurately.

    • Sub-categories:

      • Classification Models: Predict discrete, categorical outputs (e.g., binary labels such as "Hot" vs. "Cold", "Spam" vs. "Not Spam", or multi-class categories).

      • Regression Models: Predict continuous mathematical numerical values along a smooth scale based on independent feature variables (e.g., house price forecasting, car resale price evaluation based on mileage, age, fuel type).

  • 2. Unsupervised Learning:

    • Mechanism: The algorithm ingests completely unlabeled datasets and independently identifies underlying structure, groupings, anomalies, or relationships without baseline guidance.

    • Analogy: A child discovering how to swim independently without formal instruction.

    • Sub-categories:

      • Clustering Models: Groups unlabeled data instances into distinct clusters based on feature similarities (e.g., segmenting supermarket shoppers into grocery vs. non-grocery buyers; clustering songs based on tempo and sound intensity).

      • Association Models: Uncovers co-occurrence rules and relationships between variables in databases (e.g., Association Rule mining revealing that a consumer buying bread exhibits a statistically high probability of purchasing butter).

  • 3. Reinforcement Learning:

    • Mechanism: An autonomous software agent learns optimal decision sequences within dynamic environments using trial-and-error mechanisms, earning environmental rewards for correct actions and penalties for incorrect ones.

    • Key Advantage: Requires minimal historical training data or pre-existing dataset mapping; highly adaptable to dynamic environments.

    • Real-World Applications: Autonomous car parking systems, humanoid robot locomotion control.

Artificial Neural Networks (ANN)

  • Biological Inspiration: Formulated based on the structural organization and functioning of biological neurons within the human brain.

  • Core Architectural Structure:

    • Input Layer: Receives raw input feature vectors. Performs zero mathematical processing; acts purely as an ingestion interface.

    • Hidden Layers: Intermediate layers consisting of interconnected computational blocks termed nodes. Each node applies mathematical weights (WW) and biases (BB) to incoming signals, passing the output through a mathematical activation function. Complex ANNs feature multiple hidden layers to extract high-level feature representations automatically.

    • Output Layer: Summarizes processed values from final hidden layers to deliver definitive predictions to the end-user. Performs zero core feature extraction processing.

  • Perceptron Decision Mechanism:

    • A single-layer computational node evaluates inputs (X1,X2,,XnX_1, X_2, \dots, X_n), multiplies them by assigned numerical importance weights (W1,W2,,WnW_1, W_2, \dots, W_n), adds a scalar bias weight (WBW_B), and sums them up against a threshold metric.

    • Mathematical Decision Example (Park Visit Scenario):

      • Inputs (XX): Jacket Available (X1X_1), Umbrella Available (X2X_2), Sunny Weather (X3X_3), Rain Forecast (X4X_4).

      • Assigned Weights (WW): W1=2W_1 = 2, W2=1W_2 = 1, W3=3W_3 = 3, W4=2.5W_4 = -2.5, Bias Weight WB=4W_B = -4.

      • Scenario A: Inputs = [1,0,1,1][1, 0, 1, 1]. Weighted Calculation: (1×2)+(0×1)+(1×3)+(1×2.5)+(1×4)=2+0+32.54=1.5(1 \times 2) + (0 \times 1) + (1 \times 3) + (1 \times -2.5) + (1 \times -4) = 2 + 0 + 3 - 2.5 - 4 = -1.5. Output is below threshold 00; action = Stay Indoors.

Self-Assessment & Review Questions

  • Question 1: In which ML type is data labeled with desired output?

    • Answer: a) Supervised Learning.

  • Question 2: An email spam filter learning from labeled examples is an application of:

    • Answer: a) Supervised Learning.

  • Question 3: Grouping similar customer purchases into clusters uses:

    • Answer: b) Unsupervised Learning.

  • Question 4: An AI agent playing a game learning from rewards/penalties is:

    • Answer: c) Reinforcement Learning.

  • Question 5: Which statement is NOT true about supervised learning?

    • Answer: c) Can be less efficient for large datasets (Incorrect premise; it is widely scalable).

  • Question 6: In unsupervised learning, the goal is to:

    • Answer: b) Identify patterns and relationships within unlabeled data.

  • Question 7: Clustering algorithms are used in unsupervised learning for:

    • Answer: d) Grouping similar data points.

  • Question 8: Reinforcement learning is particularly useful when:

    • Answer: b) The desired outcome is clear, but the path to achieve it is unknown.

  • Question 9: AI playing a game to win by trial and error is:

    • Answer: c) Reinforcement Learning.

  • Question 10: Artificial neural networks are inspired by:

    • Answer: a) The human brain.

  • Question 11: Adjusting weights in a neural network to improve performance is:

    • Answer: d) Training.

  • Question 12: A neural network with multiple interconnected hidden layers is a:

    • Answer: b) Deep Neural Network.

  • Question 13: Neural networks excel at:

    • Answer: b) Recognizing patterns in complex data like images and text.

  • Question 14: Training a neural network effectively often requires:

    • Answer: b) A significant amount of data and computational resources.

  • Assertion & Reasoning (Unsupervised Learning):

    • Assertion: Unsupervised Learning is learning without guidance.

    • Reasoning: Unsupervised models work on unlabeled datasets with random data inputs.

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

Unit 3: Evaluating Models

Concept & Importance of Model Evaluation

  • Definition: Model Evaluation is the systematic process of applying targeted mathematical metrics to assess a machine learning model's prediction accuracy, operational reliability, and generalizability on unseen real-world data.

  • Role in AI Cycle: Serves as a diagnostic feedback mechanism. Developers construct a model, evaluate performance metrics, refine hyperparameters, and iterate until the model achieves optimal performance targets.

The Train-Test Split Methodology

  • Procedure: Involves splitting an initial dataset into two non-overlapping subsets: a Training Set (used to build model internal weights) and a Testing Set (used purely for predictive validation).

  • Mitigating Overfitting: Evaluating a model using the exact same data points employed during training results in overfitting—a state where the model simply memorizes training instances verbatim, yielding high training performance but failing completely on new real-world inputs.

Basic Quantitative Metrics: Accuracy and Error

  • Error: The mathematical difference between the predicted output generated by a model and the actual ground truth value.

    Absolute Error=ActualPredicted\text{Absolute Error} = |\text{Actual} - \text{Predicted}|

    Error Rate=Absolute ErrorActual\text{Error Rate} = \frac{\text{Absolute Error}}{\text{Actual}}

  • Accuracy: Measures the ratio of correct predictions to total cases evaluated.

    Accuracy=1Error Rate\text{Accuracy} = 1 - \text{Error Rate}

    Accuracy %=Accuracy×100%\text{Accuracy \%} = \text{Accuracy} \times 100\%

Evaluation Metrics for Classification Models

  • The Confusion Matrix: A standard tabular layout enabling performance visualization of classification models by comparing actual ground truth labels against model-predicted categories.

Actual \ Predicted

Predicted Positive (1)

Predicted Negative (0)

Actual Positive (1)

True Positive (TP)

False Negative (FN)

Actual Negative (0)

True Negative (TN)

False Positive (FP)

  • Matrix Elements Defined:

    • True Positive (TP): Model correctly predicted positive category for a positive instance (e.g., patient with disease correctly flagged as infected).

    • True Negative (TN): Model correctly predicted negative category for a negative instance (e.g., healthy person correctly flagged as non-infected).

    • False Positive (FP - Type I Error): Model incorrectly flagged a negative instance as positive (e.g., healthy person falsely flagged as infected).

    • False Negative (FN - Type II Error): Model incorrectly flagged a positive instance as negative (e.g., infected patient falsely declared healthy).

  • Classification Metric Formulas:

    • Classification Accuracy: Overall proportion of correctly classified instances.

        Accuracy=TP+TNTP+TN+FP+FN\text{Accuracy} = \frac{\text{TP} + \text{TN}}{\text{TP} + \text{TN} + \text{FP} + \text{FN}}

        Paradox of Accuracy: Accuracy is unreliable for imbalanced datasets. For instance, in a dataset of 1,000 instances with 900 Positives and 100 Negatives, a faulty model predicting "Positive" unconditionally achieves a misleadingly high 90% accuracy despite total failure on Negative instances.

*   **Precision:** Measures prediction exactness—out of all instances predicted as Positive, how many are truly Positive?

        Precision=TPTP+FP\text{Precision} = \frac{\text{TP}}{\text{TP} + \text{FP}}

        Primary Application: Imbalanced datasets where False Positives carry severe costs or risks (e.g., satellite launch weather clearance, automated spam detection).

*   **Recall (Sensitivity / True Positive Rate):** Measures predictive completeness—out of all actual Positive cases, how many did the model successfully identify?

        Recall=TPTP+FN\text{Recall} = \frac{\text{TP}}{\text{TP} + \text{FN}}

        Primary Application: Imbalanced datasets where False Negatives carry fatal or catastrophic consequences (e.g., medical cancer diagnosis, COVID-19 screening, credit card fraud detection).

*   **F1 Score:** The harmonic mean balancing Precision and Recall into a single unified performance metric.

        F1 Score=2×Precision×RecallPrecision+Recall\text{F1 Score} = 2 \times \frac{\text{Precision} \times \text{Recall}}{\text{Precision} + \text{Recall}}

        Primary Application: Highly imbalanced datasets where both False Positives and False Negatives must be minimized simultaneously.

Ethical Considerations in Evaluation

  • Bias: Ensuring evaluation sets represent diverse demographic and operational distributions to prevent unfair predictive disparities across demographic groups.

  • Transparency: Maintaining clear, reproducible document trails detailing evaluation methodologies, dataset metrics, and parameter settings.

  • Accountability: Establishing responsibility mechanisms for real-world automated errors or systemic misclassifications.

Self-Assessment & Numerical Exercises

  • Numerical Problem 1 (Rare Disease Test Accuracy):

    • Given: Total = 1000; Actual Positives = 50; Actual Negatives = 950.

    • Results: TP = 40; FN = 10; FP = 30; TN = 920.

    • Accuracy=40+9201000=9601000=96%\text{Accuracy} = \frac{40 + 920}{1000} = \frac{960}{1000} = 96\%

  • Numerical Problem 2 (Exam Error Rate):

    • Correct = 90 / 100; Error count = 10.

    • Error Rate=10100=10%\text{Error Rate} = \frac{10}{100} = 10\%

  • Numerical Problem 3 (Spam Detection Precision):

    • Given: Total = 1000; Spam = 300; Correctly flagged Spam (TP) = 240; Legit marked as Spam (FP) = 60.

    • Precision=240240+60=240300=80%\text{Precision} = \frac{240}{240 + 60} = \frac{240}{300} = 80\%

  • Numerical Problem 4 (Binary Recall):

    • Predicted Positive = 70; TP = 50; FP = 20.

    • If total actual positive instances = 50, then FN = 0; Recall = 100%.

  • Numerical Problem 5 (Sentiment F1 Score):

    • Given: TP = 120; Total Actual Positives = 200 (thus FN = 80); FP = 40.

    • Precision=120120+40=0.75\text{Precision} = \frac{120}{120 + 40} = 0.75

    • Recall=120200=0.60\text{Recall} = \frac{120}{200} = 0.60

    • F1 Score=2×0.75×0.600.75+0.60=0.901.35=0.67\text{F1 Score} = 2 \times \frac{0.75 \times 0.60}{0.75 + 0.60} = \frac{0.90}{1.35} = 0.67

  • Numerical Problem 6 (Medical Diagnostic Precision):

    • Given: Disease cases = 100; TP = 90; Healthy marked sick (FP) = 50.

    • Precision=9090+50=90140=64.28%\text{Precision} = \frac{90}{90 + 50} = \frac{90}{140} = 64.28\%

  • Numerical Problem 7 (Absolute Error):

    • Predicted = 75; Actual = 80.

    • Absolute Error=8075=5\text{Absolute Error} = |80 - 75| = 5

Unit 4: Statistical Data & No-Code AI

Introduction to Data Science & Applications

  • Data Science Definition: A domain unifying mathematics, statistics, specialized programming, and machine learning to analyze raw dataset phenomena.

  • Major Applications:

    • Internet Search Engines: Processing petabytes of query data daily using ranking algorithms (e.g., Google processing over 20 petabytes/day).

    • Targeted Digital Advertising: Calculating real-time user Click-Through Rates (CTR) based on historic digital behavior.

    • Recommendation Engines: Analyzing past consumer behaviors to auto-suggest relevant goods or content (e.g., Amazon, Netflix, YouTube, Spotify, LinkedIn).

    • Genetics & Genomics: Integrating genomic structures with clinical research data to customize medical therapies.

High-Code vs. Low-Code vs. No-Code AI

Feature

Custom Code (High-Code)

Low-Code

No-Code

Development Approach

Manual programming (Python, C#, Java)

Visual templates + minor custom scripting

Pure visual drag-and-drop interfaces

Technical Expertise Needed

Advanced software developers

Basic coding knowledge

Zero technical programming knowledge

Cost Profile

Highly expensive

Moderately expensive

Minimal cost

Customization Flexibility

100% custom flexibility

Partial platform customization

Limited to built-in platform features

Rationale, Advantages, and Limitations of No-Code AI

  • Key Advantages: Eliminates syntax coding errors; significantly reduces implementation and labor costs; accelerates project deployment; democratizes AI development for non-technical domain experts (e.g., healthcare workers, zookeepers, educators).

  • Primary Disadvantages & Risks:

    • Lack of Flexibility: Developers are strictly constrained by pre-built system modules.

    • Automation Bias: Tendency for human users to unthinkingly trust automated machine recommendations while ignoring contradictory non-automated evidence.

    • Security Constraints: Limited access to lower-level data encryption or custom security architecture controls.

Overview of Popular No-Code AI Tools

  • Azure Machine Learning: Cloud platform by Microsoft (Released July 2014) for drag-and-drop dataset cleaning, training, and model deployment.

  • Google Cloud AutoML: Web-based service by Google (Released January 2018) enabling non-experts to build high-quality custom models.

  • Orange Data Mining: Open-source visual programming tool (University of Ljubljana, Released October 1996) providing comprehensive data exploration, visual pipelines, ML modeling, and validation widgets.

  • Lobe AI: Visual machine learning tool (Released 2015) focused on user-friendly image classification.

  • Teachable Machine: Fast web tool by Google (Released November 2017) running on TensorFlow.js to train computer vision, pose, or sound models in-browser.

Foundational Statistical Concepts

  • Statistical Sampling: Selecting a representative subset (sample) from a broader dataset (population) to execute statistical computations.

  • Descriptive Statistics:

    • Mean: The calculated arithmetic average.

    • Median: The middlemost score when elements are ordered sequentially.

    • Mode: The single value occurring with highest frequency.

  • Distributions: Graphical plots depicting frequency distributions. Unimodal symmetric curves center peak values (Normal Distribution), whereas asymmetric tailing produces Skewed Distributions.

  • Variance & Standard Deviation: Quantitative measures evaluating dataset dispersion around the mathematical mean.

  • Outliers: Anomalous data points lying at extreme numerical distances from other values.

Case Study: Palmer Penguins Classification in Orange Data Mining

  • Problem Scoping: Predict the specific species of Palmer Penguins (Adélie, Chinstrap, Gentoo) based on physical morphological measurements across Antarctic islands (Dream, Torgersen, Biscoe).

  • Features Collected: Culmen Length (mm), Culmen Depth (mm), Flipper Length (mm), Body Mass (g), Island, Sex.

  • Orange Data Mining Workflow Stages:

    1. Data Acquisition: Drag File widget to canvas; load penguins.csv dataset.

    2. Data Exploration: Attach Data Table and Distributions widgets to inspect feature distributions and missing values.

    3. Preprocessing: Use Impute widget to clean missing records; select target column (Species) via Select Columns widget.

    4. Modelling: Route preprocessed data into classification algorithms (Tree, Random Forest, Logistic Regression).

    5. Evaluation: Route model outputs into Test and Score and Confusion Matrix widgets to evaluate classification accuracy.

Unit 5: Computer Vision

Introduction to Computer Vision (CV)

  • Definition: A branch of Artificial Intelligence enabling computing systems to acquire, process, evaluate, and interpret digital visual data (photographs, live video streams) to automate real-world task execution.

  • Biological Comparison:

    • Human Vision System: Eye (Sensing Device) captures light signals \rightarrow Brain (Interpreting Device) processes semantic information.

    • Computer Vision System: Camera/Sensor (Sensing Device) captures digital pixels \rightarrow AI Processor/Algorithms (Interpreting Device) computes semantic predictions.

  • Computer Vision vs. Image Processing:

    • Image Processing: A subset focused on altering raw input images to enhance quality or transform properties (e.g., brightness adjustment, image rescaling, tone conversion). Input: Image; Output: Transformed Image.

    • Computer Vision: A superset focused on analyzing visual inputs to extract high-level semantic meaning and make predictive decisions (e.g., object detection, spatial navigation). Input: Image; Output: Semantic Categorization / Spatial Coordinates.

Applications of Computer Vision

  • Facial Recognition: Used in smart home security, visitor log management, and contact-free attendance systems.

  • Face Filters: Applications like Instagram and Snapchat track facial feature points in real-time to overlay augmented digital graphics.

  • Google Search by Image: Compares pixel features of an uploaded image against digital database repositories.

  • CV in Retail: Analyzes foot traffic routes, customer dwell times, and shelf inventories via automated security camera stream processing.

  • Self-Driving Cars: Processes multi-camera visual inputs to identify lane markings, traffic signals, surrounding vehicles, and pedestrians.

  • Medical Imaging: Converts multi-slice 2D CT or MRI scans into interactive 3D visualizations to assist surgical diagnostics.

  • Google Translate App: Combines Optical Character Recognition (OCR) with Augmented Reality (AR) to translate signs in real-time.

Core Computer Vision Tasks

  • Image Classification: Assigns a single categorical label to an entire input image from a predefined set of categories.

  • Classification + Localisation: Predicts the single primary object's categorical class while drawing a bounding box around its spatial position.

  • Object Detection: Detects multiple distinct real-world objects across an image, defining spatial location bounding boxes and class tags for each instance.

  • Instance Segmentation: Classifies every individual pixel in an image, assigning precise object boundary maps to distinct object instances.

Digital Image Fundamentals

  • Pixels (Picture Elements): The smallest fundamental graphical unit making up a digital image displayed across a 2D grid.

  • Resolution: The total pixel dimensions defining an image, expressed as width by height (W×HW \times H) or as a total megapixel rating.

    • Example Calculation: A 1280×10241280 \times 1024 monitor resolution contains 1,310,7201{,}310{,}720 total pixels (1.31 Megapixels\approx 1.31\text{ Megapixels}).

  • Pixel Value Representation:

    • Digital pixels store numerical values indicating brightness or color intensity.

    • Standard 8-bit digital images allocate 1 byte1\text{ byte} (8 bits8\text{ bits}) per pixel, yielding 28=2562^8 = 256 intensity levels ranging from 00 (absolute black / no intensity) to 255255 (absolute white / full intensity).

  • Grayscale Images: Single-channel 2D matrices where pixel values directly encode brightness intensity from 00 to 255255.

  • RGB Color Images: Multi-channel images consisting of three distinct 2D matrices corresponding to Red (R), Green (G), and Blue (B) color channels. Every individual pixel is defined by an array triplet [R,G,B][R, G, B]:

    • [255,255,255]=Pure White[255, 255, 255] = \text{Pure White}

    • [0,0,0]=Pure Black[0, 0, 0] = \text{Pure Black}

    • [255,0,0]=Pure Red[255, 0, 0] = \text{Pure Red}

    • [0,255,0]=Pure Green[0, 255, 0] = \text{Pure Green}

    • [0,0,255]=Pure Blue[0, 0, 255] = \text{Pure Blue}

Image Feature Extraction

  • Definition: Specific, mathematically distinct pixel structures within an image relevant to solving computational tasks.

  • Feature Categories:

    • Flat Surfaces / Uniform Patches: Difficult to locate uniquely because pixel patterns are identical across large regions.

    • Edges: Easy to locate along one spatial axis, but ambiguous along the edge direction.

    • Corners & Blobs: Highly unique local structures that change significantly when shifted in any direction. Therefore, corners are considered the best visual features for image matching and object recognition.

Image Convolution Operations

  • Definition: A fundamental mathematical filtering process where a small numerical matrix called a Kernel (or filter) slides across an input image array to perform element-wise multiplication and summation, generating a transformed output feature map.

  • Mathematical Concept:

    Given Image Array II and Kernel Array KK:

    Output Feature Map=IK\text{Output Feature Map} = I * K

  • Padding (Extending Image Edges): Because sliding a kernel over an image reduces output matrix dimensions, developers apply zero-padding—surrounding original matrix edges with zero-valued border cells—to maintain output feature map sizes equal to the original input image size.

Convolutional Neural Networks (CNN)

  • Purpose: A specialized Deep Learning architecture engineered to extract high-level feature representations directly from visual image matrices for automated classification and detection.

  • Core Architectural Layers:

    1. Convolutional Layer:

      • Applies multiple localized learnable kernels across input image arrays to extract low-level features (e.g., edges, textures, colors) and high-level structural patterns.

      • Output: Feature Maps (Activation Maps).

    2. Rectified Linear Unit (ReLU) Layer:

      • Applies an element-wise activation function to introduce non-linearity into the network:

            Output=max(0,Input)\text{Output} = \max(0, \text{Input})

    *   Converts all negative pixel values in the feature map to 00 while preserving positive values, making feature boundaries and color transitions more distinct.

3.  **Pooling Layer:**

    *   Reduces spatial dimensions (width and height) of feature maps to decrease computational complexity and improve translational invariance against small shifts or distortions.

    *   *Max Pooling:* Extracts the single maximum numerical value within a local sliding kernel window.

    *   *Average Pooling:* Computes the average numerical value across the kernel window.

4.  **Fully Connected (FC) Layer:**

    *   Flattens 2D output matrices from final pooling layers into a 1D feature vector.

    *   Processes feature values through interconnected output nodes to produce output probability distributions for each class label.

Self-Assessment & Review Questions

  • Question 1: Primary objective of Convolution Layer in CNN?

    • Answer: B) To assign importance to various aspects/objects in the image.

  • Question 2: Which task is an example of Computer Vision?

    • Answer: C) Object detection in images or videos.

  • Question 3: How is resolution typically expressed?

    • Answer: A) By the number of pixels along width and height, such as 1280×10241280 \times 1024.

  • Question 4: Core task of image classification?

    • Answer: C) Assigning an input image one label from a fixed set of categories.

  • Question 5: Function of the ReLU layer in CNN?

    • Answer: C) To get rid of negative numbers in the feature map and retain positive numbers.

  • Question 6: Object detection and handwriting recognition are associated with:

    • Answer: A) Computer vision.

  • Question 7: What does pixel value represent?

    • Answer: B) Brightness or color of the pixel.

  • Question 8: Range of possible 8-bit byte pixel values?

    • Answer: D) 00 to 255255.

  • Question 9: In grayscale images, what does the darkest shade represent?

    • Answer: B) Zero value of pixel.

  • Question 10: In an RGB image, what does an intensity value of 00 across channels represent?

    • Answer: B) No presence of color (Black).

  • Question 11 (Assertion & Reasoning):

    • Assertion: Object detection is more complex than classification.

    • Reasoning: Object detection must classify and localize objects spatially.

    • Answer: A) Both A and R are true and R is the correct explanation of A.

  • Question 12 (Assertion & Reasoning):

    • Assertion: Grayscale images consist of shades of gray ranging from black to white…

    • Reasoning: Grayscale images are represented using three intensities per pixel…

    • Answer: C) A is true but R is false (Grayscale uses 1 intensity channel, not 3).

Unit 6: Natural Language Processing

Introduction & Characteristics of Languages

  • Natural Language: Spoken or written human languages (e.g., English, French, Hindi, Spanish) governed by syntax, lexicon, and semantics. Natural languages change over time, contain contextual ambiguities, and exhibit high redundancy (information can be conveyed in multiple ways).

  • Computer Languages: Precise symbolic instruction languages (e.g., Python, C++, Java, HTML) designed to deliver unambiguous computational commands.

  • Role of Natural Language Processing (NLP): An artificial intelligence domain enabling computers to parse, analyze, comprehend, and generate human languages, bridging binary computational logic with contextual human communication.

Applications of Natural Language Processing

  • Autogenerated Captions: Converts speech audio into written text transcripts in real-time (e.g., YouTube closed captions, Google Meet transcripts).

  • Voice Assistants: Parses conversational speech commands to execute dynamic real-world actions (e.g., Google Assistant, Alexa, Siri).

  • Language Translation: Automatically translates syntax and semantics between human languages (e.g., Google Translate).

  • Sentiment Analysis: Analyzes textual passages to determine underlying emotional tone (Positive, Negative, or Neutral).

  • Text Classification: Automatically categorizes unstructured documents into predefined subject classes (e.g., sorting news feeds into Sports, Business, Politics).

  • Keyword Extraction: Identifies and extracts high-value structural terms or entities from long text passages.

Five Stages of Natural Language Processing

  1. Lexical Analysis: Breaks down raw unstructured text blocks into structural paragraphs, sentences, and fundamental word elements (tokens).

  2. Syntactic Analysis (Parsing): Checks structural grammatical rules, validates word arrangements, and eliminates syntactically invalid sentence constructions.

  3. Semantic Analysis: Evaluates structural literal meaning, discarding logical absurdities (e.g., rejecting phrases like "hot ice cream").

  4. Discourse Integration: Establishes context and logical connections between consecutive sentences across an entire passage.

  5. Pragmatic Analysis: Interprets real-world intentional context, discovering target meaning that may differ from literal semantic interpretations.

Chatbots: Script-Bots vs. Smart-Bots

  • Script-Bot (Traditional Chatbot): Operates on rigid, developer-defined scripts and decision trees. Incapable of answering queries outside pre-programmed parameters.

  • Smart-Bot (AI-Powered Chatbot): Uses NLP algorithms and machine learning models to analyze conversational context, continuously adapt from user interactions, and synthesize dynamic answers.

Text Processing & Normalization

  • Corpus: The complete collection of written textual datasets across all evaluated documents.

  • Sequential Stages of Text Normalization:

    1. Sentence Segmentation: Divides a continuous textual corpus into isolated sentence units.

    2. Tokenization: Splits segmented sentences into distinct structural units termed tokens (words, numerical digits, punctuation signs).

    3. Removing Stop Words, Special Characters, and Numbers: Eliminates highly frequent grammatical structural words (e.g., "and", "the", "is", "in") that convey minimal contextual information, along with non-essential special symbols.

    4. Converting Text to Common Case: Converts all tokens into uniform lowercase format to prevent case-sensitive variations (e.g., mapping "Hello", "HELLO", and "hello" to a single token).

    5. Stemming: Truncates word affixes using crude heuristic rules to reduce tokens to root forms. May result in non-meaningful word fragments (e.g., "studies" becomes "studi").

    6. Lemmatization: Reduces words to baseline dictionary forms (lemmas) using full morphological and semantic vocabulary dictionaries (e.g., "studies" becomes "study").

Feature Extraction Algorithms

The Bag of Words (BoW) Model
  • Concept: Extracts numerical feature representations from normalized text corpora by constructing a global dictionary of unique words and counting token frequencies per document, ignoring word order.

  • Implementation Steps:

    1. Pre-process textual data across documents.

    2. Create a master dictionary list of all unique vocabulary words.

    3. Construct numerical document vectors by logging word frequencies per document.

  • Worked Numerical Example:

    • Document 1: "Aman and Avni are stressed"

    • Document 2: "Aman went to a therapist"

    • Document 3: "Avni went to download a health chatbot"

    • Normalized Vocabulary Dictionary: [aman, and, avni, are, stressed, went, to, a, therapist, download, health, chatbot]

    • Document Vectors:\begin{bmatrix}\n        \text{Doc 1} & 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\n        \text{Doc 2} & 1 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\\n        \text{Doc 3} & 0 & 0 & 1 & 0 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & 1\n        \end{bmatrix}

Term Frequency-Inverse Document Frequency (TFIDF)
  • Purpose: Measures the true informational importance of a word within a specific document relative to an entire corpus. Highly common words across all documents are penalized, whereas unique contextual terms earn higher weights.

  • Mathematical Formulas:

    • Term Frequency (TF): Number of times word WW occurs in a specific document.

    • Inverse Document Frequency (IDF):

        IDF(W)=log10(Total Number of Documents (N)Number of Documents Containing Word W(DF))\text{IDF}(W) = \log_{10}\left( \frac{\text{Total Number of Documents } (N)}{\text{Number of Documents Containing Word } W (DF)} \right)

*   **TFIDF Calculation:**

        TFIDF(W)=TF(W)×IDF(W)\text{TFIDF}(W) = \text{TF}(W) \times \text{IDF}(W)

  • Key Interpretations:

    • If a word appears in every document (DF=NDF = N), its IDF=log10(1)=0\text{IDF} = \log_{10}(1) = 0, resulting in a TFIDF=0\text{TFIDF} = 0 (e.g., stop words).

    • High TFIDF values occur when a term has high term frequency in a specific document but low document frequency across the overall corpus.

Self-Assessment & Review Questions

  • Question 1: Primary challenge faced by computers in understanding human languages?

    • Answer: A) Complexity of human languages.

  • Question 2: How do voice assistants utilize NLP?

    • Answer: C) To understand natural language.

  • Question 3: Which is NOT a step in Text Normalization?

    • Answer: D) Document summarization.

  • Question 4: Purpose of tokenization?

    • Answer: B) To segment sentences into smaller units.

  • Question 5: What distinguishes lemmatization from stemming?

    • Answer: A) Lemmatization produces meaningful words after affix removal, while stemming does not.

  • Question 6: Primary purpose of the Bag of Words model?

    • Answer: B) To extract features from text for machine learning algorithms.

  • Question 7: What are stop words?

    • Answer: B) Words with negligible value that are often removed during preprocessing.

  • Question 8: Characteristic of rare or valuable words?

    • Answer: C) They occur the least but add the most value to the corpus.

  • Question 9: What information does the document vector table provide?

    • Answer: A) The frequency of each word across all documents.

  • Question 10: Primary purpose of TFIDF in text processing?

    • Answer: C) To identify the value of each word in a document.

  • Question 11 (Assertion & Reasoning):

    • Assertion: Pragmatic analysis involves assessing sentences for real-world applicability…

    • Reasoning: Pragmatic analysis requires understanding intended meaning…

    • Answer: A) Both Assertion and Reasoning are true, and Reasoning is the correct explanation of the Assertion.

  • Question 12 (Assertion & Reasoning):

    • Assertion: Converting text into lowercase post stop word removal is crucial…

    • Reasoning: Ensures uniformity in word representation…

    • Answer: A) Both Assertion and Reasoning are true, and Reasoning is the correct explanation of the Assertion.

Official Curriculum Answer Key

Unit 1: Ethical Frameworks for AI

  • Test Yourself Solutions:

    • 1: B | 2: C | 3: B | 4: D | 5: C | 6: B | 7: B | 8: C | 9: A | 10: B | 11: A | 12: A

Unit 2: Advanced Concepts of Modelling in AI

  • Test Yourself Solutions:

    • 1: A | 2: A | 3: B | 4: C | 5: C | 6: B | 7: D | 8: B | 9: C | 10: A | 11: B | 12: B

Unit 3: Evaluating Models

  • Test Yourself Solutions:

    • 1: B | 2: A | 3: A | 4: B | 5: A | 6: B | 7: A | 8: B | 9: B | 10: C

Unit 4.1: Statistical Data

  • Test Yourself Solutions:

    • 1: A | 2: D | 3: D | 4: A | 5: A

Unit 4.2: Statistical Data Walkthrough

  • Test Yourself Solutions:

    • 1: B | 2: B | 3: A | 4: C | 5: A

Unit 5: Computer Vision

  • Test Yourself Solutions:

    • 1: B | 2: C | 3: A | 4: C | 5: C | 6: A | 7: B | 8: D | 9: B | 10: B | 11: A | 12: C

Unit 6: Natural Language Processing

  • Test Yourself Solutions:

    • 1: A | 2: C | 3: D | 4: B | 5: A | 6: B | 7: B | 8: C | 9: A | 10: C | 11: A | 12: A