際際滷

際際滷Share a Scribd company logo
Lecture 1
Introduction
Instructor
Waqas Ahmad
Department of Computer Science
University of Agriculture, Faisalabad
Artificial Intelligence
(CS-511)
1
Today a Reader
Tomorrow a
Leader
2
Your feed back/Questions are most
Welcome!
 No Pain, No Gain _ no Magic
 The More you Put in , The More you Get
 Your grades are proportional to your efforts
3
SINGLE RULE OF SUCCESS
Do not put off till tomorrow what you can do Today
4
Rules and Regulations
 Come to the class on time with positive attitude.
 Late comers (after 15 minutes) are not allowed.
 Make sure you have more than 75% of attendance to sit in exams.
 Pay full attention towards teacher during lecture.
 Respect your self, classmates and teacher
5
5 tips to Study
 Dont Sit on Bed When you Study
 No Music when you study
 Dont Use Mobile (Social Media )
 Avoid People Around you
 Dont Skip Pages Write
6
Intelligent
7
What is intelligent?
 Many of you would exactly know what it is but most of you wont exactly be able to
define it. Is it something tangible? We all know that it does exist but what
actually it is. TANGIBLE is capable of being perceived especially by the sense.
 Let us try to understand the phenomena of intelligence by using a few examples.
Consider the following image where a mouse is trying to search a maze in order to
find its way from the bottom left to the piece of cheese in the top right corner
8
Intelligent Examples
 This problem can be considered as a common real life problem which we deal with
many times in our life, i.e. finding a path, may be to a university, to a friends house,
to a market, or in this case to the piece of cheese. The mouse tries various paths
as shown by arrows and can reach the cheese by more than one path. In other
words the mouse can find more than one solutions to this problem.
 The mouse is intelligent enough to find a solution to
the problem at hand.
Hence the ability of problem solving demonstrates
intelligence.
9
The characteristic of intelligence comes in when we try to solve something,
we check various ways to solve it, we check different combinations, and
many other things to solve different problems. All this thinking, this memory
manipulation capability, this numerical processing ability and a lot of
other things add to ones intelligence.
Example:
Let us consider another problem. Consider the sequence of numbers below:
1, 3, 7, 13, 21, How will you solve?
Again answering the question requires a little bit intelligence. The
characteristic of intelligence comes in when we try to solve something, we
check various ways to solve it, we check different combinations, and many
other things to solve different problems.
All this thinking, this memory manipulation capability,
this numerical processing ability and a lot of other things
add to ones intelligence.
10
Case Study
 All of you have experienced your college life. It was very easy for us to look at the timetable
and go to the respective classes to attend them. Not even caring that how that time table was
actually developed. In simple cases developing such a timetable is simple. But in cases where
we have 100s of students studying in different classes, where we have only a few rooms and
limited time to schedule all those classes. This gets tougher and tougher. The person who
makes the timetable has to look into all the time schedule, availability of the teachers,
availability of the rooms, and many other things to fit all the items correctly within a fixed span
of time. He has to look into many expressions and thoughts like If room A is free AND
teacher B is ready to take the class AND the students of the class are not studying any
other course at that time THEN the class can be scheduled. This is a fairly simple one,
things get complex as we add more and more parameters e.g. if we were to consider that
teacher B might teach more than one course and he might just prefer to teach in room C and
many other things like that. The problem gets more and more complex. We are pretty much
sure than none of us had ever realized the complexity through which our teachers go through
while developing these schedules for our classes. However, like we know such time tables can
be developed. All this information has to reside in the developers brain.
11
Findings of case study
 His intelligence helps him to create such a schedule. Hence the
ability to think, plan and schedule demonstrate intelligence.
12
Let us identify
 Things are not all that simple. People dont think about problems in the same
manner.
Can you recognize a person just by looking at his/her fingerprint?
Though we all know that every human has a distinct pattern of his/her
fingerprint but just by looking at a fingerprint image a human generally
cant just tell that this print must be of person XYZ. On the other hand having
distinct fingerprint is really important information as it serves as a unique ID for
all the humans in this world.
13
His intelligence helped him to learn the features that distinguish
one finger print from the other. Hence the ability to learn and
recognize demonstrates intelligence.
14
 A person goes to doctor, tells him that he is not feeling well. The doctor asks him a
