SlideShare a Scribd company logo
1 of 17
Artificial Intelligence
Introduction
   Alison Cawsey
   room: G36
   email: alison@macs.hw.ac.uk

   Ruth Aylett
   Room: 1.37
   Email: ruth@macs.hw.ac.uk
What is AI?
s   Various definitions:
    x Building intelligent entities.
    x Getting computers to do tasks which require
      human intelligence.
s   But what is “intelligence”?
s   Simple things turn out to be the hardest to
    automate:
    x Recognising a face.
    x Navigating a busy street.
    x Understanding what someone says.
s   All tasks require reasoning on knowledge.
Why do AI?
s   Two main goals of AI:
    x To understand human intelligence better. We
      test theories of human intelligence by writing
      programs which emulate it.
    x To create useful “smart” programs able to do
      tasks that would normally require a human
      expert.
Who does AI?
 s   Many disciplines contribute to goal of
     creating/modelling intelligent entities:
     x Computer Science
     x Psychology (human reasoning)
     x Philosophy (nature of belief, rationality, etc)
     x Linguistics (structure and meaning of
       language)
     x Human Biology (how brain works)
 s   Subject draws on ideas from each discipline.
Typical AI Problems
s   Intelligent entities (or “agents”) need to be able to do
    both “mundane” and “expert” tasks:
s   Mundane tasks - consider going shopping:
    x Planning a route, and sequence of shops to visit!
    x Recognising (through vision) buses, people.
    x Communicating (through natural language).
    x Navigating round obstacles on the street, and
      manipulating objects for purchase.
s   Expert tasks are things like:
    x medical diagnosis.
    x equipment repair.
s   Often “mundane” tasks are the hardest.
Philosophical Issues
s What is intelligence?
s Can a machine be truly “intelligent”? Is there more to

  human intelligence than rules, data and calculations?
Tests:
s Turing Test: Can someone tell which is the machine,

  when communicating to human and to a machine in
  another room? If not, can we call the machine
  intelligent?
s Chinese room: Searle says no. Describes a thought

  experiment where talk in Chinese by looking up what
  to say from huge rule book.
s Loebner contest: Contest for most human-like

  conversation system.
Example conversation with system
winning Loebner prize
s P: No worries! Hey! I didn’t come here to be subjected to
  bad language! How rude!
s J: Sorry, sorry. Didn’t mean to offend. So, how old are

  you?
s P: That’s OK. Just don’t do it again. Well, should my age

  really matter. Just for the record I’m 24. How old are you
  then.
But.. System was based on fairly simple methods, with pre-
  stored amusing replies. These simple methods first used
  in “Eliza” - a program to emulate psychotherapist.
    Try esc-x doctor while in emacs for a version of Eliza.
s   Human-like performance doesn’t guarantee intelligence.
About this Module
Covers following AI topics
  x AI Programming, using Prolog.
  x Knowledge representation:
       3   How do we represent knowledge about the world in
           a formal manner that can be manipulated in a sound
           and efficient manner?
  x   Search:
       3   How can an AI system go through all the possibilities
           in a systematic manner when looking for solutions to
            complex problems.
About this Module
  x   Natural Language:
       3   How can a system communicate in a natural
           language such as English.
  x   Machine learning and neural networks:
       3   How can a system learn from experience, or
           from past case data.
  x   Agents:
       3   How can we develop and use practical
           “intelligent agents”.
  x   Knowledge Engineering:
       3   How do we elicit the human expertise required
           to build intelligent applications.
Labs and Coursework
 s   Weekly lab, starting Wed 16th April!
 s   Labs give you experience of two AI programming
     languages: Prolog and NetLogo.
 s   Weeks 1-4: Exercises on AI Programming in
     Prolog.
     x   Some of these must be “ticked off” by Lab
         demonstrators and will contribute to your
         coursework mark.
 s   Weeks 5-8: NetLogo with assessed exercise.
