Unit 1 Full
Unit 1 Full
3. AI in Healthcare
Artificial Intelligence (AI) is revolutionizing the healthcare industry, offering
innovative solutions to complex challenges
1. Diagnosis and Detection
Image Analysis: AI-powered algorithms can analyze medical images (X-
rays, MRIs, CT scans) to detect abnormalities with greater accuracy and
speed than human experts.
Example: IBM Watson Health uses AI to assist doctors in diagnosing
diseases like cancer.
2. Drug Discovery and Development
Molecular Modeling: AI can predict molecular structures and
interactions, accelerating the discovery of new drugs.
Example: Insilico Medicine uses AI to develop new drug candidates.
3. Personalized Medicine
Genetic Analysis: AI can analyze patient genetic data to identify
personalized treatment options.
Example: 23andMe offers genetic testing and personalized health
insights.
4. Medical Imaging
Image Enhancement: AI can improve the quality of medical images,
making it easier for doctors to diagnose diseases.
Example: Nvidia Clara uses AI to enhance medical images and improve
diagnostic accuracy.
5. Virtual Health Assistants
Patient Engagement: AI-powered virtual assistants can provide patients
with information, reminders, and support.
Example: Babylon Health offers a virtual health assistant that can
provide medical advice and connect patients with doctors.
6. Predictive Analytics
Disease Prediction: AI can analyze patient data to predict the likelihood
of developing certain diseases.
Example: Verily Life Sciences uses AI to predict the risk of developing
chronic diseases.
7. Robotic Surgery
Precision and Minimally Invasive Procedures: AI-powered robotic
systems can perform surgeries with greater precision and less
invasiveness.
Example: da Vinci Surgical System is a widely used robotic surgery
system.
4. AI in Finance
Artificial Intelligence (AI) has become an indispensable tool in the financial
sector, revolutionizing various aspects of the industry.
1. Fraud Detection
Anomaly Detection: AI algorithms can identify unusual patterns in
financial transactions, helping to prevent fraud and protect customers.
Example: PayPal uses AI to detect fraudulent transactions and protect
its customers.
2. Algorithmic Trading
High-Frequency Trading: AI-powered systems can execute trades at high
speeds, often outperforming human traders.
Example: Renaissance Technologies is a hedge fund known for its use of
AI-driven trading strategies.
3. Risk Assessment
Credit Scoring: AI can analyze vast datasets to assess creditworthiness
more accurately than traditional methods.
Example: ZestFinance uses AI to develop more accurate credit scoring
models.
4. Investment Management
Portfolio Optimization: AI can help investors build diversified portfolios
that align with their risk tolerance and return objectives.
Example: Wealthfront uses AI to offer automated investment advice.
5. Customer Service
Chatbots: AI-powered chatbots can handle customer inquiries and
provide support 24/7, reducing the workload on human agents.
Example: Bank of America's Erica is a virtual assistant that can help
customers with various banking tasks.
6. Regulatory Compliance
Compliance Monitoring: AI can help financial institutions monitor
compliance with regulations and identify potential risks.
Example: FinRegTech uses AI to help financial institutions comply with
regulations.
7. Predictive Analytics
Market Forecasting: AI can analyze market data to predict future trends
and make informed investment decisions.
Example: Bloomberg uses AI to provide market data and analysis.
5. AI in Data Security: A Powerful Shield
Artificial Intelligence (AI) is playing a crucial role in safeguarding sensitive data
from cyber threats. Its ability to analyze vast amounts of data, identify
patterns, and learn from experience makes it an invaluable asset in data
security.
1. Anomaly Detection
Identifying Unusual Patterns: AI algorithms can detect anomalies in
network traffic, user behavior, and system logs that may indicate
malicious activity.
Example: CrowdStrike uses AI to detect and prevent cyberattacks in
real-time.
2. Threat Intelligence
Analyzing Threat Data: AI can analyze threat intelligence data to identify
emerging threats and develop appropriate countermeasures.
Example: Palo Alto Networks uses AI to provide threat intelligence and
security solutions.
3. Behavioral Analytics
User Behavior Monitoring: AI can monitor user behavior to identify
suspicious activity, such as unauthorized access or data exfiltration.
Example: IBM QRadar uses AI to detect insider threats and other
security breaches.
4. Intrusion Detection Systems (IDS)
Enhanced Detection: AI can improve the accuracy and efficiency of IDS
systems by identifying new attack patterns and false positives.
Example: McAfee Advanced Threat Protection uses AI to detect
advanced threats and protect against zero-day attacks.
5. Security Incident Response
Automated Response: AI can automate certain aspects of the security
incident response process, such as isolating compromised systems and
containing the spread of malware.
Example: Rapid7 InsightVM uses AI to automate vulnerability scanning
and incident response.
6. Data Privacy and Compliance
Enforcing Regulations: AI can help organizations comply with data
privacy regulations like GDPR and CCPA by identifying and addressing
non-compliance issues.
Example: BigID uses AI to help organizations discover, manage, and
protect sensitive data.
7. Predictive Analytics
Forecasting Threats: AI can use predictive analytics to forecast potential
cyber threats and proactively mitigate risks.
Example: Darktrace uses AI to detect and respond to cyber threats in
real-time.
6. Expert System:
Expert systems are AI applications designed to mimic the decision-making
abilities of human experts in a specific domain. They incorporate knowledge
and reasoning capabilities to provide expert advice and solve complex
problems.
Key components of an expert system:
Knowledge base: Contains facts, rules, and heuristics related to the
specific domain.
Inference engine: Applies reasoning techniques to draw conclusions
from the knowledge base.
User interface: Allows users to interact with the system and obtain
expert advice.
Applications of AI in expert systems:
Medical diagnosis: Expert systems can assist doctors in diagnosing
diseases based on patient symptoms and test results.
Financial planning: Expert systems can help individuals and businesses
make informed financial decisions.
Legal advice: Expert systems can provide legal advice on various
matters, such as contract negotiation and dispute resolution.
Technical support: Expert systems can help users troubleshoot technical
problems and provide solutions.
7. computer vision:
Computer vision is a field of artificial intelligence that deals with teaching
computers to understand and interpret visual information, such as images and
videos. It involves extracting meaningful information from visual data, enabling
computers to perform tasks that would normally require human vision.
Key Applications of AI in Computer Vision:
1. Image Recognition and Classification:
o Object Detection: Identifying and localizing objects within images
or videos (e.g., cars, people, animals).
o Facial Recognition: Recognizing and verifying individuals based on
their facial features.
o Image Classification: Categorizing images into different classes or
labels (e.g., cats vs. dogs, landscapes vs. portraits).
o Example: Self-driving cars use computer vision to detect
pedestrians, traffic signs, and other objects on the road.
2. Medical Imaging:
o Disease Diagnosis: Analyzing medical images (X-rays, MRIs, CT
scans) to detect abnormalities and diagnose diseases.
o Image Segmentation: Isolating specific regions of interest within
medical images for further analysis.
o Example: AI-powered systems can assist radiologists in diagnosing
cancer and other diseases by analyzing medical images.
3. Augmented Reality (AR) and Virtual Reality (VR):
o Object Tracking: Tracking the position and orientation of objects
in real-time for AR/VR applications.
o Environmental Mapping: Creating 3D models of real-world
environments for AR/VR experiences.
o Example: AR apps like Pokémon Go use computer vision to
overlay virtual objects onto the real world.
4. Autonomous Vehicles:
o Scene Understanding: Interpreting the surrounding environment,
including road conditions, traffic signs, and other vehicles.
o Obstacle Detection: Identifying potential obstacles, such as
pedestrians or other vehicles, to avoid collisions.
o Example: Self-driving cars rely heavily on computer vision to
navigate safely.
5. Robotics:
o Object Recognition and Manipulation: Enabling robots to
recognize and interact with objects in their environment.
o Visual Servoing: Controlling robots based on visual feedback,
allowing them to perform tasks like picking and placing objects.
o Example: Industrial robots use computer vision to inspect
products for defects and perform assembly tasks.
6. Surveillance and Security:
o Person Tracking: Monitoring the movement of individuals in
crowded areas.
o License Plate Recognition: Identifying vehicles based on their
license plates.
o Example: Security cameras use computer vision to detect
suspicious activity and identify potential threats.
8.AI in e-commerce
Artificial Intelligence (AI) has significantly impacted the e-commerce landscape,
transforming the way businesses interact with customers and operate.
1. Personalized Recommendations
Predicting Preferences: AI algorithms analyze customer data, including
purchase history, browsing behavior, and demographics, to predict their
preferences and offer tailored product recommendations.
Example: Amazon's recommendation engine is a prime example,
suggesting products based on customers' past purchases and browsing
habits.
2. Chatbots and Virtual Assistants
Enhanced Customer Service: AI-powered chatbots provide instant
customer support, answering questions, resolving issues, and assisting
with purchases.
Example: Many e-commerce websites have implemented chatbots to
handle common inquiries and improve customer satisfaction.
3. Visual Search
Image-Based Search: Customers can upload images of products they like
and find similar items available for purchase.
Example: Pinterest and Google Lens allow users to search for products
based on images.
4. Price Optimization
1. Dynamic Pricing: AI algorithms can analyze market data, competitor
pricing, and demand to dynamically adjust product prices.
2. Example: Online retailers like Amazon frequently adjust product prices
based on various factors, including customer behavior and inventory
levels.
5. Inventory Management
Demand Forecasting: AI can predict product demand, helping
businesses optimize inventory levels and avoid stockouts or
overstocking.
Example: E-commerce platforms use AI to forecast product demand and
ensure that the right items are available at the right time.
6. Fraud Detection
Anomaly Detection: AI algorithms can identify unusual patterns in
customer behavior or transactions that may indicate fraudulent activity.
Example: E-commerce platforms use AI to detect fraudulent orders and
protect both customers and businesses.
7. Supply Chain Optimization
Route Optimization: AI can optimize delivery routes, reducing shipping
costs and improving delivery times.
Example: E-commerce companies like Walmart use AI to optimize their
supply chains and ensure efficient delivery.
9. robotics
Artificial Intelligence (AI) and robotics have formed a powerful partnership,
revolutionizing various industries and applications. AI provides robots with the
intelligence to perceive their environment, make decisions, and learn from
their experiences.
Key Applications of AI in Robotics:
1. Autonomous Vehicles:
o Perception: AI enables autonomous vehicles to perceive their
surroundings using sensors like cameras, LiDAR, and radar.
o Decision-Making: AI algorithms help vehicles make decisions, such
as steering, braking, and accelerating, in real-time.
o Example: Tesla's Autopilot feature relies heavily on AI for
autonomous driving capabilities.
2. Industrial Automation:
o Collaborative Robots (Cobots): AI allows cobots to work safely
alongside human workers, performing tasks that are repetitive,
dangerous, or require precision.
o Quality Control: AI-powered vision systems can inspect products
for defects, ensuring high-quality output.
o Example: Amazon's warehouses use robotic systems to automate
tasks like picking and packing orders.
3. Healthcare:
o Surgical Robotics: AI-assisted surgical robots can perform delicate
procedures with greater precision and accuracy than human
surgeons.
o Rehabilitation Robotics: AI-powered robots can help patients with
disabilities regain mobility and improve their quality of life.
o Example: da Vinci Surgical System is a widely used robotic surgery
system.
4. Search and Rescue:
o Autonomous Drones: AI-equipped drones can search for survivors
in disaster areas, navigate challenging terrain, and transmit
valuable information.
o Example: Drones have been used in search and rescue missions
after natural disasters like earthquakes and hurricanes.
5. Domestic Robotics:
o Household Robots: AI-powered robots can perform household
chores like vacuuming, cleaning, and cooking.
o Example: Roomba vacuum cleaners use AI to navigate and clean
homes efficiently.
Benefits of AI in Robotics:
Enhanced Capabilities: AI provides robots with the intelligence to
perform complex tasks and adapt to changing environments.
Increased Efficiency: AI can optimize robot performance, reducing errors
and improving productivity.
Improved Safety: AI can help robots avoid hazards and work safely
alongside humans.
New Applications: AI has enabled the development of new robotic
applications in various industries.
Sociology We are tanning our machine
for
Computer
Psychology Reasoning
science
Learning
Problem solving
Artificial Intelligence
Language understanding
Maths Biology
Neuron Science
Advantage of AI Disadvantage of AI
Accuracy high and error low Cost high
Fast decision making Can’t thing beyond the limits
Reliability is more No feeling and emotions
Usefulness in risky area More dependency on machines
Digital Assistant No original thinking
Increased Efficiency and Productivity Job Displacement
Improved Decision Making Ethical Concerns
Enhanced Customer Service Dependency on Technology
Advancements in Healthcare Lack of Common Sense
Innovation and Creativity Cost of Development
Classification of AI:
Weak AI(Narrow AI) : Able to perform dedicated task with intelligence.
Can’t perform beyond its field or limitations.
Ex
Flying machine
Using logics
Apple siri
Playing chess
Strong AI: it is the study and design of machines that simulate human mind to
perform intelligent task
1. Borrowing ideas from psychology and neuroscience
2. Forgetting things , genetics, language
Evolutionary AI : it is the study and design of machines that simulate simple
creatures and attempt to evolve
Ex. Ants, Bees etc.
Super AI:
hypothetical concept machine> human [machine <communication>
machine]
AI Agents:-
responsible for any work output obtained from system
Ai is defined as Study of Rational
Agent 1.information gathering 2.action perform
sensors
Environment
Perceiving information of environment via sensor
Agent
actuators
Types of AI Agents:-
1.Simple Reflex Agents:
Works only on current Situation/perception and ignores the history of
previous state
Definition: These agents make decisions based purely on the present
condition of the environment. They don't consider future consequences.
Example: A thermostat that turns on the heater when the temperature
drops below a certain point.
Condition-Action Rule if Condition if true then take the action
Limitations
1. Very limited intelligence.
2. No knowledge about non-perception parts of state
3. It can go into infinite loop
Environment
Actuators
Action
Goal-Based Agents:
Focuses only on reaching the goal set
Agent Takes decision Based on how far it is Currently form the goal State
Every action is taken to minimize distance to Goal State
More flexible Agent
Definition: These agents have a goal and use a search algorithm to find a
sequence of actions to achieve it.
Example: A chess-playing AI that uses a search algorithm to find the best move
to win the game.
Utility-Based Agents
Agents are more Concerned about the utility(preference) for each state.
Act based not only goals but also the best way to achieve Goal
Useful when there are multiple possible alternatives and agent has to
choose in order to perform best action
Definition: These agents maximize their utility function, which measures the
expected reward of a particular action.
Example: A robot that balances exploration and exploitation to find the best
resources in an environment.
Learning Agents:
Can learn from its past experiences
Starts to act with basic knowledge and then able to act by adapting
learning
Learning Agents are AI systems that can improve their performance over time
by acquiring new knowledge or skills through experience. They are different
from traditional AI agents because they can adapt to new situations and
challenges.
• A learning agent in AI is the type of agent which can learn from its past
experiences, or it has learning capabilities.
• It starts to act with basic knowledge and then able to act and adapt
automatically through learning.
Components: -
1. Learning Element: makes improvement in system by learning from
environment
2. Critic: Gives feedback about Agent’s Performance based on standard
3. Performance Element: select the action to perform
4. Problem Generator: suggest the action. New information gain
Typical Intelligent Agents
An agent can be anything that perceive its environment through sensors and
act upon that environment through actuators. An Agent runs in the cycle of
perceiving, thinking, and acting. An agent can be:
Human-Agent: A human agent has eyes, ears, and other organs which work for
sensors and hand, legs, vocal tract work for actuators.
Robotic Agent: A robotic agent can have cameras, infrared range finder, NLP
for sensors and various motors for actuators.
Software Agent: Software agent can have keystrokes, file contents as sensory
input and act on those inputs and display output on the screen
Hence the world around us is full of agents such as thermostat, cellphone,
camera, and even we are also agents. Before moving forward, we should first
know about sensors, effectors, and actuators.
Sensor: Sensor is a device which detects the change in the environment and
sends the information to other electronic devices. An agent observes its
environment through sensors.
Actuators: Actuators are the component of machines that converts energy into
motion. The actuators are only responsible for moving and controlling a
system. An actuator can be an electric motor, gears, rails, etc.
Effectors: Effectors are the devices which affect the environment. Effectors can
be legs, wheels, arms, fingers, wings, fins, and display screen.
Intelligent Agents:
An intelligent agent is an autonomous entity which act upon an environment
using sensors and actuators for achieving goals. An intelligent agent may learn
from the environment to achieve their goals. A thermostat is an example of an
intelligent agent.
Following are the main four rules for an AI agent:
o Rule 1: An AI agent must have the ability to perceive the environment.
o Rule 2: The observation must be used to make decisions.
o Rule 3: Decision should result in an action.
o Rule 4: The action taken by an AI agent must be a rational action.
PEAS REPRESENTATION
PEAS is a type of model on which an AI agent works upon. When we define an
AI agent or rational agent, then we can group its properties under PEAS
representation model. It is made up of four words:
Performance Measure: The objective of the agent. What is it trying to
achieve?
Environment: The world in which the agent operates. What are the
conditions and constraints?
Actuators: The actions the agent can perform. What can it do?
Sensors: The information the agent can perceive. What does it know?
This framework provides a structured way to analyze and design AI agents. By
clearly defining these components, we can better understand the agent's
goals, capabilities, and limitations.
Example: A Self-Driving Car
Let's consider a self-driving car as an example to illustrate the PEAS
components:
Performance Measure: Safely and efficiently reach the destination,
minimizing fuel consumption and adhering to traffic laws.
Environment: Roads, traffic, weather conditions, pedestrians, and other
vehicles.
Actuators: Steering, acceleration, braking, and signaling.
Sensors: Cameras, lidar, radar, GPS, and internal sensors (e.g.,
speedometer, odometer).
By breaking down the self-driving car into these components, we can better
understand the challenges it faces and the factors that influence its decision-
making process.
Key Considerations in PEAS Representation
Environment Type: The environment can be fully observable, partially
observable, deterministic, stochastic, discrete, or continuous. These
factors influence the agent's decision-making process.
Agent Type: The agent can be a reflex agent, a model-based agent, a
goal-based agent, or a utility-based agent. The type of agent determines
how it uses information and makes decisions.
Performance Measure: The performance measure should be well-
defined and quantifiable. It helps evaluate the agent's success.
Properties of task environments
o Fully observable vs. partially observable
o Deterministic vs. stochastic
o Episodic vs. sequential
o Static vs. dynamic
o Discrete vs. continuous
o Single agent vs. multiagent
Fully observable vs. partially observable.
➢ If an agent's sensors give it access to the complete state of the environment
at each point in time, then we say that the task environment is fully
observable.
➢ A task environment is effectively fully observable if the sensors detect all
aspects that are relevant to the choice of action;
➢ An environment might be partially observable because of noisy and
inaccurate sensors or because parts of the state are simply missing from the
sensor data.
Deterministic vs. stochastic.
➢ If the next state of the environment is completely determined by the
current state and the action executed by the agent, then we say the
environment is deterministic;
➢ Otherwise, it is stochastic.
Episodic vs. sequential
➢ In an episodic task environment, the agent's experience is divided into
atomic episodes.
➢ Each episode consists of the agent perceiving and then performing a single
action.
➢ Crucially, the next episode does not depend on the actions taken in previous
episodes.
➢ For example, an agent that has to spot defective parts on an assembly line
bases each decision on the current part, regardless of previous decisions;
➢ In sequential environments, on the other hand, the current decision
Operations (Actions):
The blank space can be moved up, down, left, or right as long as the
move stays within the bounds of the puzzle. Each move swaps the blank
space with a neighboring tile.
Search Techniques:
To solve this, you can use various search techniques such as:
Breadth-First Search (BFS): Explore all possible states one level at a time
until you find the goal.
A* Algorithm: Use a heuristic to guide the search towards the goal. A
popular heuristic for this problem is the Manhattan distance, which
sums the distances each tile is away from its goal position.
Heuristic Example (Manhattan Distance):
In the initial state above:
Tile "5" should be at position (2,2), but it is currently at (2,1), so its
Manhattan distance is |2-2| + |1-2| = 1.
Tile "8" should be at (2,1), but it is at (1,1), so its Manhattan distance is
|2-1| + |1-1| = 1.
Summing these for all tiles gives an estimate of how far the solution is from the
goal.
Example 2: The Water Jug Problem
The water jug problem is another famous AI problem where you are given two
jugs with fixed capacities and an unlimited water supply. The goal is to
measure out a specific amount of water using these two jugs.
Problem Setup
Jug 1 Capacity: 4 liters.
Jug 2 Capacity: 3 liters.
Goal: Measure out exactly 2 liters of water.
Operations (Actions):
You can perform the following operations:
1. Fill a jug: Fill one of the jugs completely from the water supply.
2. Empty a jug: Pour all the water out of a jug.
3. Pour water from one jug to another: Transfer water from one jug to
another, either until the first jug is empty or the second jug is full.
Search Techniques:
This can be formulated as a search problem where:
State: The amount of water in Jug 1 and Jug 2 (represented as a pair,
e.g., (3, 0) means Jug 1 has 3 liters and Jug 2 has 0 liters).
Initial State: (0, 0), both jugs are empty.
Goal State: (2, x), where Jug 1 has 2 liters (x can be any amount in Jug 2).
You can use Breadth-First Search (BFS) or Depth-First Search (DFS) to explore
all possible states. Alternatively, A* with a heuristic that estimates how close
you are to the 2 liters in Jug 1 can also be applied.
Solution Example:
1. Fill Jug 2: (0, 3)
2. Pour Jug 2 into Jug 1: (3, 0)
3. Fill Jug 2 again: (3, 3)
4. Pour Jug 2 into Jug 1 until Jug 1 is full: (4, 2)
5. Empty Jug 1: (0, 2)
Now Jug 1 has exactly 2 liters, and you have reached the goal.
State Space Searching
S:{S,A,Action(S),Result(S,a),Cost(S,a)}
State-number of state in which the problem can go
Represent the problem precise and analyse
S Start, intermediate, Goal
Action a is set of possible Actions
Type of search
1.uninformed (blind search) don’t know anything about domain(problem), only
information about start and goal.it keeps exploring and matching each state
with the goal
2. informed Search use concept of heuristic by this we are try to solve problem
quickly