few questions to clarify the patients situation. The doctor takes a few
measurements to check the physical status of the person. These measurements
might just include the temperature (T), Blood Pressure (BP), Pulse Rate (PR) and
things like that. For simplicity let us consider that some doctor only checks these
measurements and tries to come up with a diagnosis for the disease. He takes
these measurements and based on his previous knowledge he tries to diagnose
the disease. His previous knowledge is based on rules like: If the patient has a
high BP and normal T and normal PR then he is not well. If only the BP is normal
then what ever the other measurements may be the person should be healthy,
and many such other rules.
The key thing to notice is that by using such rules the doctor
might classify a person to be healthy or ill and might as well
prescribe different medicines to him using the information
observed from the measurements according to his previous
knowledge.
15
 Let us give one last thought and then will get to why we have discussed all this. A
lot of us regularly watch television.
 Consider that you switch off the volume of your TV set. If you are watching a
Artificial intelligence lecture you will somehow perceive that the person standing in
front of you is not singing a song, or anchoring a musical show or playing some
sport. So just by observing the sequence of images of the person you are able to
perceive meaningful information out of the video
Your intelligence helped you to perceive and understand
what was happening on the TV. Hence the ability to
understand and perceive demonstrates intelligence.
16
 we all know that we answer such fuzzy questions very efficiently in our daily lives.
Our intelligence actually helps us do this. Hence the ability to tackle ambiguous
and fuzzy problems demonstrates intelligence.
17
Intelligent Machines
 The discussion in the above section has a lot of consequences when we see it with a
different perspective. Let us show you something really interesting now and hence informally
define the field of Artificial Intelligence at the same time.
 What if?
 A machine searches through a mesh and finds a path?
 A machine solves problems like the next number in the sequence?
 A machine develops plans?
 A machine diagnoses and prescribes?
 A machine answers ambiguous questions?
 A machine recognizes fingerprints?
 A machine understands?
 A machine perceives?
 A machine does MANY MORE SUCH THINGS!
 A machine behaves as HUMANS do?
 We will have to call such a machine Intelligent. Is this real or natural intelligence? NO! This is
Artificial Intelligence.
18
Artificial Intelligence
 Artificial: Not Natural
 Intelligence: ability to learn, understand and think.
 AI is the study of how to make computers do things which, at the moment
people do better(Rich,1991).
 The power of a machine to copy intelligent human behavior.
 Examples: Speech recognition, Facial Detection and Recognition, Text Editors or
Autocorrect, Social Media, Learning new skills, Decision making, Abstract thinking.
19
20
Father Of Artificial Intelligence
 John McCarthy (born October 12, 1962)
 American computer scientist and cognitive scientist.
 McCarthy [25] has defined Artificial intelligence in 2007 as,
AI is the Science and Engineering of making Intelligent Machine, especially
Computer Programs
21
Examples
22
23
What is Artificial Intelligence
The art of creating machines that perform functions that require intelligence when
performed by people (Kurzweil, 1990).
The branch of computer science that is concerned with the automation of intelligent
behavior. (Luger and Stublefield, 1993)
Artificial Intelligence is concerned with the design of intelligence in an artificial device.
Two ideas in the definition
I. Intelligence
II. Artificial device
24
Task to do
 Get the best understanding of Artificial intelligence
 Find out innovative Artificial intelligence Technology
25
Reference Books
 Daugherty, R. R., and H. J. Wilson. 2018. Human + Machine: Reimagining Work in
the Age of AI. Harvard Business Review Press. USA.
 Marr, B., and M. Ward. 2019. Artificial Intelligence in Practice. John Wiley & Sons.
USA.
 Kaplan, J., 2016. 2016. Artificial Intelligence: What Everyone Needs to Know.
Oxford University Press. UK.
 Govers, F. X., 2018. Artificial Intelligence for Robotics. Packt Publishing. UK.
 Neural Network ToolboxTM Users Guide. 2019. The MathWorks, Inc. 1 Apple Hill
