unit 1 A.I
unit 1 A.I
VII-SEM
FACULTY NAME:SONALI SINGH
UNIT-1(INTRODUCTION)
● Definition: These AIs do not have memory or the ability to learn from past
experiences. They operate solely based on current inputs.
● Example: IBM’s Deep Blue, which played chess by evaluating possible
moves in real-time without learning from past games.
2. Limited Memory
● Definition: These systems can learn from historical data and use that
information to make decisions. They have a form of memory but are still
task-specific.
● Example: Self-driving cars, which collect and analyze data from previous
trips to improve navigation and safety.
3. Theory of Mind
4. Self-aware AI
2. Birth of AI (1950s)
● Alan Turing (1950): Turing published the paper "Computing Machinery and
Intelligence," introducing the Turing Test as a criterion for machine intelligence.
● Dartmouth Conference (1956): John McCarthy, Marvin Minsky, Nathaniel
Rochester, and Claude Shannon organized this seminal conference, marking the
formal beginning of AI research. The term "Artificial Intelligence" was coined
here.
Challenges
4.INTELLIGENT AGENTS
Intelligent agents are systems that can perceive their environment, reason about it,
and take actions to achieve specific goals. They operate autonomously or
semi-autonomously, making decisions based on their programming and learned
experiences. Here are some key features and types of intelligent agents:
Key Features
1. Perception: Intelligent agents can gather data from their surroundings using
sensors or inputs (e.g., cameras, microphones, or data feeds).
2. Reasoning: They analyze the gathered information to make decisions. This
can involve logic, rules, or machine learning algorithms.
3. Action: Based on their reasoning, intelligent agents can perform actions to
influence their environment (e.g., moving, making recommendations, or
providing information).
4. Learning: Many intelligent agents can improve their performance over time
by learning from past experiences, adapting to new situations.
1. Virtual Assistants: Systems like Siri and Alexa that understand voice
commands and perform tasks.
2. Self-driving Cars: Use sensors and AI algorithms to navigate and drive
autonomously.
3. Recommendation Systems: Algorithms that suggest products or content
based on user preferences.
4. Game AI: Intelligent agents in video games that adapt to player behavior.
Fuzzy Logic
Introduction to Fuzzy Logic
Fuzzy logic is a form of many-valued logic that deals with reasoning that is
approximate rather than fixed and exact. Unlike traditional binary sets (where
variables can be either true or false), fuzzy logic variables may have a truth value
that ranges between 0 and 1. This allows for a more nuanced approach to reasoning
and decision-making, making it particularly useful in systems that require a degree
of tolerance for uncertainty and imprecision.
Key Concepts
1. Fuzzy Sets
2. Membership Functions
● Purpose: Membership functions define how each point in the input space is
mapped to a membership value (ranging from 0 to 1).
● Types:
○ Triangular: Defined by three points (the peak and the two base
points).
○ Trapezoidal: Defined by four points, providing a flat top.
○ Gaussian: A bell-shaped curve defined by a mean and standard
deviation.
● Union: The membership value of the union of two fuzzy sets is the
maximum of the membership values.
● Intersection: The membership value of the intersection is the minimum of
the membership values.
● Complement: The complement of a fuzzy set is calculated as 1−μ(x)1 -
\mu(x)1−μ(x), where μ(x)\mu(x)μ(x) is the membership function.
4. Fuzzy Rules
Fuzzy logic systems use a set of rules that express the relationship between input
and output using linguistic variables. For example:
1. Definition
2. Truth Values
● Crisp Logic: Only two truth values (true/false). For example, a statement
like "It is raining" can only be true or false.
● Fuzzy Logic: Can have an infinite range of truth values between 0 and 1.
For example, "It is warm" could be represented as 0.7, indicating a degree of
truth.
3. Reasoning Approach
● Crisp Logic: Uses precise and deterministic reasoning. It follows strict rules
and is suited for clear-cut problems.
● Fuzzy Logic: Employs approximate reasoning, which is useful in situations
with uncertainty, imprecision, or vagueness.
4. Applications
Crisp logic is effective for clear-cut scenarios, while fuzzy logic provides a
more flexible approach to handle uncertainty and complexity in real-world
situations. Each has its own strengths and applications, making them suitable
for different types of problems.
LP x is Large Positive
MP x is Medium Positive
S x is Small
MN x is Medium Negative
LN x is Large Negative
1. Fully Observable
2. Partially Observable
3. Deterministic
4. Stochastic
5. Static
6. Dynamic
7. Discrete
8. Continuous
9. Single-Agent
10.Multi-Agent
11.Known
12.Unknown
13.Physical
14.Abstract
Components:
1. Antecedent (Condition): This part of the rule specifies the criteria that need
to be satisfied. It often involves fuzzy sets and linguistic variables.
○ Example: "If the temperature is high"
2. Consequent (Conclusion): This part indicates the action or outcome that
follows if the antecedent is true.
○ Example: "Then the fan speed is fast"
Fuzzy rules often use linguistic terms to represent conditions and conclusions.
Common linguistic variables include:
For example, in a traditional relation between sets AAA and BBB, an element a∈Aa \in Aa∈A
is either related to b∈Bb \in Bb∈B or it is not. In a fuzzy relation, the relationship can be
expressed with a membership value between 0 and 1, where:
● 0 means no relationship,
● 1 means a full relationship,
● values in between indicate partial relationships.
Fuzzy relations can be used in various applications, such as decision-making, control systems,
and pattern recognition, where uncertainty and vagueness are present. They help to model
complex systems where binary logic falls short, providing a more nuanced understanding of
relationships among elements.
A fuzzy relation is the cartesian product of mathematical fuzzy sets. Two fuzzy sets are
taken as input, the fuzzy relation is then equal to the cross product of the sets which is
created by vector multiplication. Usually, a rule base is stored in a matrix notation which
allows the fuzzy controller to update its internal values.
From a historical perspective, the first fuzzy relation was mentioned in the year 1971 by
Lotfi A. Zadeh.
Cartesian Product
6.PROBLEM SOLVING APPROACH TO TYPICAL
INTELLIGENT PROBLEMS
2. Gather Information
3. Preprocess Data
● Split the Data: Use training, validation, and test sets to evaluate model
performance.
● Tune Hyperparameters: Optimize the model settings using techniques like
grid search or random search.
● Prepare for Production: Ensure the model is robust, scalable, and secure.
● Monitor Performance: Implement monitoring to catch issues in real-time.
1. Define the Problem: Classify images of animals into categories (dogs, cats,
etc.).
2. Gather Information: Collect a dataset of labeled images.
3. Preprocess Data: Resize images, augment data, and normalize pixel values.
4. Choose the Right Model: Select a convolutional neural network (CNN) for
image data.
5. Train the Model: Split data into training, validation, and test sets; tune the
model.
6. Evaluate the Model: Use accuracy and confusion matrix to assess
performance.
7. Iterate and Improve: Experiment with different CNN architectures and data
augmentation techniques.
8. Deploy the Solution: Set up the model in a web application for users to
upload images.
9. Maintain and Update: Monitor user inputs and regularly update the model
with new labeled images.
It doesn’t use
Using It uses knowledge for
knowledge for the
Knowledge the searching process.
searching process.
It finds solution slow
It finds a solution more
Performance as compared to an
quickly.
informed search.
No suggestion is given
There is a direction given
Direction regarding the solution
about the solution.
in it.