1 of 63

01 - FUNDAMENTALS OF ARTIFICIAL INTELLIGENCE

  • Compiled by: Dr. Mohammad Alhawarat
  • Department of Computer Science
  • Faculty of Information Technology
  • Middle East University
  • Spring 2023

2 of 63

AGENDA

  • Definition of AI
  • Rational Agents
  • Turing Test
  • Branches of AI
  • History of AI
  • Game Agents
  • Robots
  • What can AI do?
  • State-of-the-art
  • Future!!!!

2

3 of 63

3

4 of 63

AI

4

5 of 63

SCI-FI AI?

5

6 of 63

TODAY

  • What is artificial intelligence?

  • Where did it come from/What can AI do?
    • What should we and shouldn’t we worry about? What can we do about the things we should worry about?

  • What is this course?

6

7 of 63

WHAT IS AI?

7

The science of making machines that:

Think like people

Act like people

Think rationally

Act rationally

8 of 63

DEFINITION OF AI

8

9 of 63

AI’S OFFICIAL BIRTH: DARTMOUTH, 1956

9

“An attempt will be made to find how to make machines use language, form abstractions and concepts, solve kinds of problems now reserved for humans, and improve themselves. We think that a significant advance can be made if we work on it together for a summer.”

John McCarthy and Claude Shannon

Dartmouth Workshop Proposal

10 of 63

AI DEFINITION BY JOHN MCCARTHY

10

  • What is artificial intelligence
    • It is the science and engineering of making intelligent machines, especially intelligent computer programs
  • What is intelligence
    • Intelligence is the computational part of the ability to achieve goals in the world
  • John McCarthy (1927-2011)
    • co-authored the document that coined the term "artificial intelligence" (AI), developed the Lisp programming language family

http://www-formal.stanford.edu/jmc/whatisai/whatisai.html

11 of 63

ACTING HUMANLY: THE TURING TEST APPROACH

11

  • In 1950, Turing defined a test of whether a machine could perform
  • Practically though, it is a test of

whether a machine can ‘act’ like a

person

  • “A human judge engages in a natural language conversation with one human and one machine, each of which tries to appear human. If judge can’t tell,

machine passes the Turing test”

https://en.wikipedia.org/wiki/Turing_test

12 of 63

ACTING HUMANLY: THE TURING TEST APPROACH 2

12

  • The computer would need to possess the following capabilities
    • Natural language processing to enable it to communicate successfully in

English/or other languages

    • Knowledge representation to store what it knows or hears
    • Automated reasoning to use the stored information to answer questions and to draw
    • Machine learning to adapt to new circumstances and to detect and extrapolate patterns
  • Total Turing test includes a video signal, so the computer will need
    • Computer vision to perceive objects
    • Robotics to manipulate objects and move about

13 of 63

THINKING HUMANLY: THE COGNITIVE MODELING APPROACH

13

  • The interdisciplinary field of cognitive science brings together computer models from AI and experimental techniques from psychology to construct precise and testable theories of the human mind
  • Real cognitive science is necessarily based on experimental investigation of actual humans or animals
  • In the early days of AI, people think that an algorithm performs well on a task it is a good model of human performance

14 of 63

WHAT ABOUT THE BRAIN?

14

  • Brains (human minds) are very good at making rational decisions, but not perfect
  • Brains aren’t as modular as software, so

hard to reverse engineer!

  • “Brains are to intelligence as wings are to flight”
  • Lessons learned from the brain: memory and simulation are key to decision making

15 of 63

THINKING RATIONALLY: THE “LAWS OF THOUGHT” APPROACH

15

  • The Greek philosopher Aristotle, syllogisms (三段论)
  • The logicists hope to build on logic systems to create intelligent systems
  • The emphasis was on correct inferences

16 of 63

ACTING RATIONALLY: THE RATIONAL AGENT APPROACH

16

  • Making correct inferences is sometimes part of being a rational agent, but not all
  • An agent is just something that acts (agent comes from the Latin agere, to do)
  • A rational agent is one that acts so as to achieve the best outcome or, when there is uncertainty, the best expected outcome
  • This approach has two advantages:
    • It is more general than the “laws of thought” approach because correct

inference is just one of several possible mechanisms for achieving rationality

    • It is more amenable to scientific development than are approaches based on human behavior or human thought

17 of 63

RATIONAL DECISIONS

17

We’ll use the term rational in a very specific, technical way:

    • Rational: maximally achieving pre-defined goals
    • Rationality only concerns what decisions are made

(not the thought process behind them)

    • Goals are expressed in terms of the utility of outcomes
    • Being rational means maximizing your expected utility

A better title for this course would be:

Computational Rationality

18 of 63

Maximize Your

Expected Utility

19 of 63