Drive, Natick, MA, USA.
 Fuzzy Logic ToolboxTM Users Guide. 2019. The MathWorks, Inc. 1 Apple Hill
Drive, Natick, MA, USA.
26

More Related Content

Introduction to AI.pptx

  • 1. Lecture 1 Introduction Instructor Waqas Ahmad Department of Computer Science University of Agriculture, Faisalabad Artificial Intelligence (CS-511) 1
  • 3. Your feed back/Questions are most Welcome! No Pain, No Gain _ no Magic The More you Put in , The More you Get Your grades are proportional to your efforts 3
  • 4. SINGLE RULE OF SUCCESS Do not put off till tomorrow what you can do Today 4
  • 5. Rules and Regulations Come to the class on time with positive attitude. Late comers (after 15 minutes) are not allowed. Make sure you have more than 75% of attendance to sit in exams. Pay full attention towards teacher during lecture. Respect your self, classmates and teacher 5
  • 6. 5 tips to Study Dont Sit on Bed When you Study No Music when you study Dont Use Mobile (Social Media ) Avoid People Around you Dont Skip Pages Write 6
  • 8. What is intelligent? Many of you would exactly know what it is but most of you wont exactly be able to define it. Is it something tangible? We all know that it does exist but what actually it is. TANGIBLE is capable of being perceived especially by the sense. Let us try to understand the phenomena of intelligence by using a few examples. Consider the following image where a mouse is trying to search a maze in order to find its way from the bottom left to the piece of cheese in the top right corner 8
  • 9. Intelligent Examples This problem can be considered as a common real life problem which we deal with many times in our life, i.e. finding a path, may be to a university, to a friends house, to a market, or in this case to the piece of cheese. The mouse tries various paths as shown by arrows and can reach the cheese by more than one path. In other words the mouse can find more than one solutions to this problem. The mouse is intelligent enough to find a solution to the problem at hand. Hence the ability of problem solving demonstrates intelligence. 9
  • 10. The characteristic of intelligence comes in when we try to solve something, we check various ways to solve it, we check different combinations, and many other things to solve different problems. All this thinking, this memory manipulation capability, this numerical processing ability and a lot of other things add to ones intelligence. Example: Let us consider another problem. Consider the sequence of numbers below: 1, 3, 7, 13, 21, How will you solve? Again answering the question requires a little bit intelligence. The characteristic of intelligence comes in when we try to solve something, we check various ways to solve it, we check different combinations, and many other things to solve different problems. All this thinking, this memory manipulation capability, this numerical processing ability and a lot of other things add to ones intelligence. 10
  • 11. Case Study All of you have experienced your college life. It was very easy for us to look at the timetable and go to the respective classes to attend them. Not even caring that how that time table was actually developed. In simple cases developing such a timetable is simple. But in cases where we have 100s of students studying in different classes, where we have only a few rooms and limited time to schedule all those classes. This gets tougher and tougher. The person who makes the timetable has to look into all the time schedule, availability of the teachers, availability of the rooms, and many other things to fit all the items correctly within a fixed span of time. He has to look into many expressions and thoughts like If room A is free AND teacher B is ready to take the class AND the students of the class are not studying any other course at that time THEN the class can be scheduled. This is a fairly simple one, things get complex as we add more and more parameters e.g. if we were to consider that teacher B might teach more than one course and he might just prefer to teach in room C and many other things like that. The problem gets more and more complex. We are pretty much sure than none of us had ever realized the complexity through which our teachers go through while developing these schedules for our classes. However, like we know such time tables can be developed. All this information has to reside in the developers brain. 11
  • 12. Findings of case study His intelligence helps him to create such a schedule. Hence the ability to think, plan and schedule demonstrate intelligence. 12
  • 13. Let us identify Things are not all that simple. People dont think about problems in the same manner. Can you recognize a person just by looking at his/her fingerprint? Though we all know that every human has a distinct pattern of his/her fingerprint but just by looking at a fingerprint image a human generally cant just tell that this print must be of person XYZ. On the other hand having distinct fingerprint is really important information as it serves as a unique ID for all the humans in this world. 13
  • 14. His intelligence helped him to learn the features that distinguish one finger print from the other. Hence the ability to learn and recognize demonstrates intelligence. 14
  • 15. A person goes to doctor, tells him that he is not feeling well. The doctor asks him a few questions to clarify the patients situation. The doctor takes a few measurements to check the physical status of the person. These measurements might just include the temperature (T), Blood Pressure (BP), Pulse Rate (PR) and things like that. For simplicity let us consider that some doctor only checks these measurements and tries to come up with a diagnosis for the disease. He takes these measurements and based on his previous knowledge he tries to diagnose the disease. His previous knowledge is based on rules like: If the patient has a high BP and normal T and normal PR then he is not well. If only the BP is normal then what ever the other measurements may be the person should be healthy, and many such other rules. The key thing to notice is that by using such rules the doctor might classify a person to be healthy or ill and might as well prescribe different medicines to him using the information observed from the measurements according to his previous knowledge. 15
  • 16. Let us give one last thought and then will get to why we have discussed all this. A lot of us regularly watch television. Consider that you switch off the volume of your TV set. If you are watching a Artificial intelligence lecture you will somehow perceive that the person standing in front of you is not singing a song, or anchoring a musical show or playing some sport. So just by observing the sequence of images of the person you are able to perceive meaningful information out of the video Your intelligence helped you to perceive and understand what was happening on the TV. Hence the ability to understand and perceive demonstrates intelligence. 16
  • 17. we all know that we answer such fuzzy questions very efficiently in our daily lives. Our intelligence actually helps us do this. Hence the ability to tackle ambiguous and fuzzy problems demonstrates intelligence. 17
  • 18. Intelligent Machines The discussion in the above section has a lot of consequences when we see it with a different perspective. Let us show you something really interesting now and hence informally define the field of Artificial Intelligence at the same time. What if? A machine searches through a mesh and finds a path? A machine solves problems like the next number in the sequence? A machine develops plans? A machine diagnoses and prescribes? A machine answers ambiguous questions? A machine recognizes fingerprints? A machine understands? A machine perceives? A machine does MANY MORE SUCH THINGS! A machine behaves as HUMANS do? We will have to call such a machine Intelligent. Is this real or natural intelligence? NO! This is Artificial Intelligence. 18
  • 19. Artificial Intelligence Artificial: Not Natural Intelligence: ability to learn, understand and think. AI is the study of how to make computers do things which, at the moment people do better(Rich,1991). The power of a machine to copy intelligent human behavior. Examples: Speech recognition, Facial Detection and Recognition, Text Editors or Autocorrect, Social Media, Learning new skills, Decision making, Abstract thinking. 19
  • 20. 20
  • 21. Father Of Artificial Intelligence John McCarthy (born October 12, 1962) American computer scientist and cognitive scientist. McCarthy [25] has defined Artificial intelligence in 2007 as, AI is the Science and Engineering of making Intelligent Machine, especially Computer Programs 21
  • 23. 23
  • 24. What is Artificial Intelligence The art of creating machines that perform functions that require intelligence when performed by people (Kurzweil, 1990). The branch of computer science that is concerned with the automation of intelligent behavior. (Luger and Stublefield, 1993) Artificial Intelligence is concerned with the design of intelligence in an artificial device. Two ideas in the definition I. Intelligence II. Artificial device 24
  • 25. Task to do Get the best understanding of Artificial intelligence Find out innovative Artificial intelligence Technology 25
  • 26. Reference Books Daugherty, R. R., and H. J. Wilson. 2018. Human + Machine: Reimagining Work in the Age of AI. Harvard Business Review Press. USA. Marr, B., and M. Ward. 2019. Artificial Intelligence in Practice. John Wiley & Sons. USA. Kaplan, J., 2016. 2016. Artificial Intelligence: What Everyone Needs to Know. Oxford University Press. UK. Govers, F. X., 2018. Artificial Intelligence for Robotics. Packt Publishing. UK. Neural Network ToolboxTM Users Guide. 2019. The MathWorks, Inc. 1 Apple Hill Drive, Natick, MA, USA. Fuzzy Logic ToolboxTM Users Guide. 2019. The MathWorks, Inc. 1 Apple Hill Drive, Natick, MA, USA. 26