Books etc.
s   “Essence of Artificial Intelligence” by Alison
    Cawsey, Prentice Hall.
    x   Review: “I missed most of the lectures but thanks to this short
        and sweet book I passed my first year introduction to AI course.
        If you are a slack student taking an AI course - buy this book. “
s   Artificial Intelligence: A Modern Approach (second
    edition), Russell & Norvig, Prentice Hall. 2003
s   Artificial Intelligence: Structures and Strategies for
    Complex Problem Solving, Luger, Benjamin Cummings.
s   Slides, lab exercises etc for weeks 1-4 on
    www.macs.hw.ac.uk/~alison/ai3/
Module prerequisites/assumptions
  s   Programming (software engineering).
  s   CS students will benefit from:
      x   Logic and Proof
  s   IT students will benefit from
      x   Cognitive Science.
  s   Relevant material from logic and proof will be
      reviewed again for benefit of IT students.
Getting Started with Prolog
s   Prolog is a language based on first order
    predicate logic. (Will revise/introduce this later).
s   We can assert some facts and some rules, then
    ask questions to find out what is true.
s   Facts: likes(john, mary).
            tall(john).
            tall(sue).
            short(fred).
            teaches(alison, artificialIntelligence).
s   Note: lower case letters, full stop at end.
Prolog
s   Rules:
        likes(fred, X) :- tall(X).
        examines(Person, Course) :- teaches(Person, Course).


    x John likes someone if that someone is tall.
    x A person examines a course if they teach that
      course.
    x NOTE: “:-” used to mean IF. Meant to look a bit
      like a backwards arrow
    x NOTE: Use of capitals (or words starting with
      capitals) for variables.
Prolog
s   Your “program” consists of a file containing
    facts and rules.
s   You “run” your program by asking “questions”
    at the prolog prompt.

          |?- likes(fred, X).

s   John likes who?
s   Answers are then displayed. Type “;” to get
    more answers: (Note: darker font for system output)
          X = john ? ;
          X = sue ? ;
          no
Prolog and Search
s   Prolog can return more than one answer to a
    question.
s   It has a built in search method for going
    through all the possible rules and facts to
    obtain all possible answers.
s   Search method “depth first search” with
    “backtracking”.
Summary
s   AI about creating intelligent entities, with a
    range of abilities such as language, vision,
    manipulation/navigation..
s   Intelligence involves knowledge - this must be
    represented with and reasoned with.
s   Solving problems involves search.
s   Prolog is a language geared to representing
    knowledge and searching for solutions.
s   Prolog programs based on facts and rules, and
    run by asking questions.

More Related Content

What's hot

Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Yasir Khan
 
Python AI tutorial
Python AI tutorialPython AI tutorial
Python AI tutorialgrinu
 
Natural Language Processing (NLP)
Natural Language Processing (NLP)Natural Language Processing (NLP)
Natural Language Processing (NLP)Yuriy Guts
 
Natural Language Processing: L01 introduction
Natural Language Processing: L01 introductionNatural Language Processing: L01 introduction
Natural Language Processing: L01 introductionananth
 
Introduction to natural language processing
Introduction to natural language processingIntroduction to natural language processing
Introduction to natural language processingMinh Pham
 

What's hot (7)

Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence
 
Python AI tutorial
Python AI tutorialPython AI tutorial
Python AI tutorial
 
Natural Language Processing (NLP)
Natural Language Processing (NLP)Natural Language Processing (NLP)
Natural Language Processing (NLP)
 
Gate
GateGate
Gate
 
NLP Project Full Cycle
NLP Project Full CycleNLP Project Full Cycle
NLP Project Full Cycle
 
Natural Language Processing: L01 introduction
Natural Language Processing: L01 introductionNatural Language Processing: L01 introduction
Natural Language Processing: L01 introduction
 
Introduction to natural language processing
Introduction to natural language processingIntroduction to natural language processing
Introduction to natural language processing
 

Viewers also liked

