Introduction to Artificial Intelligence
Introduction to Artificial Intelligence
▌Majid Ramezani
Institute for Advanced Studies in Basic Science (IASBS)
ramezani@[Link]; [Link]@[Link]
Source Materials
■ No textbook is required. Readings will come from freely available online materials.
■ Those who may be interested to read additional references, would refer to:
Stuart Russell, Peter Norvig, Artificial Intelligence: A Modern Approach, Pearson, 2009.
David L. Poole & Alan K. Mackworth, Artificial Intelligence: Foundations of Computational Agents, Cambridge
University Press, 2010.
Deepak Khemani, A First Course in Artificial Intelligence, Mc Graw Hill India, 2008.
Denis Rothman, Artificial Intelligence By Example-2nd edition, Packt Publishing, 2020.
Wolfgang Ertel, Introduction to Artificial Intelligence, Springer, 2017.
etc.
Evaluation
■ Endterm exam (30 %)
■ Midterm exam (20 %)
■ Homework (25 %)
• Both theory and programming
• Collaboration policy:
i. first try to solve the problems on your own,
ii. then, can discuss with other classmates,
iii. write-up solutions on your own.
■ Project (25 %)
• Logistics :
i. up to 2 students per group,
ii. the problem and corresponding deadline, will set after passing the midterm exam,
iii. in case of creative ideas, the problem will be entrusted to students.
1-3-4 Robotics
1-3-4 Robotics
Artificial Intelligence, at its core, is not about creating machines that think or feel like humans. Instead, it is a branch of computer
science dedicated to building systems that can perform tasks requiring human intelligence—such as learning, reasoning, and
problem-solving—without necessarily mimicking the human mind itself.
1-3-4 Robotics
■ Artificial, means what made or produced by human beings rather than occurring naturally (namely, Man-Made Origin).
Artificial light (e.g., electric lighting vs. sunlight)
■ Intelligence, is the ability to learn, solve problems, reason, understand, be self-aware, and apply knowledge and skills. It
encompasses capacities such as reasoning, problem-solving, perception, creativity, and learning from experience [1].
[1] Flynn, James R. What is intelligence?: Beyond the Flynn effect. Cambridge University Press, 2007.
▌Artificial Intelligence (AI) is the study of agents that receive percepts from the environment and perform actions [2].
Stuart Russell
▌The science and engineering of making intelligent machines, especially intelligent computer programs. It is related to
the similar task of using computers to understand human intelligence, but AI does not have to confine itself to methods
that are biologically observable [3].
John McCarthy
▌Artificial intelligence is the science of making machines do things that would require intelligence if done by men [4].
Marvin Minsky
[2] Russell, Stuart J., and Peter Norvig. Artificial intelligence: a modern approach. Pearson, 2016.
[3] McCarthy, John. "From here to human-level AI." Artificial Intelligence 171, no. 18 (2007): 1174-1182.
[4] Minsky, Marvin. "1968, Semantic information processing."
▌Artificial intelligence (AI) is technology that enables computers and machines to simulate human learning, comprehension,
problem solving, decision making, creativity and autonomy.
Namely, AI is the field of computer science and engineering focused on creating machines and software capable of performing tasks
that typically require human intelligence. This involves designing systems that can perceive their environment, reason, learn, and
make decisions or take actions to achieve specific goals.
1-3-4 Robotics
▌First AI Winter (1974-1980): Due to unmet expectations and limited computational power, funding for AI research diminished
significantly, leading to a period known as the “AI Winter”.
▌Second AI Winter (1987-1993): Despite some advances, the collapse of the Lisp machine market (hardware specifically designed for
AI) and growing skepticism led to another downturn in AI research and investment.
▌The Success of Deep Blue (1997): IBM's Deep Blue made history by defeating world chess champion Garry Kasparov, showcasing the
potential of AI in specialized tasks.
▌The Rise of Data-Driven Approaches: with the explosion of data and the advent of the internet, AI research shifted focus towards
data-driven methods, particularly in machine learning and statistical approaches, marking a move away from symbolic AI.
▌Deep Learning Breakthroughs: The 2010s witnessed the rise of deep learning, a subset of machine learning that utilizes multi-
layered neural networks to perform complex tasks such as image and speech recognition. Landmark achievements include Google's
AlphaGo defeating world champion Go player Lee Sedol in 2016.
▌AI in Everyday Life: AI has become integrated into many aspects of daily life, from virtual assistants like Siri and Alexa to
recommendation systems on platforms like Netflix and Amazon.
▌Generative AI: the late 2010s and early 2020s have seen the rise of generative AI models like GPT (Generative Pre-trained
Transformer) and DALL-E, which can generate human-like text and images.
1-3-4 Robotics
■ Enhancing and Extending Human Capabilities: AI seeks to augment human intelligence by providing tools that help people solve
complex problems, make better decisions, and enhance productivity in various domains, such as medicine, finance, and education.
■ Understanding and Replicating Cognitive Processes: a major focus of AI is to understand the underlying principles of human
cognition and replicate those processes in machines. This involves creating algorithms that can mimic learning, reasoning, and
problem-solving abilities.
■ Adaptability and Learning: AI systems are designed to learn from data and experience, improving
their performance over time without needing explicit programming for each new task. This
adaptability is key to making AI useful in dynamic and complex environments.
(-Ꝏ , + Ꝏ)
......
......
1-3-4 Robotics
● Robotics
● Expert Systems
● Optimization
● Fuzzy Logic
1-3-4 Robotics
It is not possible to provide an exact definition for a flower or tree, or any similar concept!
Human daily decision makings, are severely involved with concept learning.
What is the brain? The brain is a complex organ that controls thought, memory,
emotion, touch, motor skills, vision, breathing, temperature, hunger and every
process that regulates our body [8]
Neurons are the key players in the brain. They are the fundamental units of the
brain and nervous system, the cells responsible for receiving sensory input from the
external world, for sending motor commands to our muscles, and for transforming
and relaying the electrical signals at every step in between.
[8] Brain Anatomy and How the Brain Works, Johns Hopkins Medicine, 2023.
• Sensory neurons: sensory neurons are the nerve cells that are activated by sensory input from the environment - for example, when you touch a
hot surface with your fingertips, the sensory neurons will be the ones firing and sending off signals to the rest of the nervous system about the
information they have received.
• Motor neurons: motor neurons of the spinal cord are part of the central nervous system (CNS) and connect to muscles, glands and organs
throughout the body. These neurons transmit impulses from the spinal cord to skeletal and smooth muscles (such as those in your stomach), and so
directly control all of our muscle movements. There are in fact two types of motor neurons: those that travel from spinal cord to muscle are called
lower motor neurons, whereas those that travel between the brain and spinal cord are called upper motor neurons.
• Interneurons: as the name suggests, interneurons are the ones in between - they connect spinal motor and sensory neurons. As well as transferring
signals between sensory and motor neurons, interneurons can also communicate with each other, forming circuits of various complexity. They are
multipolar, just like motor neurons.
■ Cell body (or soma): the cell body is the core section of the neuron. The
cell body contains genetic information, maintains the neuron’s structure,
and provides energy to drive activities. It’s enclosed by a membrane that
both protects it and allows it to interact with its immediate
surroundings.
■ Dendrite: are fibrous roots that branch out from the cell body. Like
antennae, dendrites receive and process signals from the axons of other
neurons. Neurons can have more than one set of dendrites, known as
dendritic trees. In practice, they receive the electrical messages (from
other neurons) and transfer them to the soma.
A synapse is a small gap between two neurons, where nerve impulses are relayed by a neurotransmitter from the
axon of a presynaptic (sending) neuron to the dendrite of a postsynaptic (receiving) neuron.
A neuron spikes when a combination of all the excitation and inhibition it receives makes it reach threshold. On the right is an example from an
actual neuron in the mouse's cortex. (Image: Alan Woodruff / QBI)
Each and every time we learn something new, our brain forms new connections and neurons and makes existing neural
pathways stronger or weaker. Some experts call these changes “plasticity” in the brain.
Therefore, it can be stated that learning would be paraphrased as the formation of new string of neurons in human mind.
Machine Learning (ML) is a branch of artificial intelligence and computer science which focuses on the use of
data and algorithms to imitate the way that humans learn, gradually improving its accuracy.
Arthur Samuel (1959): Machine Learning is the field of study that gives the computer the
ability to learn without being explicitly programmed.
Tom Mitchell (1998): a computer program is said to learn from experience E with respect to
some class of tasks T and performance measure P, if its performance at tasks in T, as measured
by P, improves with experience E.
■ A Decision Process: In general, machine learning algorithms are used to make a prediction or classification. Based on some input data,
which can be labeled or unlabeled, your algorithm will produce an estimate about a pattern in the data.
■ An Error Function: An error function evaluates the prediction of the model. If there are known examples, an error function can make a
comparison to assess the accuracy of the model.
■ A Model Optimization Process: If the model can fit better to the data points in the training set, then weights are adjusted to reduce the
discrepancy between the known example and the model estimate. The algorithm will repeat this “evaluate and optimize” process,
updating weights autonomously until a threshold of accuracy has been met.
■ Data is a crucial component in concept learning (and hence, in the field of ML). It refers to the set of observations or
measurements that can be used to train a machine-learning model.
■ The quality and quantity of data available for training and testing play a significant role in determining the
performance of a machine-learning model.
■ Numeric values
■ etc.
■ Human daily decision makings, are severely involved with concept learning.
■ Likewise, several successful and even astonishing tasks have been performed by machine through concept learning
methods, such as:
Weather Prediction
Numeric character recognition (from image), sample input image for “7”
It can be claimed that, learning an ANN model is just setting the weights of the connections in the model,
appropriately.
DOG
DOG
CAT
■ Unlike unsupervised learning, SSL works for a variety of problems from classification and regression to clustering and
association.
■ Unlike supervised learning, the method uses small amounts of labeled data and also large amounts of unlabeled data, which
reduces expenses on manual annotation and cuts data preparation time.
ML Model Prediction
Since unlabeled data is abundant, easy to get, and cheap, semi-supervised learning finds many applications, while the accuracy of results doesn’t
suffer.
[Link]
■ Regression: is based on making predictions of continuous target variables. Examples of regression problems include using historical
stock market returns to forecast stock price performance or predicting the number of goals scored by a team.
1-3-4 Robotics
It’s important to note that the term “Natural Language Processing” actually encompasses three distinct areas: natural
language understanding (NLU), natural language processing, and natural language generation (NLG). In fact, the term "NLP" is
somewhat of a misnomer.
● Text Processing and Understanding: text processing is a foundational aspect of NLP that involves the transformation and analysis
of written language to make it understandable and useful for machines. It encompasses several crucial phases: text pre-
processing (including, tokenization, stemming, lemmatization, etc.), and text processing (that meets the main task).
● Language Models: Language models are statistical (traditional models like N-grams) and deep learning-based (like ChatGPT)
models that predict the likelihood of a sequence of words. They are crucial for many NLP tasks.
* the scientific study of language and its structure, including the study of grammar, syntax, and phonetics. Specific branches of linguistics include sociolinguistics, dialectology,
psycholinguistics, computational linguistics, comparative linguistics, and structural linguistics.
■ Text Processing: tries to tackle those tasks that are focused on textual inpts.
● Text Classification: categorizing text into predefined labels (e.g., spam detection, sentiment analysis).
● Named Entity Recognition (NER): identifying and classifying entities within text (e.g., names, dates, locations).
● Text Summarization: condensing large texts into shorter summaries while preserving key information.
● Machine Translation: automatically translating text from one language to another.
● Sentiment Analysis: determining the sentiment or emotional tone of a text.
● Text Generation: Producing coherent text based on input data or prompts (e.g., chatbots, creative writing).
● Topic Modeling: Discovering abstract topics that occur in a collection of documents.
● etc.
■ Speech Processing: tries to tackle those tasks that are focused on audio speech inputs.
● Speech Recognition (Automatic Speech Recognition - ASR): converting spoken language into text.
● Speech Synthesis (Text-to-Speech - TTS): generating spoken language from written text.
● Speaker Identification and Verification: identifying or verifying a speaker based on their voice.
● Speech-to-Speech Translation: translating spoken language into another language in real-time.
● Voice Activity Detection: determining when speech occurs in an audio stream.
● Speech Summarization.
1-3-4 Robotics
Digital Image Processing (DIP) involves the manipulation of digital images using computer algorithms. It focuses on the processing and
transformation of images to enhance their quality, extract useful information, or prepare them for further analysis. In fact, it aims to
enable machines to achieve human-like goals through visual perception.
■ Image Enhancement: focuses on improving the visual appearance of an image or highlighting specific features. For example
contrast adjustment, histogram equalization, noise reduction.
■ Image Restoration: aims to recover the original image from a degraded version by removing noise, blurring, or other distortions.
For example de-blurring, noise filtering.
■ Image Segmentation: involves dividing an image into its constituent regions or objects for easier analysis. For example
thresholding, edge detection, region-based segmentation.
■ Image Compression: reduces the storage size of images without significant loss of quality, essential for efficient storage and
transmission. For examples JPEG, PNG.
■ Image Captioning: the primary goal of image captioning is to create a meaningful and accurate description of an image in natural
language. This can be used for various applications, including accessibility, content indexing, and enhancing human-computer
interaction.
■ Object Detection and Recognition: identifying and classifying objects within an image or video frame. For examples face
recognition, vehicle detection, landmark identification.
■ Image Classification: assigning a label or category to an entire image based on its content. For example classifying medical
images as healthy or diseased, identifying species in wildlife photography.
■ Image Segmentation: dividing an image into parts that correspond to different objects or regions, often a precursor to more
detailed analysis. For example semantic segmentation (labeling each pixel), instance segmentation (separating objects).
■ Pattern Recognition: detecting patterns and regularities in data, often used for recognizing specific features or textures in images.
For example handwriting recognition, texture classification.
■ Scene Understanding: interpreting a complex scene by recognizing the relationships between objects and their environment. For
example scene classification, context-aware recognition, holistic scene analysis.
■ Feature Extraction: identifying key points or regions in an image that are
informative and relevant for further analysis. For example SIFT, SURF, Harris
corners, edge detection.
■ etc.
Encompasses a broader scope, including not just the analysis of individual images but also sequences of images or video frames. It
involves interpreting visual data over time and often includes understanding motion, tracking objects, and recognizing patterns across
frames.
■ Object Tracking: following the movement of objects across multiple frames or video sequences.
■ Motion Analysis: analyzing how objects or scenes change over time, including detecting and understanding movement.
■ Activity Recognition: identifying actions or events based on sequences of frames (e.g., detecting gestures, recognizing activities).
■ Video Surveillance: monitoring and analyzing video feeds for security and surveillance purposes.
■ etc.
1-3-4 Robotics
Components of a Robot
Sensors: devices that collect data from the environment (e.g., cameras, LIDAR, ultrasonic sensors).
Actuators: mechanisms that perform actions based on sensor input (e.g., motors, servos).
Controllers: The “brain” of the robot, typically a computer or microcontroller, that processes sensor data and sends commands to
actuators.
Software: algorithms and programs that control the robot's behavior and decision-making.
● Automation and Efficiency: robots increase productivity by automating repetitive or hazardous tasks, leading to higher efficiency
and reduced human error in various industries.
● Precision and Consistency: robots perform tasks with high precision and consistency, which is crucial in fields such as
manufacturing, surgery, and quality control.
● Safety: robots can operate in dangerous environments, such as toxic chemical plants, deep-sea exploration, and outer space,
reducing risks to human operators.
● Assistance and Accessibility: Robots assist individuals with disabilities through assistive devices and enhance quality of life with
applications like robotic exoskeletons and prosthetics.
● Exploration and Innovation: robotics enables exploration of uncharted territories, including
space, deep oceans, and extreme environments, advancing scientific knowledge and
technological innovation.
■ Robot Kinematics and Dynamics: studies the motion of robots and the forces involved. Kinematics deals with motion without
considering forces, while dynamics incorporates forces and torques.
■ Control Systems: focuses on designing algorithms and systems to control robot movements and behavior. This includes both low-
level control (e.g., motor control) and high-level control (e.g., path planning).
■ Robot Perception: involves the use of sensors and computer vision to enable robots to perceive and interpret their environment.
■ Robot Manipulation: deals with the physical interaction of robots with their environment, including tasks like grasping, handling,
and assembly.
■ Robotic Navigation and Localization: focuses on enabling robots to navigate through and understand their environment,
including mapping, localization, and path planning.
■ Human-Robot Interaction (HRI): Studies how robots interact with humans, including the design of interfaces and communication
methods.
■ Robotics in Healthcare: application of robotics in medical fields to assist with surgeries, rehabilitation, and patient care.
■ etc.
1-3-4 Robotics
● Primary Goal: the goal of an expert system is to emulate the decision-making capabilities of a human expert in a particular
domain, providing users with reliable advice, diagnoses, or solutions based on a vast knowledge base.
● Secondary Goals:
knowledge Dissemination: to distribute expert knowledge and best
practices across organizations or to individuals who do not have direct
access to human experts.
Decision Support: to assist non-experts in making informed decisions by
providing them with expert-level guidance and recommendations.
Problem-Solving: to solve complex problems that require specialized
knowledge, often in areas like medicine, engineering, finance, and
customer support.
● Medical Diagnosis: systems like MYCIN were developed to diagnose infectious diseases and recommend treatments.
● Financial Services: expert systems are used in stock trading, risk management, loan approval, and fraud detection.
● Customer Support: chatbots and automated support systems that provide users with solutions based on an underlying expert
system.
● Manufacturing: systems that monitor and control complex manufacturing processes, ensuring quality and efficiency.
● Legal Advisory: systems that help in legal research, case analysis, and offering preliminary legal advice.
● Agriculture: expert systems that assist farmers in making decisions
about crop management, pest control, and irrigation.
● Energy Management: systems used in power plants to manage
resources, optimize energy production, and prevent failures.
● etc.
1-3-4 Robotics
Core Idea: EAs mimic the process of natural selection, where the fittest individuals are more likely to survive and reproduce, passing on
their traits to the next generation. Over time, this leads to the evolution of solutions that are well-suited to the problem at hand.
● Primary Goal: the primary goal of evolutionary algorithms is to find an optimal or near-optimal solution to complex problems by
iteratively improving a population of solutions based on a fitness function.
● Handling Complexity: evolutionary algorithms are particularly useful for solving complex, non-linear, multi-modal optimization
problems that are difficult for traditional methods to handle.
● Global Search Capability: they have a strong global search capability, which helps in avoiding local optima and finding the global
optimum in challenging problem spaces.
● Flexibility and Adaptability: EAs are highly flexible and can be applied to a wide range of problems, including those with discrete,
continuous, or mixed-type variables. They can also be easily adapted to handle dynamic or multi-objective optimization
problems.
● Robustness: these algorithms are robust in the presence of noisy, imprecise, or incomplete data, making them suitable for real-
world applications where such challenges are common.
Genetic Algorithms (GAs) are a type of evolutionary algorithm that mimics the process of natural selection and genetics to solve
optimization and search problems. They operate by evolving a population of candidate solutions over successive generations to find the
best or most optimal solution.
Core Idea: GAs simulate the process of natural evolution, where the fittest individuals are selected for reproduction. Over many
generations, the population evolves, with better solutions emerging as a result of the selection, crossover, and mutation processes.
Selection
1-3-4 Robotics
Core Idea: Fuzzy Logic captures the way humans make decisions in situations of uncertainty, vagueness, and imprecision. It models
real-world complexities by allowing partial membership in sets, which is more aligned with human thinking.
It also:
Handle Uncertainty: Enable systems to make decisions and draw conclusions even when input data is noisy, incomplete, or
ambiguous.
Improve Decision-Making: Enhance decision-making processes in complex environments by incorporating human-like reasoning.
Control Complex Systems: Design control systems that can manage complex and nonlinear processes without precise
mathematical models.
▌The idea of fuzzy logic was first advanced by Lotfi Aliasker Zadeh, of the University of California at Berkeley
in the 1960s (his father was Rahim Aleskerzade, an Iranian Muslim a journalist from Ardabil).
● Handling Ambiguity: fuzzy logic is particularly valuable in situations where the data is uncertain, ambiguous, or incomplete. It allows
for more nuanced and flexible decision-making than traditional binary logic.
● Human-Like Reasoning: fuzzy logic systems can model human reasoning more closely than classical logic systems, making them ideal
for applications where human decision-making processes need to be replicated or improved.
● Robustness in Control Systems: fuzzy logic control systems can be more robust and flexible than traditional control systems,
especially in complex, non-linear, and dynamic environments.
● Ease of Implementation: fuzzy logic is relatively easy to implement and can be applied to a wide range of problems without needing
complex mathematical models or precise data.
● Consumer Electronics: Washing machines, cameras, and air conditioners that adjust their operation based on fuzzy logic to improve
user experience. For instance, a fuzzy logic-based washing machine can adjust the washing cycle based on the load's weight,
dirtiness, and fabric type.
● Automotive Systems: Fuzzy logic is used in anti-lock braking systems (ABS), automatic transmission systems, and climate control to
provide smoother and more responsive control.
● Industrial Automation: Fuzzy logic controllers are widely used in industrial processes to manage systems that are too complex for
conventional control methods, such as chemical plant operations or robotics.
● Medical Diagnosis: In medical decision support systems, fuzzy logic helps in diagnosing diseases based on symptoms that are not
strictly defined or where there are overlapping symptoms for multiple conditions.
● Financial Systems: Fuzzy logic is used in credit scoring, risk assessment, and stock market analysis to deal with the uncertainties and
imprecise nature of financial data.
● Expert Systems: Fuzzy logic enhances expert systems by allowing them to handle uncertain or approximate information, which is
often the case in real-world expert decision-making.
● etc.
In a fuzzy set, an element can belong to the set partially, with a degree of membership ranging between 0 (completely not a member)
and 1 (fully a member). This enables fuzzy sets to represent uncertainty, vagueness, and imprecision more naturally than traditional
binary logic.
Human age groups illustrated as fuzzy sets and membership functions. “Young”, “Middle-Aged”, and “Old” are examples of fuzzy sets. In this illustration, the set “Young” includes
ages from 0 to 37. “µ” represents the value of the membership function. Membership in the set “Young” decreases gradually from ages 23 to 37. An age of 30 has a membership
value µ of 0.5 in the set “Young”. The solid lines represent the fuzzy membership functions for each set. The dashed lines illustrate how “Young” could be made into a crisp, non-
fuzzy set. In this illustration, the crisp, non-fuzzy set “Young” includes ages from 0 to 30.
1-3-4 Robotics
▌Deep Learning
is a subset of machine learning that involves neural networks with many layers (hence "deep") to model and solve complex problems. These
networks are designed to automatically learn representations of data through hierarchical layers, where each layer extracts increasingly
abstract features.
▌Cognitive Computing
refers to systems that simulate human thought processes to help solve complex problems. These systems use AI techniques like machine
learning, natural language processing, and reasoning to mimic the functioning of the human brain’s cognitive functionality. Cognitive
computing aims to create systems that can learn, reason, interact naturally, and make decisions based on large amounts of unstructured data.
▌AI in Healthcare
refers to the use of artificial intelligence technologies to improve medical care, from diagnosis and treatment to patient management and
drug discovery. AI systems can analyze large datasets, detect patterns, and provide insights that assist healthcare professionals in making
more accurate decisions.
▌Bioinformatics
is an interdisciplinary field that combines biology, computer science, and information technology to analyze and interpret biological data. It
involves the development and application of computational tools and algorithms to understand complex biological systems, such as DNA
sequencing, protein structure prediction, and gene expression analysis.
▌AI in Cybersecurity
involves using artificial intelligence technologies to detect, prevent, and respond to cyber threats. AI systems can analyze large volumes of
data, identify patterns, and detect anomalies in real-time, allowing for faster and more accurate threat detection than traditional methods.
▌Swarm Intelligence
is a concept in artificial intelligence inspired by the collective behavior of decentralized, self-organized systems, often observed in nature
among groups of animals like ants, bees, or birds. It involves designing algorithms that mimic these natural behaviors to solve complex
optimization and coordination problems.
▌etc.
1-3-4 Robotics
■ Healthcare: AI in healthcare includes diagnostic tools that analyze medical images, predictive models for disease outbreaks,
personalized treatment plans, and virtual health assistants. These applications help in improving diagnostic accuracy, tailoring
treatments to individual patients, and enhancing overall healthcare delivery.
■ Finance: in the financial sector, AI is used for fraud detection, algorithmic trading, risk assessment, and personalized financial advice.
AI systems analyze transaction patterns to detect anomalies, optimize trading strategies, and provide personalized investment
recommendations.
■ Transportation: AI is a key driver of advancements in autonomous vehicles, traffic management systems, and logistics optimization.
Self-driving cars use AI to navigate and make decisions, while AI algorithms optimize routing and delivery processes for logistics
companies.
■ Entertainment: in entertainment, AI powers recommendation engines for streaming services, generates content through tools like
deepfake technology, and enhances user experiences in video games with intelligent NPCs (non-player characters) and adaptive
difficulty levels.
■ Education: AI in education includes personalized learning platforms, intelligent tutoring systems, and administrative automation.
These applications help tailor educational experiences to individual student needs, automate grading, and provide real-time
feedback.
■ Manufacturing: AI is used in predictive maintenance, quality control, and production optimization. Machine learning algorithms
analyze sensor data to predict equipment failures, while AI-powered vision systems detect defects in manufacturing processes.
■ Agriculture: In agriculture, AI aids in precision farming, crop monitoring, and livestock management. AI-driven systems analyze data
from drones and sensors to optimize planting strategies, monitor crop health, and manage resources more efficiently.
■ Cybersecurity: AI enhances cybersecurity through real-time threat detection, automated incident response, and vulnerability
management. AI systems analyze network traffic to identify and respond to potential threats and anomalies.
■ Retail: AI enhances the retail experience through personalized recommendations, inventory management, and customer service.
Chatbots and virtual assistants provide real-time support, while AI-driven analytics help retailers understand customer preferences
and optimize supply chains.
■ Smart Cities: AI contributes to the development of smart cities by optimizing energy usage, managing traffic flow, and improving
public services. AI-powered systems monitor and analyze data from various city infrastructure components to enhance urban living
conditions.
■ Human Resources: In HR, AI streamlines recruitment processes through resume screening, candidate matching, and interview
scheduling. AI also aids in employee performance evaluation and engagement through data-driven insights.
■ etc.
Artificial Intelligence (Chapter 1: Introduction) 90 / 97
Chapter 1: Introduction
Lecture Outline
1-1 What is Artificial Intelligence (AI)? 1-4 Applications of AI
1-1-1 AI Definition 1-5 Agents
1-1-2 AI History 1-5-1 Single-Agent Systems vs. Multi-Agent Systems
1-3-4 Robotics
Agents are designed to operate in dynamic environments where they can make decisions, solve problems, and adapt to changes in
their surroundings.
1. Autonomy: Agents in MAS are typically designed to be autonomous, meaning they have the ability to operate independently,
make decisions based on their own perceptions, and take actions to achieve their goals without constant external control.
2. Perception: Agents have the capability to perceive their environment using sensors or other means. Perception allows agents
to gather information about the state of the environment, the actions of other agents, and relevant changes.
3. Decision-Making: Agents possess decision-making capabilities. They can evaluate their perceptions, internal knowledge, and
goals to make decisions on how to act in a given situation. The decision-making process is a crucial aspect of an agent's
intelligence.
4. Goal-Directed Behavior: Agents are typically designed with specific goals or objectives. Goal-directed behavior motivates
agents to take actions that move them closer to achieving their objectives.
5. Communication (social ability): Agents may communicate with other agents within the system. Communication enables
agents to share information, coordinate actions, negotiate, and collaborate. Effective communication is essential for achieving
collective goals.
1-3-4 Robotics
Multi-Agent Systems: a Multi-Agent System (MAS) involves multiple interacting agents that work together or compete to achieve their
individual or collective goals. These systems are designed to solve problems that are too complex for a single agent.
1-3-4 Robotics
● Autonomous Vacuum Cleaners: like Roomba. These robotic vacuum cleaners navigate and clean floors independently using sensors
to detect obstacles and dirt. They make decisions on their cleaning paths based on pre-programmed algorithms.
● Chatbots: like customer service chatbots on websites. These are software agents designed to simulate conversation with users,
answer queries, and provide support based on predefined responses and natural language processing.
● Recommendation Systems: like Netflix or Amazon recommendation engines. These systems analyze user behavior and preferences
to suggest movies, products, or content, operating as a single-agent system to personalize recommendations.
● Autonomous Drones: like aerial photography drones. These drones are capable of flying and capturing images or video based on
programmed routes or user commands, operating autonomously in their task.
● Traffic Management Systems: like smart traffic lights and sensors network. Multiple agents (traffic lights, sensors, and control
systems) interact to manage traffic flow, reduce congestion, and improve road safety.
● Robotic Swarms: like swarms of drones used for environmental monitoring. A group of drones work together to cover large areas,
gather data, and coordinate their actions for tasks like search and rescue or surveillance.
● Market Simulation Systems: like stock market trading simulations. Multiple trading agents (both human and algorithmic) interact in a
simulated financial market, making trades and responding to market conditions based on strategies and signals.
1-3-4 Robotics
Understanding the environment is crucial in designing and analyzing multi-agent systems, as it directly influences the agents'
perceptions, actions, and overall system dynamics.
▌Definition: The environment in a multi-agent system encompasses everything external to individual agents. It includes the
space, conditions, and factors that influence the agents' actions and perceptions.
▌Perception: Agents perceive the environment through sensors or observation mechanisms. The information gathered from the
environment forms the basis for the agents' decision-making processes.
▌State: The state of the environment represents the current configuration or condition of relevant variables. Changes in the
environment's state impact the perceptions and interactions of the agents.
▌Action Space: The environment defines the set of possible actions that agents can take. Agents interact with the environment
by executing actions, and these actions may lead to changes in the state of the environment.
Understanding the environment is essential for designing effective multi-agent systems. It influences the development of agent
architectures, communication protocols, and coordination mechanisms.
1-1 ▌ Define in your own words: (i) intelligence, (ii) artificial intelligence, (iii) agent, (iv) rationality, (v) logical reasoning.
1-2 ▌ Using your own words try to describe the goal of AI.
1-3 ▌ If you were asked why AI is divided into branches, how would you respond?
1-5 ▌ (i) What is the relation between “artificial neural networks” and “machine learning”? (ii) Do all machine learning methods require artificial
neural networks
1-7 ▌ (i) What are supervised and unsupervised learning? (ii) How do they differ from each other? (iii) Are there other types of machine learning
algorithms? (iv) Try to list well-known algorithms in each category.
1-8 ▌ In your own words: (i) Try to explain the main objectives of each branch of AI, and (ii) List several applications for each.
1-10 ▌ (i) What is an agent in AI? (ii) What are "single-agent" and "multi-agent systems"? (iii) What are the characteristics of agents?
1-12 ▌ What are the specifications of an appropriate dataset for learning a model?
1-13 ▌ To what extent are the following computer systems instances of artificial intelligence:
- Supermarket bar code scanners.
- Voice-activated telephone menus.
- Spelling and grammar correction features in Microsoft Word.
- Internet routing algorithms that respond dynamically to the state of the network.
1-15 ▌ “Surely computers cannot be intelligent—they can do only what their programmers tell them.” Is the latter statement true, and does it imply the
former?
1-16 ▌ “Surely animals cannot be intelligent—they can do only what their genes tell them.” Is the latter statement true, and does it imply the former?
1-17 ▌ “Surely animals, humans, and computers cannot be intelligent—they can do only what their constituent atoms are told to do by the laws of
physics.” Is the latter statement true, and does it imply the former?