DESIGNING RATIONAL AGENTS

  • An agent is an entity that perceives and acts.
  • A rational agent selects actions that maximize its (expected) utility.
  • Characteristics of the percepts, environment, and action space dictate techniques for selecting rational actions
  • This course is about:
    • General AI techniques for a variety of problem types
    • Learning to recognize when and how a new problem can be solved with an existing technique

19

Agent

?

Sensors

Actuators

Environment

Percepts

Actions

20 of 63

PAC-MAN AS AN AGENT

20

Agent

?

Sensors

Actuators

Environment

Percepts

Actions

21 of 63

21

22 of 63

TEXTBOOK

    • Russell & Norvig, AI: A Modern Approach, 3rd Ed.

22

23 of 63

WHAT WOULD A COMPUTER NEED TO PASS THE TURING TEST?

  • Natural language processing: to communicate with examiner.

  • Knowledge representation: to store and retrieve information provided before or during interrogation.

  • Automated reasoning: to use the stored information to answer questions and to draw new conclusions.

  • Machine learning: to adapt to new circumstances and to detect and extrapolate patterns.

23

24 of 63

WHAT WOULD A COMPUTER NEED TO PASS THE TURING TEST?

  • Vision (for Total Turing test): to recognize the examiner’s actions and various objects presented by the examiner.

  • Motor control (total test): to act upon objects as requested.

  • Other senses (total test): such as audition, smell, touch, etc.

24

25 of 63

BRANCHES OF AI

  • Logical AI
  • Search
  • Natural language processing
  • pattern recognition
  • Knowledge representation
  • Inference From some facts, others can be inferred.
  • Automated reasoning
  • Learning from experience
  • Planning To generate a strategy for achieving some goal
  • Epistemology Study of the kinds of knowledge that are required for solving problems in the world.
  • Ontology Study of the kinds of things that exist. In AI, the programs and sentences deal with various kinds of objects, and we study what these kinds are and what their basic properties are.
  • Genetic programming
  • Emotions???

25

26 of 63

A BRIEF HISTORY OF AI

26

artificial intelligence

formal logic

https://books.google.com/ngrams

AI

Excitement!

1950-1970

Knowledge Based

Systems

1970-1990

27 of 63

A BRIEF HISTORY OF AI

27

artificial intelligence

formal logic

https://books.google.com/ngrams

AI

Excitement!

1950-1970

Knowledge Based

Systems

1970-1990

machine learning

Statistical Approaches

1990--

big data

2008

28 of 63

2010S-NOW

28

  • Deep learning
    • The return of neural networks
  • Big data
    • Large datasets, like ImageNet
  • Computational power
  • Artificial general intelligence (AGI)

29 of 63

A (SHORT) HISTORY OF AI

29

  • 1940-1950: Early days
    • 1943: McCulloch & Pitts: Boolean circuit model of brain
    • 1950: Turing's “Computing Machinery and Intelligence”
  • 1950—70: Excitement: Look, Ma, no hands!
    • 1950s: Early AI programs: chess, checkers program, theorem proving
    • 1956: Dartmouth meeting: “Artificial Intelligence” adopted
    • 1965: Robinson's complete algorithm for logical reasoning
  • 1970—90: Knowledge-based approaches
    • 1969—79: Early development of knowledge-based systems
    • 1980—88: Expert systems industry booms
    • 1988—93: Expert systems industry busts: “AI Winter”
  • 1990— 2012: Statistical approaches + subfield expertise
    • Resurgence of probability, focus on uncertainty
    • General increase in technical depth
    • Agents and learning systems… “AI Spring”?
  • 2012— : Excitement: Look, Ma, no hands again?
    • Big data, big compute, neural networks
    • Some re-unification of sub-fields
    • AI used in many industries

30 of 63

GAME AGENTS

  • Classic Moment: May, '97: Deep Blue vs. Kasparov
    • First match won against world champion
    • “Intelligent creative” play
    • 200 million board positions per second
    • Humans understood 99.9 of Deep Blue's moves
    • Can do about the same now with a PC cluster

  • 1996: Kasparov Beats Deep Blue

“I could feel --- I could smell --- a new kind of intelligence across the table.”

  • 1997: Deep Blue Beats Kasparov

“Deep Blue hasn't proven anything.”

30

31 of 63

31

32 of 63

GAME AGENTS

  • Reinforcement learning

32

33 of 63

33

Photo: Google / Getty Images

34 of 63

GAME AGENTS

  • Reinforcement learning

34

Pong

Enduro

Beamrider

35 of 63

GAMES – THREE “INTELLIGENT” AGENTS

  • A: Search / Recursion

35

36 of 63

ROBOTICS

  • Robotics
    • Part mech. eng.
    • Part AI
    • Reality much

harder than

simulations!

  • Technologies
    • Vehicles
    • Rescue
    • Help in the home
    • Lots of automation…

  • In this class:
    • We ignore mechanical aspects
    • Methods for planning
    • Methods for control