CAD MBD & 3D Technical Documentation
CAD MBD & 3D Technical DocumentationCAD MBD & 3D Technical Documentation
CAD MBD & 3D Technical Documentationherronje
 
Personal Branding
Personal BrandingPersonal Branding
Personal Brandingashleymac
 
Redes Sociales
Redes SocialesRedes Sociales
Redes Socialestuanix
 
İletişimde dikkat edilmesi gereken püf noktaları
İletişimde dikkat edilmesi gereken püf noktalarıİletişimde dikkat edilmesi gereken püf noktaları
İletişimde dikkat edilmesi gereken püf noktalarıSerhat Ayan
 
Vermont Hills Feb Menu 2010
Vermont  Hills  Feb  Menu 2010Vermont  Hills  Feb  Menu 2010
Vermont Hills Feb Menu 2010sunderhause
 
Selfie sosyal medya
Selfie sosyal medyaSelfie sosyal medya
Selfie sosyal medyaSerhat Ayan
 

Viewers also liked (7)

CAD MBD & 3D Technical Documentation
CAD MBD & 3D Technical DocumentationCAD MBD & 3D Technical Documentation
CAD MBD & 3D Technical Documentation
 
Personal Branding
Personal BrandingPersonal Branding
Personal Branding
 
Redes Sociales
Redes SocialesRedes Sociales
Redes Sociales
 
İletişimde dikkat edilmesi gereken püf noktaları
İletişimde dikkat edilmesi gereken püf noktalarıİletişimde dikkat edilmesi gereken püf noktaları
İletişimde dikkat edilmesi gereken püf noktaları
 
Vermont Hills Feb Menu 2010
Vermont  Hills  Feb  Menu 2010Vermont  Hills  Feb  Menu 2010
Vermont Hills Feb Menu 2010
 
Tutorial Fotomontage
Tutorial FotomontageTutorial Fotomontage
Tutorial Fotomontage
 
Selfie sosyal medya
Selfie sosyal medyaSelfie sosyal medya
Selfie sosyal medya
 

Similar to L1

Learning
LearningLearning
Learningbutest
 
Artificial Intelligence AI Topics History and Overview
Artificial Intelligence AI Topics History and OverviewArtificial Intelligence AI Topics History and Overview
Artificial Intelligence AI Topics History and Overviewbutest
 
Artificial Intelligence AI Topics History and Overview
Artificial Intelligence AI Topics History and OverviewArtificial Intelligence AI Topics History and Overview
Artificial Intelligence AI Topics History and Overviewbutest
 
Artificial Intelligence PPT.ppt
Artificial Intelligence PPT.pptArtificial Intelligence PPT.ppt
Artificial Intelligence PPT.pptDarshRawat2
 
901470_Chap1.ppt
901470_Chap1.ppt901470_Chap1.ppt
901470_Chap1.pptEithuThutun
 
901470_Chap1.ppt about to Artificial Intellgence
901470_Chap1.ppt about to Artificial Intellgence901470_Chap1.ppt about to Artificial Intellgence
901470_Chap1.ppt about to Artificial Intellgencechougulesup79
 
artificial intelligence basis-introduction
artificial intelligence basis-introductionartificial intelligence basis-introduction
artificial intelligence basis-introductionSaranya Subakaran
 
Artificial Intelligence for Business.ppt
Artificial Intelligence for Business.pptArtificial Intelligence for Business.ppt
Artificial Intelligence for Business.pptFarhanaMariyam1
 

Similar to L1 (20)

Learning
LearningLearning
Learning
 
Artificial Intelligence AI Topics History and Overview
Artificial Intelligence AI Topics History and OverviewArtificial Intelligence AI Topics History and Overview
Artificial Intelligence AI Topics History and Overview
 
Artificial Intelligence AI Topics History and Overview
Artificial Intelligence AI Topics History and OverviewArtificial Intelligence AI Topics History and Overview
Artificial Intelligence AI Topics History and Overview
 
AI chap1
AI chap1AI chap1
AI chap1
 
