AI Unit 1 With Assignment
AI Unit 1 With Assignment
UNIT 1
INTELLIGENCE
• the ability to solve complex problems or make decisions with
outcomes benefiting the actor
• Intelligence is a general mental ability that integrates cognitive
functions like perception, attention, memory, language, and
planning
• the ability to learn from experience, acquire and retain
knowledge, and use reason to solve problems.
ARTIFICIAL INTELLIGENCE
1. Reactive machines
• Reactive machines are AI systems that have no memory and are task specific,
meaning that an input always delivers the same output. Machine learning
models tend to be reactive machines because they take customer data, such
as purchase or search history, and use it to deliver recommendations to the
same customers.
• This type of AI is reactive. It performs “super” AI, because the average human
would not be able to process huge amounts of data such as a customer’s
entire Netflix history and feedback customized recommendations
2. Limited memory machines
• The next type of AI in its evolution is limited memory. This algorithm imitates the way our
brains’ neurons work together, meaning that it gets smarter as it receives more data to train
on. Deep learning algorithms improve natural language processing (NLP), image recognition,
and other types of reinforcement learning.
• Self-driving cars: A good example of limited memory AI is the way self-driving cars observe
other cars on the road for their speed, direction, and proximity. This information is
programmed as the car’s representation of the world, such as knowing traffic lights, signs,
curves, and bumps in the road.
3. Theory of mind
• The first two types of AI, reactive machines and limited memory, are types
that currently exist. Theory of mind and self-aware AI are theoretical types
that could be built in the future. As such, there aren’t any real world examples
yet.
• If it is developed, theory of mind AI could have the potential to understand
the world and how other entities have thoughts and emotions. In turn, this
affects how they behave in relation to those around them.
4. Self-awareness
• The grand finale for the evolution of AI would be to design systems that have
a sense of self, a conscious understanding of their existence. This type of AI
does not exist yet.
• This goes a step beyond theory of mind AI and understanding emotions to
being aware of themselves, their state of being, and being able to sense or
predict others’ feelings. For example, “I’m hungry” becomes “I know I am
hungry” or “I want to eat paneer tikka because it’s my favorite food.”
CHALLENGES
Artificial intelligence (AI) faces many challenges, including:
• Data privacy
AI often involves processing large amounts of sensitive and confidential information,
which can raise concerns about data security and privacy. Hackers and cybercriminals
can exploit vulnerabilities in AI systems to gain access to sensitive information.
• Bias
AI systems are only as good as the data they are trained on, and if that data is biased,
the AI system will be biased as well. Bias can lead to unfair treatment of certain groups
of people and can perpetuate existing inequalities.
• Ethical challenges
As AI systems become increasingly autonomous, questions arise about
accountability, bias, and privacy. Ensuring that AI operates in a fair and
responsible manner remains a pressing concern.
• Data quality
AI systems rely heavily on the data they are fed, and if the data is inaccurate,
incomplete, or biased, the results of the AI will also be flawed.
THE FOUNDATIONS OF ARTIFICIAL INTELLIGENCE
The Foundation of AI
These building blocks include machine learning, natural language processing, computer vision,
and robotics, among others. Together, these components form the backbone of AI, allowing
machines to learn, adapt, and improve over time
1. machine learning: machine learning is a subset of AI that focuses on the development of algorithms that
enable machines to learn from data and make predictions or decisions without being explicitly programmed.
For instance, an e-commerce platform uses machine learning algorithms to recommend products to customers
based on their browsing history, purchases, and search history.
2. Natural Language Processing: Natural Language Processing (NLP) refers to the ability of machines to
understand, interpret, and generate human language. NLP is essential for chatbots, virtual assistants, and voice
recognition systems that allow users to interact with machines using natural language.
3. Computer Vision: Computer Vision involves training machines to interpret and understand visual data from
the world around them. With computer vision, machines can recognize objects, faces, and even emotions,
which is critical for applications such as facial recognition, surveillance, and self-driving cars.
4. Robotics: Robotics is the application of AI in the development of robots that can perform tasks
autonomously. This includes everything from industrial robots used in manufacturing to autonomous drones
and self-driving cars.
TECHNIQUES
Artificial intelligence (AI) models are essential for AI to learn how to perform
tasks like facial recognition, email spam detection, and product
recommendations. AI models require a dataset to learn how to perform these
tasks
Artificial intelligence models are the tools and algorithms used to train
computers to process and analyze data – just as humans do
• An AI model is a program that has been trained on a set of data to recognize
certain patterns or make certain decisions without further human
intervention. Artificial intelligence models apply different algorithms to
relevant data inputs to achieve the tasks, or output, they’ve been
programmed for.
DEFINING PROBLEM AS A STATE SPACE SEARCH
• An AI system is composed of an agent and its environment. The agents act in their
environment. The environment may contain other agents.
An agent is anything that can be viewed as:
• Perceiving its environment through sensors and
• Acting upon that environment through actuators(actuators are the physical or digital mechanisms that an
AI agent uses to carry out actions in its environment. They bridge the gap between the agent's decision-
making process and its impact on the surroundings. )
• an agent is a computer program or system that is designed to perceive its
environment, make decisions and take actions to achieve a specific goal or set of
goals. The agent operates autonomously, meaning it is not directly controlled by a
human operator.
• An intelligent agent (IA) is a program that acts independently to achieve goals by
using sensors and actuators to perceive its environment. IAs can be robots,
machines, humans, or animals. They can learn from their environment to achieve
their goals.
Some examples of intelligent agents include:
• Driverless cars
• Siri virtual assistant
• Software agents
Following are the main four rules for an AI agent:
• Rule 1: An AI agent must have the ability to perceive the
environment.
• Rule 2: The observation must be used to make decisions.
• Rule 3: Decision should result in an action.
• Rule 4: The action taken by an AI agent must be a rational action.
STRUCTURE OF AN AI AGENT
The task of AI is to design an agent program which implements the agent function. The
structure of an intelligent agent is a combination of architecture and agent program. It
can be viewed as:
• Agent = Architecture + Agent program
• Following are the main three terms involved in the structure of an AI agent:
• Architecture: Architecture is machinery that an AI agent executes on.
• Agent Function: Agent function is used to map a percept to an action.
• Agent program: Agent program is an implementation of agent function. An agent
program executes on the physical architecture to produce function f.
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:
• P: Performance measure
• E: Environment
• A: Actuators
• S: Sensors
self-driving car then PEAS representation will be:
• Performance: Safety, time, legal drive, comfort
• Environment: Roads, other vehicles, road signs,
pedestrian
• Actuators: Steering, accelerator, brake, signal, horn
• Sensors: Camera, GPS, speedometer, odometer,
accelerometer, sonar.
• Agents can be classified into different types based on their characteristics,
such as whether they are reactive or proactive, whether they have a fixed or
dynamic environment, and whether they are single or multi-agent systems.
• Reactive agents are those that respond to immediate stimuli from their
environment and take actions based on those stimuli. Proactive agents, on
the other hand, take initiative and plan ahead to achieve their goals. The
environment in which an agent operates can also be fixed or dynamic. Fixed
environments have a static set of rules that do not change, while dynamic
environments are constantly changing and require agents to adapt to new
situations.
• Multi-agent systems involve multiple agents working together to achieve a
common goal. These agents may have to coordinate their actions and
communicate with each other to achieve their objectives. Agents are used in
a variety of applications, including robotics, gaming, and intelligent systems.
They can be implemented using different programming languages and
techniques, including machine learning and natural language processing.
• A rational agent could be anything that makes decisions, such as a
person, firm, machine, or software. It carries out an action with the best
outcome after considering past and current percepts
Architecture and Agent programs
Architecture is the machinery that the agent executes on. It is a device
with sensors and actuators, for example, a robotic car, a camera, and a
PC. An agent program is an implementation of an agent function.
An agent function is a map from the percept sequence(history of all that
an agent has perceived to date) to an action.
CHARACTERISTICS