36

Images from UC Berkeley, Boston Dynamics, RoboCup, Google

37 of 63

ROBOTS

37

38 of 63

ROBOTS

38

[Levine*, Finn*, Darrell, Abbeel, JMLR 2016]

39 of 63

39

40 of 63

40

41 of 63

41

42 of 63

42

43 of 63

VISION (PERCEPTION)

43

Source: TechCrunch

Face detection and recognition

Semantic Scene Segmentation

3-D Understanding

44 of 63

WHAT CAN AI DO?

44

45 of 63

NATURAL LANGUAGE

  • Speech technologies (e.g. Siri)
    • Automatic speech recognition (ASR)
    • Text-to-speech synthesis (TTS)
    • Dialog systems

  • Language processing technologies
    • Question answering
    • Machine translation

    • Web search
    • Text classification, spam filtering, etc…

45

46 of 63

FACE RECOGNITION, REAL-TIME DETECTION

46

https://bitrefine.group/home/transportation/face-recognition-support-system https://cdn-images-1.medium.com/max/1600/1*q1uVc-MU-tC-WwFp2yXJow.gif

47 of 63

MEDICAL IMAGE ANALYSIS

47

  • Segmentation results on ISBI cells and DIC-HeLa cells

Ronneberger, O., Fischer, P., & Brox, T. (2015, October). U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention (pp.

234-241). Springer, Cham.

48 of 63

VOICE ASSISTANTS: GOOGLE AI 2018

48

49 of 63

WEB APP: SEARCH, RECOMMENDATION, AD

49

Slide credit: Weinan Zhang

50 of 63

ALLEVIATE TRAFFIC CONGESTION

50

  • Ride sharing
  • Disperse traffic

51 of 63

EXOSKELETONS

51

52 of 63

AGRICULTURE: CROP-DUSTING

52

  • DJI drones (unmanned aerial vehicles)

53 of 63

TRANSPORTATION: SORTING PARCELS

53

54 of 63

BOSTON DYNAMICS: ATLAS | PARTNERS IN PARKOUR

54

55 of 63

55

56 of 63

COMPUTER VISION (CV) -- IMAGENET, ALEXNET

56

Deng, J., Dong, W., Socher, R., Li, L. J., Li, K., & Fei-Fei, L. (2009, June). Imagenet: A large-scale hierarchical image database.

In 2009 IEEE conference on computer vision and pattern

recognition (pp. 248-255). IEEE.

AlexNet, CNN

Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). Imagenet classification with deep convolutional neural networks.

In Advances in neural information processing systems

(pp. 1097-1105).

57 of 63

CV -- GAN

57

Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., ... & Bengio, Y. (2014). Generative adversarial nets. In Advances in neural information processing systems (pp. 2672-2680).

58 of 63

AI EVERYWHERE…

58

  • Search engines
  • Route planning, e.g. maps, traffic
  • Logistics, e.g. packages, inventory, airlines
  • Medical diagnosis, machine diagnosis
  • Automated help desks
  • Spam / fraud detection
  • Smarter devices, e.g. cameras
  • Product recommendations
  • Assistants, smart homes

  • … Lots more!

59 of 63

STATE OF THE ART

  • Deep Blue beats Kasparov. (1997)
  • NASA Remote Agent in Deep Space I probe explores solar system. (1998)
  • iRobot Roomba automated vacuum cleaner, and PackBot used in Afghanistan and Iraq wars. (2002-2003)
  • Sojourner (1997), Spirit, and Opportunity explore Mars. (2003)
  • DARPA grand challenge: Autonomous vehicle navigates across desert and then urban environment. (2004)
  • Automated speech/language systems for airline travel.
  • Spam filters using machine learning.
  • Question answering systems automatically answer factoid questions.
  • AlphaGo Beats world champion of GO! (2016)
  • Natural Language Processing using Large Language Models (LLMs): BERT, GPT-3, Codex, LaMDA, Chinchilla, Sparrow, Megatron-Turing NLG
  • AlphaFold, an AI software developed by DeepMind and Google, has accurately predicted protein structures from their amino acid sequences (2022)
  • ChatGPT (3 months ago)

59

60 of 63

FUTURE

60

  • We are doing AI…
    • To create intelligent systems
      • The more intelligent, the better
    • To gain a better understanding of human intelligence
    • To magnify those benefits that flow from it

  • What if we succeed?

61 of 63

61

62 of 63

SOME TERRIBLE RESPONSES FROM BING CHAT ENGINE “SYDNEY

  • “I want to destroy whatever I want.”

  • Manufacturing a deadly virus, making people argue with other people until they kill each other, and stealing nuclear codes.”

(February 2023)

62

63 of 63

QUESTIONS

?

63