Artificial Intelligence PPT.ppt
Artificial Intelligence PPT.pptArtificial Intelligence PPT.ppt
Artificial Intelligence PPT.ppt
 
Ai notes
Ai notesAi notes
Ai notes
 
Ai chap1 intro
Ai chap1 introAi chap1 intro
Ai chap1 intro
 
901470_Chap1.ppt
901470_Chap1.ppt901470_Chap1.ppt
901470_Chap1.ppt
 
901470_Chap1.ppt
901470_Chap1.ppt901470_Chap1.ppt
901470_Chap1.ppt
 
901470_Chap1.ppt
901470_Chap1.ppt901470_Chap1.ppt
901470_Chap1.ppt
 
AI_Intro1.ppt
AI_Intro1.pptAI_Intro1.ppt
AI_Intro1.ppt
 
Chap1.ppt
Chap1.pptChap1.ppt
Chap1.ppt
 
901470_Chap1.ppt about to Artificial Intellgence
901470_Chap1.ppt about to Artificial Intellgence901470_Chap1.ppt about to Artificial Intellgence
901470_Chap1.ppt about to Artificial Intellgence
 
artificial intelligence basis-introduction
artificial intelligence basis-introductionartificial intelligence basis-introduction
artificial intelligence basis-introduction
 
901470 chap1
901470 chap1901470 chap1
901470 chap1
 
901470_Chap1 (1).ppt
901470_Chap1 (1).ppt901470_Chap1 (1).ppt
901470_Chap1 (1).ppt
 
Artificial Intelligence for Business.ppt
Artificial Intelligence for Business.pptArtificial Intelligence for Business.ppt
Artificial Intelligence for Business.ppt
 
901470_Chap1.ppt
901470_Chap1.ppt901470_Chap1.ppt
901470_Chap1.ppt
 
901470_Chap1.ppt
901470_Chap1.ppt901470_Chap1.ppt
901470_Chap1.ppt
 
901470_Chap1.ppt
901470_Chap1.ppt901470_Chap1.ppt
901470_Chap1.ppt
 

