Artificial Intelligence Unit 1
Artificial Intelligence Unit 1
Unit-1
Artificial Intelligence (AI) refers to the development of systems or machines that can
perform tasks typically requiring human intelligence. This includes tasks such as
reasoning, learning, problem-solving, perception, language understanding, and
decision-making.
Key Concepts:
The roots of AI go back to ancient times with myths of intelligent machines, but the
modern field began in the mid-20th century.
Key Milestones:
Key Applications:
1. Healthcare:
○ Diagnostics: AI systems analyze medical images (like X-rays and MRIs) to
detect diseases such as cancer more accurately and faster than human
doctors.
○ Personalized Medicine: AI analyzes patient data to tailor treatment plans
based on individual health needs.
2. Finance:
○ Fraud Detection: AI algorithms monitor transactions to identify unusual
patterns that may indicate fraudulent activity.
○ Algorithmic Trading: AI analyzes market trends to make quick trading
decisions, maximizing profits and minimizing risks.
3. Transportation:
○ Self-Driving Cars: AI enables vehicles to navigate and make decisions on
the road, reducing human error and improving safety.
○ Traffic Management: AI systems optimize traffic flow by analyzing real-time
data from cameras and sensors.
4. Customer Service:
○ Chatbots: AI-powered chatbots provide 24/7 customer support, answering
queries and solving problems without human intervention.
○ Virtual Assistants: AI assistants like Siri and Alexa help users with tasks,
providing information and controlling smart devices.
5. Retail:
○ Recommendation Systems: AI analyzes customer behavior to suggest
products, enhancing the shopping experience (e.g., Amazon's
recommendations).
○ Inventory Management: AI predicts demand and optimizes stock levels,
reducing waste and improving efficiency.
6. Manufacturing:
○ Predictive Maintenance: AI analyzes machinery data to predict failures
before they happen, reducing downtime and maintenance costs.
○ Robotics: AI-driven robots automate repetitive tasks, increasing production
efficiency and safety.
7. Entertainment:
○ Content Recommendation: Streaming services use AI to suggest movies
and shows based on user preferences (e.g., Netflix).
○ Game Development: AI enhances gameplay by creating smarter non-player
characters (NPCs) and adaptive game environments.
8. Agriculture:
○ Precision Farming: AI analyzes data from sensors and drones to optimize
crop yields and reduce resource usage.
○ Disease Detection: AI systems identify plant diseases early through image
recognition, helping farmers take timely action.
9. Education:
○ Personalized Learning: AI tailors educational content to individual student
needs, helping them learn at their own pace.
○ Assessment Tools: AI automates grading and provides feedback, freeing
up teachers' time for more personalized interactions.
10. Smart Homes:
○ Home Automation: AI systems control smart devices, like thermostats and
lights, based on user preferences and behaviors.
○ Security Systems: AI monitors for unusual activity and alerts homeowners,
enhancing safety.
An intelligent agent is an autonomous entity that perceives its environment and takes
actions to maximize its chances of success.
● Perception: The agent uses sensors (like cameras, microphones) to perceive its
environment.
● Action: It uses actuators (like motors, speakers) to perform tasks.
● Environment: The external setting in which the agent operates.
● Goals: The desired outcomes or objectives the agent tries to achieve.
Types of Agents:
Applications:
Key Techniques:
Applications:
● Voice Assistants: Systems like Siri or Alexa that understand and respond to
spoken language.
● Chatbots: Automated systems that can converse with users.
● Language Translation: Real-time translation services for breaking language
barriers.
Key Techniques:
1. Text Processing:
○ Tokenization: Breaking down text into smaller units, like words or phrases.
○ Normalization: Converting text to a standard format (e.g., converting all text
to lowercase).
2. Syntax and Structure:
○ Part-of-Speech Tagging: Identifying grammatical categories (nouns, verbs)
for each word in a sentence.
○ Parsing: Analyzing the structure of a sentence to understand its
grammatical relationships.
3. Semantics:
○ Word Sense Disambiguation: Determining the meaning of a word based on
its context.
○ Named Entity Recognition (NER): Identifying and classifying entities
(people, organizations, locations) in text.
4. Pragmatics:
○ Understanding the context and intended meaning behind words and
phrases.
Applications of NLP
1. Voice Assistants:
○ Example: Siri, Alexa, and Google Assistant use NLP to understand spoken
commands and provide responses.
2. Chatbots:
○ Example: Customer service chatbots can handle inquiries and provide
support based on user questions.
3. Machine Translation:
○ Example: Google Translate translates text from one language to another,
helping break language barriers.
4. Sentiment Analysis:
○ Example: Businesses analyze customer reviews or social media posts to
gauge public sentiment about products or services.
5. Text Summarization:
○ Example: Automated tools can generate concise summaries of long articles
or documents.
6. Spam Detection:
○ Example: Email services use NLP to identify and filter out spam messages
based on content analysis.
7. Content Recommendation:
○ Example: Platforms like Netflix and Spotify suggest content based on user
preferences, utilizing NLP to analyze user feedback and behavior.
Challenges in NLP
1. Ambiguity:
○ Words and phrases can have multiple meanings depending on context
(e.g., "bank" can refer to a financial institution or the side of a river).
2. Sarcasm and Nuance:
○ Detecting sarcasm or subtle nuances in language can be difficult for NLP
systems.
3. Variety of Languages:
○ NLP must accommodate diverse languages, dialects, and writing styles,
making it complex to implement universally.
4. Data Quality:
○ NLP models rely on large datasets, and the quality of this data can
significantly impact performance.
An Intelligent Agent is like a smart helper (machine or program) that observes its
surroundings and makes decisions to achieve its goals.
1. Sensors (Perception): These help the agent "see" and "hear" the world. For
example, the vacuum cleaner has sensors to detect dust, walls, and furniture.
2. Actuators (Actions): These are the agent’s "hands and legs" to do something in
the world. The vacuum uses wheels to move around and a brush to clean.
3. Environment: This is the setting where the agent operates. In this case, it's your
house with rooms, furniture, and dust.
4. Goals: The agent has a specific task or goal to accomplish. For the vacuum
cleaner, the goal is to clean the house efficiently without bumping into walls or
furniture.
Types of Agents:
● Simple Reflex Agent: Acts based on direct perceptions, like a vacuum turning
when it hits a wall.
● Model-Based Agent: It remembers past actions to improve future decisions, like
how a self-driving car knows which routes are better.
● Goal-Based Agent: Works towards a specific objective, like the robot vacuum
aiming to clean every corner.
● Utility-Based Agent: Tries to find the best way to achieve its goal, like choosing
the shortest route to clean the house faster.
Computer Vision is a technology that helps computers "see" and understand images or
videos, just like humans can recognize faces, objects, or scenes.
Example: Think about how your phone can unlock by scanning your face (facial
recognition). That’s computer vision!
Real-Life Examples:
● Face Unlock on Phones: The camera on your phone scans your face and matches
it with stored data to unlock.
● Self-Driving Cars: Cameras and sensors help the car "see" the road, other cars,
and pedestrians, so it knows when to stop or turn.
● Medical Imaging: Doctors use AI to scan X-rays or MRIs, helping them detect
diseases like cancer faster than before.
How It Works: Computer vision uses techniques like image recognition and deep
learning (a type of AI) to identify patterns in pictures and videos, like identifying if a
photo contains a cat or a car.
Natural Language Processing (NLP) helps computers understand, interpret, and respond
to human language, whether it’s spoken or written.
Example: When you ask Siri or Alexa to play a song, they understand your request, find
the song, and play it for you. This is NLP in action!
Real-Life Examples:
● Voice Assistants (Siri, Alexa): You talk to them, and they understand your
commands, like setting alarms or playing music.
● Google Translate: It helps you translate words or sentences from one language to
another.
● Chatbots: When you chat with customer support online, AI chatbots understand
your questions and give you answers.
How It Works: NLP breaks down language into simpler parts (words, phrases) and uses
AI to figure out what you mean, even if you use different words to express the same
thing.