0% found this document useful (0 votes)
32 views12 pages

Definition of AI Unit - 1

The document defines AI and describes its two main types: narrow AI and general AI. It also discusses the history of AI and some key developments. Additionally, it outlines several domains where AI is applied like healthcare, finance, education, and more. It concludes by describing some prominent AI techniques like machine learning, deep learning, and natural language processing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views12 pages

Definition of AI Unit - 1

The document defines AI and describes its two main types: narrow AI and general AI. It also discusses the history of AI and some key developments. Additionally, it outlines several domains where AI is applied like healthcare, finance, education, and more. It concludes by describing some prominent AI techniques like machine learning, deep learning, and natural language processing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Definition of AI

AI, or Artificial Intelligence, refers to the development of computer systems that can perform tasks that
typically require human intelligence. These tasks include learning, reasoning, problem-solving,
perception, language understanding, and even the ability to manipulate and interact with the physical
world. AI aims to create machines or software that can mimic cognitive functions such as learning from
experience, adapting to new situations, and making decisions.
There are two main types of AI:
1. Narrow or Weak AI: This type of AI is designed and trained for a specific task. It excels at that
particular task but lacks the broad cognitive abilities of humans. Examples include virtual personal
assistants like Siri or Alexa, as well as image recognition software.
2. General or Strong AI: This refers to a form of AI that possesses the ability to understand, learn,
and apply knowledge across a wide range of tasks at a level comparable to human intelligence.
Achieving true general AI is a complex and challenging goal that researchers are still working
towards.
AI can be further categorized into two approaches:
1. Applied AI: This involves creating systems designed for a specific task, such as speech
recognition or image recognition.
2. Artificial General Intelligence (AGI): This represents the hypothetical ability of a machine to
perform any intellectual task that a human being can do. AGI is a more advanced form of AI that
is still largely theoretical at present.
AI technologies include machine learning, neural networks, natural language processing, and robotics,
among others. The field of AI continues to evolve rapidly, with ongoing research and development aimed
at enhancing the capabilities and applications of artificial intelligence.
History
The history of Artificial Intelligence (AI) is a fascinating journey that spans several decades. Here is a
brief overview of key milestones and developments in the history of AI:
1. 1940s-1950s: Early Concepts and Foundations
 The groundwork for AI was laid with the development of electronic computers. Alan
Turing's work, including the Turing Test (1950), set the stage for thinking about machines
with intelligence.
2. 1956: The Dartmouth Conference
 The term "Artificial Intelligence" was coined at the Dartmouth Conference in 1956. The
conference marked the beginning of AI as an academic field, and attendees, including John
McCarthy, Marvin Minsky, and others, played crucial roles in shaping AI research.
3. 1950s-1960s: Early AI Programs and Logic-based Approaches
 Early AI programs focused on solving symbolic problems using logic-based approaches.
Researchers developed programs for playing chess and proving theorems.
4. 1960s-1970s: LISP, Expert Systems, and Early Successes
 John McCarthy developed the programming language LISP, which became widely used in
AI research. The 1970s saw the development of expert systems, rule-based programs
designed to emulate human expertise in specific domains.
5. 1980s-1990s: AI Winter and the Rise of Neural Networks
 The 1980s witnessed an "AI Winter" as initial optimism waned due to unmet expectations.
However, the era also saw the development of neural networks and machine learning
approaches, leading to breakthroughs in pattern recognition.
6. 1997: Deep Blue vs. Garry Kasparov
 IBM's Deep Blue defeated world chess champion Garry Kasparov in a landmark event,
showcasing the power of AI in strategic decision-making.
7. 2000s: Machine Learning Resurgence
 Advances in machine learning, particularly with support vector machines and neural
networks, reignited interest in AI. The availability of large datasets and increased
computational power contributed to significant progress.
8. 2010s-Present: Deep Learning Dominance
 Deep learning, a subfield of machine learning involving neural networks with many layers
(deep neural networks), has become the dominant paradigm in AI. Breakthroughs in
natural language processing, image recognition, and other domains have been achieved
using deep learning techniques.
9. 2020s: Continued Advancements and Ethical Considerations
 AI continues to advance rapidly, with applications in various fields such as healthcare,
finance, and autonomous vehicles. Ethical considerations, transparency, and responsible
AI development have become important focal points.
The history of AI is characterized by periods of optimism, followed by challenges and setbacks. The field
has evolved significantly, and ongoing research and development continue to shape the future of AI.
AI Domains:
Artificial Intelligence (AI) has found applications in various domains, transforming how tasks are
performed and problems are solved. Here are some key domains where AI is making a significant impact:
1. Healthcare:
 AI is used for medical image analysis, diagnostics, and personalized medicine. Machine
