Comprehensive CBSE Class 10 Artificial Intelligence Curriculum Guide
AI Project Cycle and Foundations
- Overview of the AI Project Cycle:
- The AI Project Cycle is the structured cyclical process followed to conceptualize, design, and implement an artificial intelligence project from inception to real-world integration.
- Conceptual analogy (Creating a Birthday Greeting Card):
- Step 1: Look for ideas online or ask someone with experience.
- Step 2: Finalize the design and list the required materials.
- Step 3: Check material availability and acquire missing items.
- Step 4: Assemble and produce the card.
- Step 5: Discard and restart if an unrectifiable error occurs.
- Step 6: Deliver the final product to the recipient.
- Core stages of the cycle:
- Problem Scoping: Defining the goal, target problems, scope boundaries, and core objectives that the AI system must address.
- Data Acquisition: Sourcing, gathering, and retrieving reliable, authentic datasets from varied repositories corresponding to defined problem parameters.
- Data Exploration: Visually mapping and inspecting data via charts, databases, heatmaps, and graphs to identify structural trends, abnormalities, and patterns.
- Modelling: Selecting, designing, and training algorithmic architectures and mathematical models using pre-processed datasets.
- Evaluation: Testing model performance on unseen data using rigorous quantitative metrics to assess generalized predictive capacity.
- Deployment: Integrating validated models into real-world software workflows or production environments to generate operational value.

- Primary Domains of Artificial Intelligence:
- Statistical Data:
- Relates to structured data infrastructure and processing systems where machines collect numerical and categorical information, organize tables, extract distributions, and derive predictive insights.
- Real-World Application: Price Comparison Platforms (such as PriceGrabber, PriceRunner, Junglee, Shopzilla, and DealTime) that aggregate pricing records across retailers across sectors like consumer electronics, hospitality, automobiles, and apparel.
- Computer Vision (CV):
- Enables digital systems to acquire, process, analyze, and interpret visual data from digital imagery, thermal sensors, and video feeds, converting pixel values into operational descriptions.
- Real-World Applications:
- Agricultural Monitoring: Drone platforms gather aerial multispectral images of farmland to identify pest infestations, compute crop yield projections, and assess canopy health.
- Surveillance Systems: Automated identification of anomalous activity, crowd density analysis, border tracking, and security alerts.
- Natural Language Processing (NLP):
- Focuses on computational techniques to read, decipher, parse, and synthesize human languages (both speech and text).
- Real-World Applications:
- Email Spam Filters: Keyword extraction and linguistic pattern recognition separating legitimate messages from unsolicited mail.
- Machine Translation: Dynamic multi-language engines (such as Google Translate and Microsoft Translator) mapping syntactic and semantic structures across languages.
Ethical Frameworks for Artificial Intelligence
Foundations of Frameworks and Ethics:
- A framework is a systematic set of organized, repeatable steps designed to resolve complex challenges methodically while establishing consistent communication standards.
- Ethics represents a code of moral values and behavioral principles that delineate acceptable conduct from unacceptable actions.
- An ethical framework supplies step-by-step normative guidelines ensuring decision-making systems avoid inflicting unintended societal, systemic, or physical damage.
Imperative for AI Ethical Frameworks:
- Modern AI algorithms function as automated decision-makers and recommender engines across hiring, banking, and criminal justice.
- Unchecked optimization leads to algorithmic bias, such as historical automated corporate hiring algorithms systematically penalizing female applicant resumes.
- Frameworks prevent adverse disparate impacts before deployment by aligning machine outputs with human values.
Determinants of Moral Decision-Making:
- Cultural norms, religious principles, intuitive values, perceived value of human life versus non-human life, geographical location, recipient identity, familial affinity, and access to transparent contextual data.
Taxonomy of Ethical Frameworks:
- Sector-Based Frameworks:
- Tailored governance rules engineered for individual industries such as finance, transportation, education, and healthcare.
- Value-Based Frameworks:
- Rights-Based: Establishes fundamental human rights, individual autonomy, and personal dignity as non-negotiable boundaries that no technological system may compromise.
- Utility-Based (Utilitarian): Evaluates systemic actions by measuring collective outcomes, optimizing policies that generate the maximum net benefit for the maximum number of people.
- Virtue-Based: Focuses on personal character, human intent, and institutional integrity, requiring developers and operators to exhibit honesty, justice, and responsibility.
Bioethics and Algorithmic Healthcare:
- Bioethics governs moral behavior across clinical sciences, biological research, and healthcare delivery.

