Chapter 1: AI Domains and Applications

Comprehensive Study Notes: Three Core AI Domains, Learning Techniques, Dataset Frameworks, and Complete Exercise Solutions

1. Fundamentals and Meaning of AI Domains

A. Key Revisit: Intelligence vs. Automation

B. What are AI Domains?

AI is not a single, isolated technology; it is composed of multiple specialized fields categorized by the type of data they process and the tasks they perform. These branches work together to simulate human sensory and cognitive capabilities:

1. Data Science ("The Brain")

Focuses on analyzing structured data, discovering hidden patterns, and predicting quantitative outcomes. Used for sales forecasting, financial fraud detection, and personalized recommendations.

2. Computer Vision ("The Eyes")

Enables machines to capture, process, and interpret visual data (images, video streams). Used for facial recognition, object detection, autonomous vehicle navigation, and medical image diagnostics.

3. Natural Language Processing ("The Mouth / Ears")

Empowers machines to read, understand, interpret, and generate human language. Used in intelligent chatbots, automated translation, voice assistants, and sentiment analysis.

2. Core Machine Learning & Predictive Techniques

A. Predictive Techniques Overview

Prediction in AI relies on logic and mathematical modeling rather than guesswork:

B. Classification vs. Regression vs. Clustering

Technique Learning Type Target Output Key Examples
Classification Supervised (Trained on labeled datasets) Discrete categorical labels or predefined groups Sorting emails as "Spam" or "Not Spam"; distinguishing animal images as "Cat" or "Dog".
Regression Supervised (Trained on historical data) Continuous numerical values Predicting real estate prices based on square footage and location; estimating a student's upcoming test score based on study hours.
Clustering Unsupervised (No predefined labels provided) Groups of items based on natural similarities Clustering weather patterns into hot, cold, or rainy days; photo apps automatically grouping photos by individual faces or locations.
Classification Spam Inbox Output: Discrete Group Regression $450k Output: Number Value Clustering Unlabeled Groups

3. Datasets and Data Science Methodology

A. What is a Dataset?

A dataset is an organized collection of related data points or records, each characterized by multiple features/attributes, used to train and evaluate machine learning models.

B. Dataset Partitioning (60-20-20 Rule)

To train and evaluate an AI model effectively, a dataset is divided into three distinct subsets:

Partition Typical Share Function & Analogy
Training Dataset 60% Used to teach the AI model to recognize patterns. Analogy: Studying chapters from your textbook.
Validation Dataset 20% Used to adjust hyperparameters and refine model tuning while training is underway. Analogy: Practicing sample quiz questions.
Test Dataset 20% Provides an objective, final check using data the model has never encountered before. Analogy: Sitting for the final exam.

C. Data-Driven Real-World Solutions

4. Computer Vision (The Eyes of AI)

A. The 6 Steps of Computer Vision

  1. Image Acquisition: Capturing raw visual data through camera sensors, scanners, or stored digital media.
  2. Pre-processing: Cleaning the raw visual feed via noise reduction, contrast adjustment, and geometric alignment to improve quality.
  3. Feature Extraction: Detecting distinct structural cues like edges, textures, shapes, and color distributions.
  4. Object Categorization (Classification): Matching extracted features against learned profiles to determine an object's category (e.g., "Cat" vs. "Dog").
  5. Object Identification (Localization): Detecting the presence of specific items and marking their precise spatial coordinates (bounding boxes) within a frame.
  6. Object Tracking: Tracking target entities across consecutive video frames under varying lighting, speed, and motion conditions.

5. Natural Language Processing (The Mouth & Ears of AI)

A. How NLP Understands Human Language

  1. Data Pre-processing: Breaking continuous text into tokens (tokenization), removing punctuation, converting text to lowercase, and reducing words to their root forms (stemming).
  2. Syntactic Analysis (Syntax): Evaluating grammatical structure to verify how words are ordered into valid sentences.
  3. Semantic Analysis (Semantics): Interpreting the contextual meaning of words and phrases, including word-sense disambiguation (e.g., distinguishing whether "bat" refers to sports equipment or a flying mammal).
  4. Deep Learning & Sentiment Analysis: Using neural network architectures trained on text datasets to understand intent, tone, and emotional context (positive, neutral, negative).