learning algorithms can analyze medical data to predict disease outcomes and recommend
treatment plans.
2. Finance:
 In finance, AI is employed for fraud detection, algorithmic trading, credit scoring, and
customer service. Predictive analytics and machine learning models assist in risk
assessment and portfolio management.
3. Education:
 AI is used for personalized learning, adaptive learning platforms, and intelligent tutoring
systems. Natural language processing (NLP) enables the development of educational
chatbots and language learning applications.
4. Retail:
 Retailers use AI for demand forecasting, inventory management, and recommendation
systems. Virtual shopping assistants and chatbots enhance the customer experience.
5. Autonomous Vehicles:
 AI is a crucial component in the development of autonomous vehicles. Machine learning
algorithms process sensor data to enable self-driving capabilities and improve road safety.
6. Manufacturing:
 AI is applied in predictive maintenance, quality control, and supply chain optimization.
Robotics and automation systems use AI for improved efficiency and flexibility in
manufacturing processes.
7. Natural Language Processing (NLP):
 NLP is a subfield of AI that focuses on the interaction between computers and human
language. Applications include language translation, sentiment analysis, and chatbots.
8. Computer Vision:
 Computer vision involves AI systems that interpret and make decisions based on visual
data. Applications include facial recognition, object detection, and image and video
analysis.
9. Cybersecurity:
 AI is used in cybersecurity for threat detection, anomaly detection, and malware analysis.
Machine learning algorithms can identify patterns indicative of cyber attacks and enhance
overall system security.
10. Entertainment:
 AI is employed in the gaming industry for creating realistic characters, generating dynamic
content, and enhancing user experiences. Recommendation systems also play a role in
personalized content delivery.
11. Energy:
 AI is used for energy grid optimization, predictive maintenance of equipment, and the
analysis of energy consumption patterns. Smart grids leverage AI for efficient energy
distribution.
12. Human Resources:
 AI is used in HR for talent acquisition, candidate screening, and employee engagement.
Chatbots can handle routine HR inquiries, allowing human resources professionals to
focus on more complex tasks.
13. Agriculture:
 AI applications in agriculture include precision farming, crop monitoring, and predictive
analytics for yield optimization. Drones and sensors equipped with AI contribute to
efficient farming practices.
These are just a few examples, and the influence of AI continues to grow across a wide range of domains.
As technology advances, AI is likely to play an increasingly prominent role in shaping various aspects of
our lives and industries.
AI techniques :
AI techniques encompass a diverse set of methods and approaches aimed at creating intelligent systems
capable of performing tasks that typically require human intelligence. These techniques can be broadly
categorized into several subfields, each with its own methodologies and applications. Here are some
prominent AI techniques:
1. Machine Learning:
 Supervised Learning: Algorithms learn from labeled training data to make predictions or
classifications.
 Unsupervised Learning: Algorithms discover patterns and relationships in unlabeled data.
 Reinforcement Learning: Agents learn to make decisions by receiving feedback in the form of
rewards or punishments.
2. Deep Learning:
 Neural Networks: Systems of interconnected nodes (neurons) inspired by the human brain.
 Convolutional Neural Networks (CNNs): Specialized for image and video analysis.
 Recurrent Neural Networks (RNNs): Designed for sequence-based tasks.
3. Natural Language Processing (NLP):
 Text Processing: Techniques for analyzing and understanding textual data.
 Speech Recognition: Systems that convert spoken language into written text.
 Language Translation: Automated translation of text from one language to another.
4. Computer Vision:
 Image Recognition: Identifying and classifying objects within images.
 Object Detection: Locating and identifying multiple objects within an image.
 Image Generation: Creating new images based on learned patterns.
5. Evolutionary Algorithms:
 Genetic Algorithms: Inspired by the process of natural selection, optimizing solutions through
genetic operators like crossover and mutation.
 Genetic Programming: Evolving computer programs to solve specific tasks.
6. Expert Systems:
 Rule-based systems that emulate the decision-making ability of a human expert in a specific
domain.
7. Fuzzy Logic:
 Modeling uncertainty and imprecision in decision-making using fuzzy sets and rules.

State Space Search:

A state space is a way to mathematically represent a problem by defining all the possible states in which
the problem can be. This is used in search algorithms to represent the initial state, goal state, and current
state of the problem. Each state in the state space is represented using a set of variables.