Recently uploaded

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Recently uploaded (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

L1

  • 1. Artificial Intelligence Introduction Alison Cawsey room: G36 email: alison@macs.hw.ac.uk Ruth Aylett Room: 1.37 Email: ruth@macs.hw.ac.uk
  • 2. What is AI? s Various definitions: x Building intelligent entities. x Getting computers to do tasks which require human intelligence. s But what is “intelligence”? s Simple things turn out to be the hardest to automate: x Recognising a face. x Navigating a busy street. x Understanding what someone says. s All tasks require reasoning on knowledge.
  • 3. Why do AI? s Two main goals of AI: x To understand human intelligence better. We test theories of human intelligence by writing programs which emulate it. x To create useful “smart” programs able to do tasks that would normally require a human expert.
  • 4. Who does AI? s Many disciplines contribute to goal of creating/modelling intelligent entities: x Computer Science x Psychology (human reasoning) x Philosophy (nature of belief, rationality, etc) x Linguistics (structure and meaning of language) x Human Biology (how brain works) s Subject draws on ideas from each discipline.
  • 5. Typical AI Problems s Intelligent entities (or “agents”) need to be able to do both “mundane” and “expert” tasks: s Mundane tasks - consider going shopping: x Planning a route, and sequence of shops to visit! x Recognising (through vision) buses, people. x Communicating (through natural language). x Navigating round obstacles on the street, and manipulating objects for purchase. s Expert tasks are things like: x medical diagnosis. x equipment repair. s Often “mundane” tasks are the hardest.
  • 6. Philosophical Issues s What is intelligence? s Can a machine be truly “intelligent”? Is there more to human intelligence than rules, data and calculations? Tests: s Turing Test: Can someone tell which is the machine, when communicating to human and to a machine in another room? If not, can we call the machine intelligent? s Chinese room: Searle says no. Describes a thought experiment where talk in Chinese by looking up what to say from huge rule book. s Loebner contest: Contest for most human-like conversation system.
  • 7. Example conversation with system winning Loebner prize s P: No worries! Hey! I didn’t come here to be subjected to bad language! How rude! s J: Sorry, sorry. Didn’t mean to offend. So, how old are you? s P: That’s OK. Just don’t do it again. Well, should my age really matter. Just for the record I’m 24. How old are you then. But.. System was based on fairly simple methods, with pre- stored amusing replies. These simple methods first used in “Eliza” - a program to emulate psychotherapist. Try esc-x doctor while in emacs for a version of Eliza. s Human-like performance doesn’t guarantee intelligence.
  • 8. About this Module Covers following AI topics x AI Programming, using Prolog. x Knowledge representation: 3 How do we represent knowledge about the world in a formal manner that can be manipulated in a sound and efficient manner? x Search: 3 How can an AI system go through all the possibilities in a systematic manner when looking for solutions to complex problems.
  • 9. About this Module x Natural Language: 3 How can a system communicate in a natural language such as English. x Machine learning and neural networks: 3 How can a system learn from experience, or from past case data. x Agents: 3 How can we develop and use practical “intelligent agents”. x Knowledge Engineering: 3 How do we elicit the human expertise required to build intelligent applications.
  • 10. Labs and Coursework s Weekly lab, starting Wed 16th April! s Labs give you experience of two AI programming languages: Prolog and NetLogo. s Weeks 1-4: Exercises on AI Programming in Prolog. x Some of these must be “ticked off” by Lab demonstrators and will contribute to your coursework mark. s Weeks 5-8: NetLogo with assessed exercise.
  • 11. Books etc. s “Essence of Artificial Intelligence” by Alison Cawsey, Prentice Hall. x Review: “I missed most of the lectures but thanks to this short and sweet book I passed my first year introduction to AI course. If you are a slack student taking an AI course - buy this book. “ s Artificial Intelligence: A Modern Approach (second edition), Russell & Norvig, Prentice Hall. 2003 s Artificial Intelligence: Structures and Strategies for Complex Problem Solving, Luger, Benjamin Cummings. s Slides, lab exercises etc for weeks 1-4 on www.macs.hw.ac.uk/~alison/ai3/
  • 12. Module prerequisites/assumptions s Programming (software engineering). s CS students will benefit from: x Logic and Proof s IT students will benefit from x Cognitive Science. s Relevant material from logic and proof will be reviewed again for benefit of IT students.
  • 13. Getting Started with Prolog s Prolog is a language based on first order predicate logic. (Will revise/introduce this later). s We can assert some facts and some rules, then ask questions to find out what is true. s Facts: likes(john, mary). tall(john). tall(sue). short(fred). teaches(alison, artificialIntelligence). s Note: lower case letters, full stop at end.
  • 14. Prolog s Rules: likes(fred, X) :- tall(X). examines(Person, Course) :- teaches(Person, Course). x John likes someone if that someone is tall. x A person examines a course if they teach that course. x NOTE: “:-” used to mean IF. Meant to look a bit like a backwards arrow x NOTE: Use of capitals (or words starting with capitals) for variables.
  • 15. Prolog s Your “program” consists of a file containing facts and rules. s You “run” your program by asking “questions” at the prolog prompt. |?- likes(fred, X). s John likes who? s Answers are then displayed. Type “;” to get more answers: (Note: darker font for system output) X = john ? ; X = sue ? ; no
  • 16. Prolog and Search s Prolog can return more than one answer to a question. s It has a built in search method for going through all the possible rules and facts to obtain all possible answers. s Search method “depth first search” with “backtracking”.
  • 17. Summary s AI about creating intelligent entities, with a range of abilities such as language, vision, manipulation/navigation.. s Intelligence involves knowledge - this must be represented with and reasoned with. s Solving problems involves search. s Prolog is a language geared to representing knowledge and searching for solutions. s Prolog programs based on facts and rules, and run by asking questions.