6. Exercise Solutions

Section A: Multiple Choice Questions

1. Which AI technique predicts numerical values?

a) Classification
b) Clustering
c) Regression
d) Detection
Correct Option: c) Regression

Regression algorithms are designed to estimate continuous numerical quantities (e.g., house prices or test scores).

2. Which AI domain works with images and videos?

a) NLP
b) Data Science
c) Computer Vision
d) Science
Correct Option: c) Computer Vision

Computer Vision is the specialized domain focused on extracting information from visual media like photos and videos.

3. Clustering is mainly used to:

a) Predict marks
b) Group similar data
c) Translate language
d) Detect spam
Correct Option: b) Group similar data

Clustering groups unlabeled data points together based on shared characteristics and patterns.

4. In classification, the output is:

a) A continuous value
b) A predefined category
c) A random number
d) A chart
Correct Option: b) A predefined category

Classification maps input data into discrete classes or labels (e.g., "Spam" vs. "Not Spam").

5. In dataset division, which data is used for final evaluation?

a) Training
b) Validation
c) Test
d) Raw data
Correct Option: c) Test

The test dataset provides an unbiased, final evaluation of model performance on unseen data.

Section B: Fill in the Blanks
  1. Regression predicts numerical (continuous) values.
  2. Clustering does not require labelled data.
  3. Computer Vision works mainly with images and videos.
  4. NLP helps machines understand human language (linguistic data / text and speech).
  5. A dataset is divided into training, validation, and test sets.
Section C: Short Answer Questions

1. Differentiate between classification and regression.

Answer:

  • Classification: A supervised learning technique that assigns data points into discrete, predefined categories (e.g., sorting an email into spam or not spam).
  • Regression: A supervised learning technique that predicts continuous numerical values based on historical patterns (e.g., forecasting house prices or exam scores).

2. What is clustering? Give one example.

Answer: Clustering is an unsupervised AI method that organizes unlabeled data into groups based on natural similarities without preassigned labels.

Example: Photo management applications automatically grouping images by face or location.

3. Explain the importance of datasets in AI.

Answer: Datasets provide the foundational training material for AI systems. They supply the examples required for algorithms to learn patterns, optimize parameters, and make accurate predictions on new data.

4. List the steps involved in Computer Vision.

Answer: The six key steps are:

  1. Image Acquisition
  2. Pre-processing
  3. Feature Extraction
  4. Object Categorization
  5. Object Identification
  6. Object Tracking

5. How does NLP help in communication systems?

Answer: NLP enables computers to understand, interpret, and generate human speech and text. It powers real-time language translation, handles customer service queries through chatbots, assists users via voice assistants, and extracts sentiment from communications.

Section D: True or False
Statement Status Explanation
1. Regression predicts categories. False Regression predicts continuous numerical values, while classification predicts categories.
2. Clustering is a supervised learning method. False Clustering is unsupervised; it operates on unlabeled data without pre-existing targets.
3. Test data is used to evaluate model performance. True Test data serves as an independent benchmark to evaluate model accuracy.
4. Computer Vision can detect object locations. True Object identification detects items and locates them using bounding boxes.
5. NLP can analyse sentiment in text. True Sentiment analysis is a standard NLP capability used to identify emotional tone in text.
Section E: Identify the AI Domain
AI Application Identified AI Domain Justification
Analysing MRI scans Computer Vision Involves processing, interpreting, and segmenting medical image data.
Text summarization of long articles Natural Language Processing (NLP) Involves reading, interpreting, and condensing linguistic text.
Recommending products based on past purchases Data Science Analyzes structured transaction data and browsing history to find predictive patterns.
Grouping customers by buying behaviour Data Science (Clustering) Uses unsupervised clustering on structured sales data without predefined labels.
Chatbot answering customer queries Natural Language Processing (NLP) Understands user input text and generates appropriate natural language responses.