The efficiency of the search algorithm greatly depends on the size of the state space, and it is important to
choose an appropriate representation and search strategy to search the state space efficiently.

One of the most well-known state space search algorithms is the A algorithm. Other commonly used
state space search algorithms include breadth-first search (BFS), depth-first search (DFS), hill
climbing, simulated annealing, and genetic algorithms.

Features of State Space Search

State space search has several features that make it an effective problem-solving technique in Artificial
Intelligence. These features include:

 Exhaustiveness:
State space search explores all possible states of a problem to find a solution.
 Completeness:
If a solution exists, state space search will find it.
 Optimality:
Searching through a state space results in an optimal solution.
 Uninformed and Informed Search:
State space search in artificial intelligence can be classified as uninformed if it provides additional
information about the problem.

State Space Representation

State space Representation involves defining an INITIAL STATE and a GOAL STATE and then
determining a sequence of actions, called states, to follow.

 State:
A state can be an Initial State, a Goal State, or any other possible state that can be generated by
applying rules between them.
 Space:
In an AI problem, space refers to the exhaustive collection of all conceivable states.
 Search:
This technique moves from the beginning state to the desired state by applying good rules while
traversing the space of all possible states.
 Search Tree:
To visualize the search issue, a search tree is used, which is a tree-like structure that represents the
problem. The initial state is represented by the root node of the search tree, which is the starting
point of the tree.
 Transition Model:
This describes what each action does, while Path Cost assigns a cost value to each path, an activity
sequence that connects the beginning node to the end node. The optimal option has the lowest cost
among all alternatives.

Example of State Space Search


In the water jug problem in Artificial Intelligence, we are provided with two jugs: one having the
capacity to hold 3 gallons of water and the other has the capacity to hold 4 gallons of water. There is no
other measuring equipment available and the jugs also do not have any kind of marking on them. So, the
agent’s task here is to fill the 4-gallon jug with 2 gallons of water by using only these two jugs and no
other material. Initially, both our jugs are empty.

So, to solve this problem, following set of rules were proposed:

Production rules for solving the water jug problem

Here, let x denote the 4-gallon jug and y denote the 3-gallon jug.

S.No. Initial Condition Final Description of action taken


State state

1. (x,y) If x<4 (4,y) Fill the 4 gallon jug completely

2. (x,y) if y<3 (x,3) Fill the 3 gallon jug completely

3. (x,y) If x>0 (x-d,y) Pour some part from the 4 gallon jug

4. (x,y) If y>0 (x,y-d) Pour some part from the 3 gallon jug

5. (x,y) If x>0 (0,y) Empty the 4 gallon jug

6. (x,y) If y>0 (x,0) Empty the 3 gallon jug

7. (x,y) If (x+y)<7 (4, y-[4- Pour some water from the 3 gallon jug to fill the
x]) four gallon jug
8. (x,y) If (x+y)<7 (x-[3- Pour some water from the 4 gallon jug to fill the 3
y],y) gallon jug.

9. (x,y) If (x+y)<4 (x+y,0) Pour all water from 3 gallon jug to the 4 gallon jug

10. (x,y) if (x+y)<3 (0, x+y) Pour all water from the 4 gallon jug to the 3 gallon
jug

The listed production rules contain all the actions that could be performed by the agent in transferring the
contents of jugs. But, to solve the water jug problem in a minimum number of moves, following set of
rules in the given sequence should be performed:

Solution of water jug problem according to the production rules

S.No. 4 gallon jug contents 3 gallon jug contents Rule followed

1. 0 gallon 0 gallon Initial state

2. 0 gallon 3 gallons Rule no.2

3. 3 gallons 0 gallon Rule no. 9

4. 3 gallons 3 gallons Rule no. 2

5. 4 gallons 2 gallons Rule no. 7

6. 0 gallon 2 gallons Rule no. 5


7. 2 gallons 0 gallon Rule no. 9

Production System

Production systems are computer programmes that give AI. It consists of a set of rules about behaviour
and includes the mechanism required to follow those rules as the system reacts to external conditions. In
AI, a production system consists of a global database, production rules, and a control system.

Global Database

A global database consists of the architecture used as a central data structure. A database contains all the
necessary data and information required for the successful completion of a task. It can be divided into two
parts as permanent and temporary. The permanent part of the database consists of fixed actions, whereas
the temporary part alters according to circumstances.

Production Rules

Production rules in AI are the set of rules that operate on the data fetched from the global database. Also,
these production rules are bound with precondition and post condition that gets checked by the database.
If a condition is passed through a production rule and gets satisfied by the global database, then the rule is
successfully applied. The rules are of the form A®B, where the right-hand side represents an outcome
corresponding to the problem state represented by the left-hand side.

