Final
Final
Applications of AI
Definition: NLP is a subfield of artificial intelligence (AI) that deals with the interaction between
computers and humans using natural language. It involves enabling machines to read, understand,
and derive meaning from human languages.
Grammar Components:
1. Syntax: Rules that govern the structure of sentences (e.g., word order, agreement between
subjects and verbs).
2. Morphology: Study of the structure of words (e.g., prefixes, suffixes, roots).
3. Phonology: Study of the sound system of a language (e.g., phonemes, intonation).
4. Pragmatics: Study of how context influences the interpretation of meaning.
Semantics:
• Definition: The study of meaning in language. It deals with how words, phrases, and
sentences convey meaning.
• Components:
o Lexical Semantics: Study of word meanings and relationships (e.g., synonyms,
antonyms).
o Compositional Semantics: How individual word meanings combine to form the
meaning of phrases and sentences.
o Contextual Semantics: How context influences the meaning of words and sentences.
PRIYA M R 1
Unit V Artificial Intelligence
Smoothing: Smoothing is a technique used in language modelling to handle the problem of zero
probability for unseen n-grams (sequences of words or characters). Without smoothing, an n-gram
model would assign a probability of zero to any n-gram that doesn't appear in the training data,
which can be problematic. Smoothing methods, such as Laplace smoothing, add a small probability
to unseen n-grams, ensuring that the model can handle previously unseen sequences more
gracefully.
PRIYA M R 2
Unit V Artificial Intelligence
Text Classification
Definition: Text classification is a process in natural language processing (NLP) where text is
categorized into predefined classes or categories. It involves assigning a label to a piece of text, such
as a document, sentence, or phrase, based on its content.
Applications:
1. Spam Detection: Classifying emails as spam or non-spam.
2. Sentiment Analysis: Determining the sentiment expressed in a piece of text (e.g., positive,
negative, neutral).
3. Topic Categorization: Assigning documents to topics (e.g., sports, politics, technology).
4. Language Detection: Identifying the language of a given text.
5. Intent Detection: Understanding user intent in chatbot and virtual assistant applications.
Bayes' Rule Bayes' rule, also known as Bayes' theorem, is a fundamental concept in probability
theory and statistics. It provides a way to update the probability of a hypothesis based on new
evidence. In the context of text classification, it is used to calculate the probability that a given
document belongs to a particular class.
Bayes' rule is stated as:
P(A|B) = P(B|A)P(A) / P(B)
Where:
• P(A) and P(B) are the probabilities of events A and B
• P(A|B) is the probability of event A when event B happens
• P(B|A) is the probability of event B when A happens
PRIYA M R 3
Unit V Artificial Intelligence
Applications of IR:
1. Search Engines:
o Use IR techniques to index and retrieve web pages based on user queries.
o Incorporate AI to improve ranking algorithms and understand user intent.
PRIYA M R 4
Unit V Artificial Intelligence
Speech Recognition
Speech Recognition, also known as Automatic Speech Recognition (ASR), is the process of
converting spoken language into written text. This technology allows machines to understand and
respond to human speech, enabling applications like voice assistants, transcription services, and
voice-controlled devices.
Key Components of Speech Recognition Systems
1. Acoustic Model:
o Purpose: Maps audio signals to phonetic units.
o Training: Uses a large dataset of audio recordings and their corresponding
transcriptions to learn the relationship between audio features and phonetic units.
2. Language Model:
o Purpose: Predicts the likelihood of a sequence of words.
o Types: Can be n-gram models, neural network-based models, or more complex
structures like transformers.
o Training: Uses a large corpus of text to learn the probability distribution of word
sequences.
3. Lexicon:
o Purpose: Provides a mapping between words and their phonetic representations.
o Components: Contains words and their corresponding phonemes, which are the
basic units of sound in speech.
PRIYA M R 5
Unit V Artificial Intelligence
4. Feature Extraction:
o Purpose: Converts raw audio signals into a set of features that can be processed by
the acoustic model.
o Techniques: Includes methods like Mel-Frequency Cepstral Coefficients (MFCC),
Linear Predictive Coding (LPC), and spectrograms.
5. Decoder:
o Purpose: Combines the acoustic model, language model, and lexicon to find the
most likely sequence of words from the audio signal.
o Techniques: Often employs algorithms like the Viterbi algorithm, beam search, or
more advanced search methods.
PRIYA M R 6
Unit V Artificial Intelligence
3. Voice-Controlled Devices:
o Examples: Smart home devices, automotive systems.
o Functionality: Enables hands-free control of devices through voice commands.
4. Language Learning:
o Examples: Language learning apps like Duolingo.
o Functionality: Provides pronunciation feedback and helps users practice speaking.
5. Accessibility:
o Examples: Assistive technologies for individuals with disabilities.
o Functionality: Enables communication and control of devices for users with physical
impairments.
PRIYA M R 7
Unit V Artificial Intelligence
Image Processing
Image Processing involves the manipulation and analysis of digital images using algorithms and
techniques to enhance, analyze, and extract meaningful information. It is widely used in various
fields such as medical imaging, computer vision, remote sensing, and more.
PRIYA M R 8
Unit V Artificial Intelligence
f. Image Compression
o Description: Reducing the size of an image file without significantly degrading
quality.
o Techniques:
• Lossless Compression: Methods like PNG and GIF that preserve all image
data.
• Lossy Compression: Methods like JPEG and MPEG that reduce file size by
discarding some data.
g. Object Detection and Recognition:
o Description: Identifying and classifying objects within an image.
o Techniques:
• Template Matching: Comparing portions of the image with predefined
templates.
• Feature Matching: Using algorithms like SIFT, SURF, or ORB to match
features.
• Deep Learning: Using Convolutional Neural Networks (CNNs) for robust
object detection and recognition.
h. Image Understanding:
o Description: Extracting high-level information and semantics from an image.
o Techniques:
• Scene Classification: Categorizing entire images into predefined classes.
• Image Captioning: Generating descriptive text for an image.
• Semantic Segmentation: Assigning a class label to each pixel in the image.
PRIYA M R 9
Unit V Artificial Intelligence
6. Entertainment:
o Examples: Image editing, special effects.
o Functionality: Enhances visual content for movies, games, and media.
Computer Vision
Computer Vision is a subfield of artificial intelligence (AI) focused on enabling machines to
interpret and understand visual information from the world, similarly to how humans use their
vision. It combines techniques from image processing, machine learning, and deep learning to
analyze images and videos for various applications.
2. Preprocessing:
Description: Enhancing image quality to improve further analysis.
Techniques: Noise reduction, contrast enhancement, resizing, normalization,
etc.
3. Feature Extraction:
Description: Identifying key features or patterns in images.
Techniques: Edge detection, corner detection, texture analysis, color
histograms, etc.
4. Object Detection and Recognition:
Description: Identifying and classifying objects within an image.
Techniques:
o Traditional Methods: Viola-Jones, Histogram of Oriented Gradients
(HOG), SIFT, SURF.
o Deep Learning: Convolutional Neural Networks (CNNs), Region-based
CNNs (R-CNN), YOLO (You Only Look Once), SSD (Single Shot
Multibox Detector).
5. Image Segmentation:
Description: Partitioning an image into meaningful regions.
Techniques: Thresholding, clustering, region growing, semantic segmentation
using CNNs.
6. Scene Understanding:
Description: Interpreting the overall scene in an image.
PRIYA M R 10
Unit V Artificial Intelligence
PRIYA M R 11
Unit V Artificial Intelligence
Robotics
Robotics is an interdisciplinary field that combines engineering, computer science, and AI to design
and build machines capable of performing tasks autonomously or semi-autonomously. AI enhances
robotics by enabling machines to perceive their environment, make decisions, and learn from
experiences.
Key Components of AI in Robotics
1. Perception:
Description: Robots must understand their surroundings using sensors and cameras.
Techniques:
o Computer Vision: For object detection, scene understanding, and navigation.
o Sensor Fusion: Combining data from multiple sensors (e.g., cameras, LiDAR,
ultrasonic sensors) to create a comprehensive understanding of the
environment.
2. Decision-Making:
Description: Robots need to make informed choices based on their perception and
objectives.
Techniques:
PRIYA M R 12
Unit V Artificial Intelligence
o Machine Learning: To analyze data and predict outcomes, often used in path
planning and behavior prediction.
o Reinforcement Learning: Training robots to learn optimal actions through
trial and error in dynamic environments.
3. Control:
Description: Robots must execute actions based on their decisions with precision.
Techniques:
o Control Theory: For maintaining stability and achieving desired states (e.g.,
PID controllers).
o Motion Planning: Algorithms that compute feasible paths for movement while
avoiding obstacles.
4. Interaction:
Description: Robots often need to interact with humans or other robots.
Techniques:
o Natural Language Processing (NLP): For understanding and generating
human language, allowing for voice commands and interactions.
o Human-Robot Interaction: Designing intuitive interfaces and behaviors for
effective communication.
5. Learning and Adaptation:
Description: Robots can improve their performance over time by learning from
experiences.
Techniques:
o Supervised Learning: Using labeled datasets to improve tasks like
classification or regression.
o Unsupervised Learning: Discovering patterns in data without labels, useful for
clustering and anomaly detection.
Applications of Robotics:
1. Industrial Robotics:
Functionality: Automating manufacturing processes such as assembly, welding,
painting, and packaging.
Examples: Robotic arms used in automotive assembly lines.
2. Autonomous Vehicles:
Functionality: Navigating and driving without human intervention, using sensors and
AI for perception and decision-making.
PRIYA M R 13
Unit V Artificial Intelligence
8. Assistive Robots:
Functionality: Supporting individuals with disabilities or the elderly in daily
activities.
Examples: Robotic exoskeletons for mobility assistance and companion robots
PRIYA M R 14