- Four Pillars of Bioethics:
- Respect for Autonomy: Ensuring subjects possess agency, awareness, and informed consent. In AI, system reasoning, training distributions, and predictive explanations must remain accessible and transparent to users.
- Non-Maleficence ("Do No Harm"): Avoiding the infliction of harm, and choosing options of minimal damage when risk is unavoidable.
- Beneficence ("Ensure Maximum Benefit"): Actively promoting human welfare, maximizing healthcare benefits, and elevating positive health outcomes beyond mere harm prevention.
- Justice: Fair, equitable distribution of systemic benefits, costs, and resources irrespective of race, socioeconomic tier, or origin.
- Case Study: Healthcare Risk Scoring Disparities:
- Incident: A clinical predictive model allocated medical care resources by predicting future illness severity based on past commercial healthcare expenditure records.
- Underlying Cause: Less money was historically spent on minority patients from western areas due to unequal access to healthcare rather than lower illness incidence.
- Impact: The model categorized severely ill minority patients as having equivalent health risk to healthier individuals from other demographics, perpetuating resource deprivation.
- Bioethical Resolution:
- Autonomy: Open model weights, explain decision parameters, and expose feature sets to independent clinical validation.
- Non-Maleficence: Retrain systems on direct clinical indicators (such as vital stats and disease progression markers) rather than financial expenditure proxies.
- Beneficence: Target equitable recovery metrics across all geographic and demographic cohorts.
- Justice: Design models aware of structural determinants of health to proactively counteract demographic skew.
Advanced Modeling Paradigms and Architectural Concepts
- Hierarchy: AI, Machine Learning, and Deep Learning:
- Artificial Intelligence (AI): The broad umbrella discipline involving computational systems designed to simulate human intellectual capabilities.
- Machine Learning (ML): A mathematical subfield of AI where software iteratively improves task-specific performance through statistical training on data rather than direct static programming.
- Deep Learning (DL): A specialized subset of ML using deep multi-layered artificial neural networks capable of learning hierarchical feature representations from large datasets.

Fundamental Data Terminology:
- Data: Discrete or continuous information compiled in structured or unstructured formats.
- Features: Individual measurable variables, dimensions, or table columns describing observation attributes (e.g., fruit color, weight, diameter).
- Labels: The target ground-truth output variable representing the class or continuous value to be predicted (e.g., fruit species).
- Data Labeling: The systematic procedure of assigning ground-truth tags to raw unstructured data observations.
- Labeled Data: Records paired with corresponding target ground-truth tags.
- Unlabeled Data: Raw observations devoid of target identification markers.
- Training Dataset: Exemplar observations used to calibrate model parameters.
- Testing Dataset: Unseen evaluation data used to quantify predictive accuracy.
Rule-Based Versus Learning-Based Systems:
- Rule-Based Modeling:
- Developers manually author deterministic explicit logic rules ( statements) within static decision trees.
- Characterized by static processing; cannot self-correct or generalize to conditions outside the hand-crafted rule set.
- Example: A customer support chatbot checking text for literal strings such as "track order" to prompt for an order ID.
- Learning-Based Modeling:
- The system discovers mathematical mappings, representations, and behavioral relationships directly from supplied datasets.
- Capable of adapting parameters dynamically when exposed to changing data patterns.
Taxonomy of Machine Learning Models:

- Supervised Learning:
- Algorithms learn a functional mapping from feature space to output labels using fully labeled datasets.
- Classification: Predicts categorical labels across discrete target classes.
- Examples: Binary spam detection (spam vs. non-spam), loan default prediction (yes vs. no), weather categorization (hot vs. cold).
- Regression: Estimates continuous numerical target values.
- Examples: Housing price prediction based on feature vectors (, , ), used car market valuations based on vehicle age and mileage, continuous 24-hour temperature tracking.
- Unsupervised Learning:
- Algorithms process completely unlabeled data to uncover intrinsic structures, groupings, and underlying distributions.
- Clustering: Groups unlabeled observations based on mathematical distance metrics and feature similarities.
- Examples: Customer segmentation into grocery and non-grocery buyers; grouping musical tracks by acoustic tempo and intensity on streaming platforms.
- Association: Discovers co-occurrence probabilities and directional relationships across transactional attributes.
- Examples: Market basket analysis where purchasing patterns show that customers buying bread exhibit a high statistical likelihood of simultaneously purchasing butter ().
- Reinforcement Learning (RL):
- Software agents learn goal-directed behaviors through iterative trial-and-error environmental interactions.
- The agent executes an action () within an environment, transitions from state () to new state (), and receives numeric scalar rewards () or penalties.
- Operates without explicit target labels; prioritizes long-term cumulative reward optimization.
- Examples: Autonomous parallel vehicular parking, robotic humanoid gait stabilization, board and video game mastery.
Neural Networks and the Artificial Perceptron
Architecture of Artificial Neural Networks (ANN):
- Biological Inspiration: Loosely modeled upon synaptic pathways and neuron structures of the biological brain.
- Structural Components:
- Input Layer: Ingests raw data values and distributes signals forward without computational transformation.
- Hidden Layer(s): Intermediate computational units applying learnable weights, additive biases, and activation functions to extract latent representations.
- Output Layer: Formats final computational activations into predictions (e.g., class label probabilities or regression scalars).
- Nodes automatically extract representations from data, reducing the need for hand-engineered manual features on complex signals.
Mathematical Mechanics of the Perceptron:
- The perceptron computes a weighted sum of inputs, adds a bias term, and evaluates the result against a threshold activation function:

Walkthrough Case Study (Decision: "Should I go to the park?"):
- Input Features:
- : Do I have a jacket? (, )
- : Do I have an umbrella? (, )
- : Is it sunny now? (, )
- : What is the weather forecast for later? (, )
- System Parameter Weights (Subjective Importance):
- Bias and Bias Weight:
- Input Bias:
- Cautious Bias Weight:
- Decision Threshold:
- Input Features:
Scenario 1 Evaluation:
- Conditions: Has jacket (), No umbrella (), Sunny now (), Rain forecast ().
- Computation:
- Decision Outcome: Since , the system outputs a positive decision (Go to the park).
Scenario 2 Evaluation:
Conditions: No jacket (), Has umbrella (), Not sunny now (), Forecast clear ().
Computation:
Decision Outcome: Since , the system outputs a negative decision (Do not go to the park).
Human Neural Network Simulation Protocol:
Structural Setup for a 20-Person Simulation:
- Input Layer ( students): Ingest visual image tokens; each member crafts descriptive words on separate chits.
- Hidden Layer 1 ( students): Each receives chits from input nodes, synthesizes contextual information, writes abstraction words on chits, and distributes them to Hidden Layer 2.
- Hidden Layer 2 ( students): Synthesizes incoming chits, refines concepts into output chits, and routes all cumulative chits to the terminal layer.
- Output Layer ( student): Compiles all chits and drafts an interpretive summary of no more than lines predicting the original visual input.
Operating Rules: Strict operational silence; no cross-node verbal communication; single-word tokens per chit; visual stimuli restricted entirely to the input layer.
Quantitative Model Evaluation and Performance Metrics
Core Principles of Evaluation:
- Model evaluation measures an algorithm's predictive performance on unseen data to quantify generalization error and avoid overfitting.
- Overfitting: An error state where an algorithm memorizes specific training noise and samples rather than learning general patterns, achieving near-perfect training scores but failing on test data.
- Train-Test Split: The protocol of partitioning a verified dataset into distinct training and testing subsets (e.g., an 80/20 division of labeled images yields training samples and test samples).
Foundational Metrics for Error and Accuracy:
- Mathematical Formulation:
- Real-Estate Valuation Example (Sample 1):
- Predicted Value =
- Actual Ground Truth =
- Absolute Error =
- Error Rate =
- Accuracy =
- Percentage Accuracy =
The Confusion Matrix for Binary Classification:
- Organizes actual versus predicted classifications across positive () and negative () categories.