Control System/Strategy

The control system checks the applicability of a rule. It helps decide which rule should be applied and
terminates the process when the system gives the correct output. It also resolves the conflict of multiple
conditions arriving at the same time. The strategy of the control system specifies the sequence of rules
that compares the condition from the global database to reach the correct result.

Types of Control Strategy :

 Depth-First Search (DFS):


Depth-First Search (DFS) is a searching algorithm that explores as far as possible along each
branch before backtracking. It's often used to traverse or search through tree or graph structures.
Algorithm:
 Step 1: Start at the initial node.
 Step 2: Explore as far as possible along each branch before backtracking.
 Step 3: Mark visited nodes to avoid revisiting them.
 Step 4: If there are unvisited adjacent nodes, choose one and repeat steps 2-3.
 Step 5: If no unvisited adjacent nodes are left, backtrack to the previous node and repeat
steps 2-4 until all nodes are visited.

 Breadth-First Search (BFS):


Breadth-First Search (BFS) is a searching algorithm that explores all the vertices of a graph or
nodes of a tree in breadthward motion, i.e., it visits all the neighbors of a node before moving on
to the next level. BFS is often used for graph traversal and path finding.

Algorithm:
 Step 1: Start at the initial node.
 Step 2: Visit all the neighbors of the current node before moving on to their neighbors.
 Step 3: Mark visited nodes to avoid revisiting them.
 Step 4: Enqueue the unvisited neighbors.
 Step 5: If there are nodes in the queue, dequeue the next node and repeat steps 2-4.
 Step 6: If the queue is empty, the algorithm is complete.
Characteristics of production system:
1. Efficiency:
 Efficiency refers to the ability of a production system to perform its tasks in a timely and resource-
efficient manner.
 An efficient production system can quickly process large volumes of rules and data, making it
suitable for real-time or time-sensitive applications.
2. Explanation capability:
 Explanation capability refers to the system's ability to provide justifications or reasoning behind
its decisions or actions.
 A production system with explanation capability can help users understand why a particular rule
was applied or conclusion was drawn, enhancing transparency and trust in the system.
3. Forward chaining and backward chaining:
 Forward chaining involves starting with available data and applying rules iteratively to derive
conclusions or make decisions.
 Backward chaining starts with a goal or desired outcome and works backward through the rules to
determine what data or conditions must be satisfied to achieve that goal.
4. Inference engine:
 The inference engine is the core component of a production system responsible for applying rules
to the current state of the system to make decisions or draw conclusions.
 It uses mechanisms such as pattern matching and rule resolution to determine which rules are
applicable given the current state and input data.
5. Integration with other systems:
 Integration with other systems allows a production system to leverage the strengths of different AI
techniques and technologies to solve a wider range of problems and deliver more robust solutions.
 For example, integration with natural language processing systems can enable the analysis of
textual data, while integration with machine learning models can facilitate predictive analytics.
6. Knowledge representation:
 Knowledge representation involves formally representing knowledge within the production
system, typically in the form of rules, facts, or assertions.
 This representation allows the system to reason about the available information and make
decisions based on it.
7. Learning and adaptation:
 Learning and adaptation capabilities enable a production system to adapt and improve over time
based on feedback or experience.
 Machine learning techniques may be used to automatically refine rules, allowing the system to
become more effective and efficient over time.
8. Modularity:
 Modularity refers to the design principle of breaking down a production system into separate,
interchangeable components.
 A modular design facilitates easier maintenance, scalability, and flexibility in development
processes.
9. Rule-based approach:
 The rule-based approach is fundamental to production systems, where decisions or actions are
determined by a collection of rules or production rules.
 Rules define the conditions under which certain actions or conclusions should be taken, providing
a clear and understandable framework for encoding knowledge.
10. Scalability:
 Scalability refers to the ability of a production system to handle increasing volumes of rules and
data efficiently.
 Techniques such as rule pruning, rule abstraction, and distributed processing may be employed to
improve scalability and accommodate growing demands on the system.

Issues in the design of search programs

1. The direction in which to conduct search (forward versus backward reasoning). If the search proceeds

from start state towards a goal state, it is a forward search or we can also search from the goal.

2. How to select applicable rules (Matching). Production systems typically spend most of their time

looking for rules to apply. So, it is critical to have efficient procedures for matching rules against

states.

3. How to represent each node of the search process (knowledge representation problem).

You might also like