Professional Documents
Culture Documents
AI Sheet (FINAL PRO MAX)
AI Sheet (FINAL PRO MAX)
Thanks to AI, these machines can learn from experience, adjust to new inputs, and
perform human-like tasks.
concerned
with thought
processes Systems that think like humans Systems that think rationally
and
reasoning
concerned
with action Systems that act like humans Systems that act rationally
and
behavior
The Turing Test: computer passes the test of intelligence, if it can fool a human interrogator.
Agent: is anything that can be viewed as perceiving its environment through sensors and acting
upon that environment through actuators.
1- Perceive.
2- Think.
3- Act.
The agent function maps from percept histories to actions. [f: P* A].
The agent program runs on the physical architecture to produce f.
Rational Agent: For each possible percept sequence, a rational agent should select an action
that is expected to maximize its performance measure.
When we define a rational agent, we group these properties under P.E.A.S which stands
for:
- Performance
- Environment
- Actuators
- Sensors
LC2
- If an agent’s sensors give it access to the complete state of the environment at each
point in time, then the task environment is fully observable otherwise it is partially
observable.
- If the next state of the environment is completely determined by the current state and the
action executed by the agent, then the environment is deterministic; otherwise, it is
stochastic.
- If the environment is deterministic except for the actions of other agents, then the
environment is strategic.
- If the current decision doesn't affect the next decision, it’s Episodic.
- If the current decision could affect all future decisions, it’s Sequential.
- If the environment can change while an agent is deliberating (working), then the
environment is dynamic for that agent; otherwise, it is static.
- If the environment itself does not change with the passage of time but the agent's
performance score does, then the environment is Semi dynamic or Semi Static.
- If actions are limited in number (not continuous) and distinct (not the same), then it’s
Discrete.
- If it’s only one continuous action, then it’s Continuous.
Crossword Puzzle
- Fully observable
- Deterministic
- Sequential
- Static
- Discrete
- Single Agent
Chess
- Fully observable
- Strategic
- Sequential
- Semi dynamic
- Discrete
- Multi-Agent
Backgammon
- Fully
- Stochastic
- Sequential
- Static
- Discrete
- Multi-Agent
Taxi Driving
- Partially
- Stochastic
- Sequential
- Dynamic
- Continuous
- Multi-Agent
Part-Picking Robot
- Partially
- Stochastic
- Episodic
- Dynamic
- Continuous
- Single
Agent types:
- Simple reflex agents select an action based on the current state Only ignoring the
percept history.
- Can only work if the environment is fully observable, that is the correct action is
based on the current percept only.
- Use a mapping from states to actions.
- Same as (Simple Reflex Agents) but take into consideration a model of the world.
- Model of the world based on how the world evolves independently from the agent,
and how the agent actions affects the world.
- Handle partial observability by keeping track of the part of the world it can’t see
now.
- Internal state depending on the percept history (best guess).
3) Goal-Based Agents:
4) Utility-Based Agents:
LC3
Problem Formulation:
Search Strategies:
- g(n) = gives the path cost from the start node to node n.
- h(n) = is the estimated cost of the cheapest path from n to the goal.
- f(n) = estimated cost of the cheapest solution through n.
Learning: is the ability to adapt to new observations and solve new problems.
Types of learning:
- Direct Instruction: Involves receiving direct instructions on how to respond to certain
situations.
- Learning in Problem Solving: Learning ways of problem solving from own experience
without an instructor/advisor. Does not involve an increase in knowledge, just the
methods in using the knowledge.
- Neural Nets Learning: Learning by iterative improvement that start with an initial
(possibly random) solution, then improve on the solution step-by-step.
- Explanation Based Learning (EBL): To extract the concept behind the information
within one example, and generalize to other instances.
Machine learning: is any device whose actions are affected by past experiences or, a
computer program is said to learn from experience with respect to some class of tasks and
performance measure.
Artificial Neural Network: a mathematical model for learning inspired by biological neural
networks.
- Artificial neural networks model mathematical functions that map inputs to outputs based
on the structure and parameters of the network.
- Gradient Descent algorithm works by starting with a random choice of weights. This is
our naive starting place, where we don’t know how much we should weigh each input.
Then repeating this step: {Calculate the gradient based on all data points that will lead to
decreasing loss. Then update weights according to the gradient}.
- The problem with this kind of algorithm is that it requires calculating the gradient based
on all data points, which is computationally costly.
Backpropagation: is the main algorithm used for training neural networks with hidden layers. It
does so by starting with the errors in the output units, calculating the gradient descent for the
weights of the previous layer, and repeating the process until the input layer is reached.
LC 7
Knowledge representation and reasoning (KR, KRR): is the part of AI which is concerned
with AI agents thinking and how thinking contributes to intelligent behavior of agents.
Knowledge representation (KR) is the study of:
- how knowledge and facts about the world can be represented.
- what kinds of reasoning can be done with that knowledge.
Logical AI: is an agent who uses (KR-KRR) to determine a course of actions to reach its goals.
Facts: are the truths about the real world and what we represent.
1- Knowledge base: A set of sentences that describe the world and its behavior in
some formal (representational) language. (domain specific).
2- Inference engine: A set of procedures that use the representational language to infer
new facts from known ones or answer a variety of knowledge based (KB) queries.
(domain independent).
- Expert systems perform this by extracting knowledge from its knowledge base using the
reasoning and inference rules according to the user queries. (ES can’t learn).
3) Knowledge base: is a type of storage that stores knowledge acquired from the different
experts of the particular domain. (The bigger the KB the more precise will be the ES).
Types of propositions:
- Atomic Propositions: are the simple propositions. It consists of a single proposition
symbol. (ex: The Sun rises from the East).
- Compound proposition: are constructed by combining simpler or atomic propositions,
using logical connectives. (ex: It is raining today, and the street is wet).
Uncertainty: a situation where we are not sure about whether a predicate is true or not. (A→B)
(A is the predicate).
Bayes’ Formula:
LC8
Machine Learning: is a computer program is said to learn from experience with respect to
some class of tasks and performance measure.
A Machine Learning system learns from historical data, builds the learning model, and
whenever it receives new data, predicts the output using this model. The accuracy of the
predicted output depends upon the amount of data; as huge amounts of data help build a
better model which predicts the output more accurately.
Machine learning Branches:
1) Supervised Learning:
2) Unsupervised Learning:
State: is the information used to determine what happens next, or is a function of the history:
Sta = f (Ht).
Agent State (Sta): is the agent’s internal representation. i.e. whatever information the agent
uses to pick the next action that is used by reinforcement learning algorithms.
Information State (Markov State): contains all useful information from the history.
- A state (St) is Markov if and only if P[St+1 | St] = P[St+1 | S1,...,St].
Markov decision process (MDP): is one of the important learning models for RL, it is a
discrete-time stochastic control process. It provides a mathematical framework for modeling
decision making in situations where outcomes are partly random and partly under the control of
a decision maker.
Computational Intelligence (CI): is a subset of AI, it is the theory, design, application, and
development of biologically and linguistically motivated computational paradigms.
1) Neural Networks.
2) Fuzzy Systems:
- Fuzzy Systems (FS): are systems that use the human language as a source of
inspiration.
- FS model linguistic imprecision and solve uncertain problems based on a
generalization of traditional logic, which enables us to perform approximate
reasoning.
- The term fuzzy refers to things which are not clear or are vague and includes (fuzzy sets
and systems, fuzzy clustering and classification…) and in Boolean system truth value,
1.0 represents absolute truth value and 0.0 represents absolute false value, but in fuzzy
logic, there is intermediate value too present which is partially true and partially false.
3) Evolutionary Computation:
- Evolutionary Computation (EC): using the biological evolution as a source of
inspiration.
- EC solves optimization problems by generating, evaluating and modifying a population
of possible solutions.
- Swarm intelligence (SI): is based on the collective behavior of decentralized, self-
organized systems. It may be natural or artificial.
- Natural examples of SI are (ant colonies, fish schooling, bird flocking, bee swarming,
particle swarm…).
Natural Language Processing (NLP): is a field of computer science, artificial intelligence, and
computational linguistics concerned with the interactions between computers and human
languages (understanding language and generating language).
NLP Applications:
1) Speech Recognition:
- Leverage deep neural networks to handle speech recognition and natural language
understanding. (Ex: Siri, Google Assistant, Cortana).
2) Machine Translation:
- Ex: Google Translate.
3) Information Extraction:
- Information extraction: is automatically extracting structured information from
unstructured or semi-structured text.
4) Text Summarization.
5) Dialog Systems:
- Ex: Automated online assistants.
Computer Vision:
2) Face Detection:
- Used in digital cameras.
3) Smile Detection:
- Used in Digital cameras and smart phones.
4) Vision-based biometrics:
- (Fingerprint scanners - Identification by iris patterns – Face recognition systems).
6) Object Categorization.
- Viewpoint Variation.
- Illumination.
- Scale.
- Deformation.
- Background Clutter.
- Object intra-class variation.
Internet of Things (IOT):
Internet of Things (IOT): is a network of various devices that are connected over the internet
and they can collect and exchange data with each other.
- IOT is used to collect and handle the huge amount of data that is required by the
Artificial Intelligence algorithms. In turn, these algorithms convert the data into
useful actionable results that can be implemented by the IOT devices.
IOT Applications:
1) Industrial Automation:
- Monitoring industrial operations.
- Real-time vehicle diagnostics.
- Identification of materials/ goods.
2) Agriculture:
- Offering high-precision crop control.
- useful data collection.
- automated farming techniques.
3) Smart Health:
- Smart hospital services.
- Mobile assistance.
- Medical equipment saving.
- Monitoring of elderly people.
- Remote diagnosis.
4) Smart Home:
- Home control services (temp, air, light).
- Safety.
- Human satisfaction.
5) Energy Utilities:
- Creating a fundamental shift in advanced energy production and distribution technology,
management and services while leveraging existing investments in infrastructure and
operations.
6) Smart City:
- Traffic management/ Vehicles.
- Plant maintenance lighting.
- Irrigating Environment.
- Environment monitoring.