Quadrant Definitions:
True Positive (TP): Model correctly predicts the positive class (e.g., patient with disease correctly identified as having disease).
True Negative (TN): Model correctly predicts the negative class (e.g., healthy person correctly diagnosed as healthy).
False Positive (FP) [Type I Error]: Model incorrectly predicts the negative class as positive (e.g., healthy person incorrectly diagnosed with disease).
False Negative (FN) [Type II Error]: Model incorrectly predicts the positive class as negative (e.g., sick patient incorrectly diagnosed as healthy).
Comprehensive Classification Performance Formulas:
Classification Accuracy:
Precision:
Recall (Sensitivity / True Positive Rate):
F1 Score:
- The Accuracy Paradox and Asymmetric Optimization:
Accuracy Fails on Imbalanced Datasets:
- Consider an imbalanced testing set of samples containing positive cases and negative cases.
- A defective constant classifier predicting "Positive" regardless of input achieves:
- The metric masks the system's inability to detect negative samples.
Choosing Between Precision and Recall:
Optimize for Precision When False Positives Carry High Costs:
- Satellite Launch Weather Prediction: Positive = Favorable Launch Conditions, Negative = Unfavorable.
- Missing a favorable day (False Negative) delays operations.
- Launching in severe weather (False Positive) risks vehicle destruction.
- Minimizing False Positives is paramount; Precision is the primary metric.
Optimize for Recall When False Negatives Carry Severe Risks:
- Medical Contagion / Cancer Detection: Positive = Infected/Diseased, Negative = Healthy.
- Classifying a healthy patient as sick (False Positive) leads to follow-up re-testing.
- Classifying a sick individual as healthy (False Negative) deprives them of medical care and risks transmission.
- Minimizing False Negatives is critical; Recall is the priority metric.
Optimize for F1 Score Under Balanced Cost Profiles:
- The metric of choice when testing sets are imbalanced and costs for Type I and Type II errors are comparable.
Ethical Considerations in Evaluation:
Bias: Ensuring evaluation splits and test datasets reflect diverse real-world demographics to prevent systemic performance degradation on minority classes.
Transparency: Fully documenting evaluation metric calculations and validation assumptions without obscuring unfavorable failure modes.
Accountability: Taking institutional and engineering ownership of metric trade-offs (e.g., balancing Precision against Recall) when performance impacts human safety or welfare.
Statistical Analysis and No-Code Data Mining
- Foundations of Statistical Analysis:
- Statistical Population versus Sample:
- Population: The complete set of observations or items under analysis.
- Sample: A statistically representative subset drawn from the population to compute inferences.
- Measures of Central Tendency:
- Mean: The arithmetic average, calculated as the sum of observations divided by sample count (
- Median: The physical middle value when observations are sorted ordinally.
- Mode: The most frequently occurring observation value.
- Measures of Dispersion and Skew:
- Normal Distribution: A symmetric bell-shaped curve where .
- Left-Skewed (Negative Skew): Distribution with an extended left tail where .
- Right-Skewed (Positive Skew): Distribution with an extended right tail where .
- Variance: The average squared distance of data points from their arithmetic mean.
- Standard Deviation: The square root of variance, measuring the spread of values around the mean.
- Outlier: A data point lying at an abnormal distance from the remaining body of observations.

Software Development Paradigms: High-Code, Low-Code, and No-Code:
- High-Code: Traditional manual development using text editors and languages (Python, Java, C#); offers complete customizability but requires specialized engineering resources.
- Low-Code: Development leveraging graphical platforms and pre-configured modules with limited scripting; shortens delivery cycles while preserving custom code integration.
- No-Code: Visual programming platforms using modular drag-and-drop interfaces; eliminates syntax barriers, allowing domain experts to construct workflows without coding.
- Trade-Offs of No-Code Tools:
- Benefits: Fast prototyping, democratization for non-technical specialists, eliminates syntax errors, reduces software labor costs.
- Limitations: Architectural rigidity, limited optimization options, vulnerability to automation bias, data privacy/security constraints.
- Prominent No-Code Tools:
- Microsoft Azure Machine Learning (Launched July 2014).
- Google Cloud AutoML (Launched January 2018).
- Orange Data Mining (University of Ljubljana, Origin October 1996).
- Lobe AI (Acquired by Microsoft, Origin 2015).
- Teachable Machine (Google, Launched November 2017).
End-to-End Walkthrough: Orange Data Mining Platform:
- Orange facilitates data mining and machine learning via visual canvas workflows linking functional widgets.
- Functional Widget Categories:
- Data Widgets: File (loads CSV/Excel), Data Table (tabular inspection), Data Sampler (partitions splits).
- Transform Widgets: Select Columns (designates features and target labels), Impute (handles missing values), Discretize.
- Visualize Widgets: Scatter Plot, Box Plot, Distributions, Tree Viewer.
- Model Widgets: Linear Regression, Logistic Regression, Classification Tree, Random Forest, k-Means.
- Evaluate Widgets: Test and Score (computes cross-validation, accuracy), Predictions, Confusion Matrix, ROC Analysis.
Palmer Penguins Classification Case Study:
- Scientific Objective: Predict the correct species category of an Antarctic penguin based on physical morphological measurements.
- Dataset Profile: Morphological records of three species (Adelie, Chinstrap, Gentoo) observed across three islands (Torgersen, Biscoe, Dream).
- Measured Features:
- Culmen Length ()
- Culmen Depth ()
- Flipper Length ()
- Body Mass ()
- Island of Observation
- Execution Steps in Orange Data Mining:
- Step 1: Drag the File widget onto the canvas; load the
penguins_traindataset. - Step 2: Connect to Data Table to inspect feature records and missing cells.
- Step 3: Link to Select Columns; configure
speciesas the target Categorical Label and morphological measurements as Feature inputs. - Step 4: Route signals into Impute to resolve null feature entries.
- Step 5: Connect output paths into candidate ML classification algorithms (e.g., Tree, Logistic Regression).
- Step 6: Connect both datasets and model outputs into Test and Score to measure validation metrics.
- Step 7: Pass model outputs to Confusion Matrix and Predictions to confirm classification accuracy across all three species classes.
Computer Vision Fundamentals and Architectures
Foundations of Computer Vision:
- Computer Vision (CV) develops algorithms that enable computers to extract semantic understanding, spatial attributes, and descriptive conclusions from digital images and video streams.
- Computer Vision versus Image Processing:
- Image Processing: Transforms raw input images into modified output images (e.g., sharpening contrast, adjusting brightness, resizing, spatial color shifting).
- Computer Vision: Extracts high-level conceptual insights and structural descriptions from images (e.g., detecting pedestrians, identifying cancer in scans).
Core Tasks in Computer Vision:

Classification: Assigns a single categorical label to an entire image from a fixed set of classes.
Classification + Localization: Identifies an object category while drawing a single bounding coordinate box around it; applied to single-instance scenes.
Object Detection: Identifies, classifies, and draws bounding boxes around multiple overlapping object instances within an image.
Instance Segmentation: Identifies individual object instances and assigns a semantic class label to every pixel belonging to each object.
- Digital Image Representation and Pixel Physics:
Pixel: Picture element; the smallest discrete square unit of digital image storage arranged in a 2D matrix.
Resolution: Total pixel count, expressed as (e.g., pixels, or approximately ).
Pixel Bit Depth: In 8-bit image formats, each pixel stores an integer value from to ( discrete values):
- Value represents zero color intensity (black).
- Value represents maximum color intensity (pure white).
Grayscale Images: 2D matrices ( channel) where each pixel represents light intensity between black () and white ().
RGB Color Images: 3D numerical tensors ( channels) combining Red, Green, and Blue planes:
Pure Red:
Pure Green:
Pure Blue:
Pure White:
Pure Black:
Image Features and Extraction:
An image feature is an informative visual structure used to solve computational tasks.
Feature Quality Hierarchy:
Flat Uniform Surfaces: Poor features; homogeneous pixel patches look identical when translated across coordinate axes.
Edges: Moderate features; can be matched perpendicularly, but are ambiguous along the direction of the edge line.
Corners: Superior features; moving a corner patch in any direction alters pixel values, providing clear, unambiguous coordinate localization.
Mathematical Foundations of Image Convolution:
Convolution performs element-wise multiplication between an image matrix () and a smaller kernel matrix (), summing the results across a sliding receptive field.
Kernel / Filter Matrix: A numeric matrix (typically or ) applied across an image to extract features like edges or blur.
Boundary Padding: Convolving a kernel without padding reduces output dimensions (). Adding zero-padding along image borders maintains spatial dimensions matching the original input.
- Convolutional Neural Network (CNN) Architecture:

- Primary Layers:
- Convolutional Layer:
- Slides multiple parameter kernels across input arrays to extract localized visual patterns.
- Generates Feature Maps (or Activation Maps).
- Early layers extract low-level features (edges, color gradients); deeper layers capture complex high-level representations (facial components, wheels, objects).
- Rectified Linear Unit (ReLU) Layer:
- Applies the non-linear element-wise activation function:
- Maps all negative activation values to zero while preserving positive activations.
- Introduces non-linearity, sharpening color transitions and boundary distinctions.
- Pooling Layer:
- Reduces spatial dimensions of feature maps while retaining essential visual traits.
- Max Pooling: Selects the maximum value within a pooling window (e.g., a window with stride extracts peak activations).
- Average Pooling: Calculates the arithmetic mean across the window.
- Benefits: Lowers memory overhead, reduces computation, and provides translation invariance against minor spatial distortions.
- Fully Connected (FC) Layer:
- Flattens 2D/3D feature representations into a single 1D vector.
- Connects every activation to output nodes, outputting class probabilities using softmax activation.
- Convolutional Layer:
Natural Language Processing and Computational Linguistics
Characteristics of Natural versus Formal Computer Languages:
- Natural Languages (e.g., English, Hindi, Spanish): Human languages that evolve organically; characterized by high redundancy, contextual nuance, homonyms, and polysemy (e.g., "red" can denote color, embarrassment, or anger; "right" versus "write").
- Computer Languages (e.g., Python, C++): Formal, unambiguous syntax structures designed to provide explicit logic instructions to computational processors.
- Role of Natural Language Processing (NLP): Bridges human language and computer execution by transforming unstructured linguistic data into structured numerical representations.
Core Applications of NLP:
- Voice Assistants: Speech-to-text decoding paired with intent parsing to execute spoken tasks (e.g., Google Assistant, Apple Siri, Amazon Alexa).
- Autogenerated Closed Captioning: Real-time transcription engines deployed across platforms like YouTube and Google Meet.
- Automated Language Translation: Translates text between natural languages while preserving semantic context.
- Sentiment Analysis: Classifies underlying emotional tone in text as positive, negative, or neutral for customer reviews and social monitoring.
- Text Classification: Categorizes documents by topical domain (e.g., sorting news feeds into Sports, Politics, or Food).
- Keyword Extraction: Identifies the most statistically informative words and terms from a corpus.
The Five Analytical Stages of NLP:

1. Lexical Analysis: Splits text into paragraphs, sentences, and words; establishes vocabulary structures.
2. Syntactic Analysis (Parsing): Validates grammatical structure, enforcing rules to identify relationships and reject invalid sequences.
3. Semantic Analysis: Evaluates literal meaning and sanity, discarding nonsensical combinations (e.g., rejecting phrases like "hot ice cream").
4. Discourse Integration: Interprets context across adjoining sentences, ensuring referential coherence (e.g., resolving pronouns like "it").
5. Pragmatic Analysis: Interprets real-world context, situational intent, non-literal meaning, idioms, and sarcasm.
- Conversational Interfaces: Script-Bots versus Smart-Bots:
Script-Bots:
- Driven by deterministic rule trees and pre-written response templates.
- Limited functionality; fails when user input deviates from scripted logic.
- Simple and inexpensive to deploy; requires minimal linguistic computation.
Smart-Bots:
Powered by machine learning and deep learning models.
Analyzes large conversational datasets to infer user intent and extract contextual meaning.
Adapts to open-ended phrasing and improves over time with user feedback.
Text Pre-Processing and Normalization Pipeline:
1. Sentence Segmentation: Splits an entire textual corpus into discrete sentence units.
2. Tokenization: Segments sentences into individual character tokens (words, numbers, punctuation).
3. Stop Word Removal: Eliminates high-frequency grammatical words (e.g., and, the, is, in, to) that offer low semantic value, reducing vocabulary size.
4. Case Normalization: Converts all text tokens into uniform lowercase to prevent identical words in different cases from being treated as distinct.
5. Stemming versus Lemmatization:
Stemming: Heuristic removal of word affixes (prefixes/suffixes) to isolate root forms. Faster, but can yield non-linguistic stems (e.g., "caring" becomes "car", "studies" becomes "studi").
Lemmatization: Morphological analysis that maps tokens to meaningful dictionary headwords (lemmas). Slower, but preserves valid words (e.g., "caring" becomes "care", "studies" becomes "study").
The Bag of Words (BoW) Model:
Represents text by tracking word occurrences while disregarding grammar and word order.
Algorithm Pipeline:
Step 1: Preprocess and clean the document corpus.
Step 2: Extract unique words to construct a common vocabulary dictionary.
Step 3: Generate a document vector for each document, setting integer counts for words present and zero for absent words.
Term Frequency - Inverse Document Frequency (TF-IDF):

Words that occur across nearly all documents (stop words) carry little discriminative value.
Rare words that appear frequently within a specific document provide strong topical signals.
Mathematical Formulation:
- Term Frequency (TF):
- Document Frequency (DF):
- Inverse Document Frequency (IDF): (where is the total number of documents in the corpus)
- TF-IDF Weighting:
Comprehensive Worked Example:
- Exemplar Corpus ( Documents):
- 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 ( unique terms):
- Document Frequency Count:
- Words appearing in documents ():
aman,avni,went,to,a - Words appearing in document ():
and,are,stressed,therapist,download,health,chatbot
- Words appearing in documents ():
- Resulting TF-IDF Matrix Calculations:
- For Document 1:
aman:and:avni:are:stressed:- Remaining terms:
- For Document 2:
aman:went:to:a:therapist:- Remaining terms:
- For Document 3:
avni:went:to:download:a:health:chatbot:- Remaining terms:
- Exemplar Corpus ( Documents):
Primary Applications of TF-IDF:
- Information Retrieval (Search engine indexing matching query terms to document vectors).
- Document Classification (Filtering texts into categories based on distinctive keywords).
- Topic Modeling (Identifying the primary subject matter across collections of text).
- Stop Word Filtering (Automatically detecting and pruning low-weight common terms).
Questions & Discussion
Questions on Ethical Frameworks:
- Question: What is the primary purpose of defining a problem statement during the Problem Scoping stage?
- Answer: To define the specific scope, goals, parameters, and measurable objectives of the AI project.
- Question: Which domain of AI deals with extracting meaning from system datasets?
- Answer: Statistical Data.
- Question: What is the core focus of virtue-based ethical frameworks?
- Answer: Evaluating whether actions align with character virtues such as honesty, compassion, and professional integrity.
- Question: How do rights-based frameworks prioritize actions?
- Answer: By treating human life, personal liberty, and human dignity as core boundaries that technological solutions must not violate.
- Question: Why does predicting healthcare resource needs based on past billing expenditures introduce systemic bias?
- Answer: Financial expenditure tracks economic access and systemic insurance coverage rather than true physical illness, leading models to underestimate health risks for disadvantaged groups.
Questions on Modeling and Neural Architectures:
- Question: What is the primary operational distinction between rule-based and learning-based AI systems?
- Answer: Rule-based models follow static, developer-defined instructions ( statements) and cannot adapt to unseen data. Learning-based models discover patterns directly from training examples and adjust their parameters to improve performance over time.
- Question: How does a regression model differ from a classification model?
- Answer: Classification models predict categorical outcomes across discrete classes (e.g., loan approval: yes/no). Regression models predict numeric values along a continuous scale (e.g., predicting temperature or housing prices).
- Question: What is the difference between clustering and classification?
- Answer: Classification is a supervised learning approach that assigns observations to predefined, labeled target categories. Clustering is an unsupervised technique that groups unlabeled observations based on inherent mathematical similarities.
- Question: What are the functions of the three primary layers in an Artificial Neural Network?
- Answer: The input layer ingests raw feature data without computation. The hidden layers apply learnable weights, biases, and activation functions to extract latent representations. The output layer formats final computations into class probabilities or numerical predictions.
Questions on Performance Evaluation:
- Question: In a medical diagnostic test where out of people have a rare disease, the test correctly identifies sick patients () and misses (). It also incorrectly identifies healthy people as positive () and correctly identifies healthy people as negative (). What is the accuracy of the test?
- Answer:
- Question: Out of incoming emails, are spam. A detector correctly labels spam messages () and misidentifies legitimate emails as spam (). What is the precision of this detector?
- Answer:
- Question: Why is relying solely on classification accuracy problematic when evaluating models on imbalanced datasets?
- Answer: When one class heavily outnumbers another, a naive model can simply predict the majority class for all inputs. This yields a high overall accuracy score while failing to detect the minority class entirely.
Questions on Computer Vision and NLP:
- Question: Why are visual corners considered superior feature descriptors compared to edges or flat surfaces?
- Answer: Flat surfaces are homogeneous across all directions, and edges look identical along their length. Corners show distinct pixel variations in every direction, providing clear mathematical coordinates for matching.
- Question: What is the role of the Rectified Linear Unit (ReLU) function within a Convolutional Neural Network?
- Answer: ReLU applies the transformation , setting negative feature map values to zero. This introduces non-linearity and sharpens edge boundaries without altering positive activations.
- Question: What distinguishes stemming from lemmatization in text preprocessing?
- Answer: Stemming applies crude heuristics to strip word affixes, which often leaves non-words (e.g., "studies" becomes "studi"). Lemmatization uses morphological dictionaries to reduce words to linguistically valid root forms (e.g., "studies" becomes "study").
- Question: Why do common words receive low numerical weights in a TF-IDF matrix?
- Answer: Words appearing across all documents have a Document Frequency () equal to the total document count (). This results in an Inverse Document Frequency of , zeroing out the term's overall TF-IDF weight.