Types of artificial intelligence: from spam filters to chatbots

Module 1 · Lesson 4 of 6 · Artificial intelligence

“Artificial intelligence” is not one program but a large number of different programs. Some recognize images, some speech, some write text or control a robot. In this lesson we make a “map” of the types of artificial intelligence.

Narrow and general artificial intelligence

  • Narrow (specialized) AI does one job or one kind of job: it plays chess, recognizes faces, translates. All the artificial intelligence we use today is basically like this, even though some modern models (chatbots) are good at many different tasks.
  • General artificial intelligence (often called AGI) would be able to learn and do almost any thinking job a person can do. It doesn't exist yet, and experts don't agree on when it could appear – or whether it is possible at all.

What AI does: the main kinds of tasks

TypeWhat it doesExample
image recognition (computer vision)finds and recognizes objects, faces, text in a pictureface unlock, plant recognition, self-driving cars
speech recognitionturns speech into text and backvoice assistants, video subtitles
language processingunderstands and writes text, translatestranslator, spell checker, chatbots
recommendationspredicts what you will likeYouTube, online shops, music
predictionuses data to estimate what will happenweather forecast, traffic jams, machine breakdowns
games and decision-makingchooses the best movechess, go, opponents in video games
generative AIcreates new contenttext, images, music, video, program code
robotsAI controls movement and armsrobot vacuum cleaner, factory robots, drones

How AI learns: three basic ways

OptionHow it learnsAn example from life
supervised learningfrom examples with the correct answer (“this is a cat”, “this is spam”)like learning with a workbook that has solutions
unsupervised learningfinds groups and similarities by itself, without correct answerslike sorting stickers into piles that “look alike”
reinforcement learningtries, gets a reward or a penalty and improveslike learning to ride a bike or play a game

We will do this in detail in the module How a machine learns. For now it's enough to remember: AI always learns from data – and how well it works depends on the data.

Robots and artificial intelligence

The word “robot” often makes us imagine a humanoid machine from the movies. In reality:

  • A robot is a machine that moves and acts in the real world (a motor, an arm, wheels) – like the devices we built with Arduino and ESP32 (SR).
  • Artificial intelligence is a program. It can run in a robot (a robot vacuum cleaner that makes a map of the apartment), but most often it runs on a phone or a server, without any body.
  • Many robots don't use AI at all – they work by rules (e.g. a factory robot that always repeats the same movement).

Activity: make a map

For each example, write the kind of task from the table: (1) an app recognizes the song that is playing, (2) the phone suggests the next word, (3) a program draws a dragon from a description, (4) a shop suggests products, (5) a car brakes by itself in front of a pedestrian, (6) an app translates a sign from a photo.

Solution

(1) speech/sound recognition; (2) language processing (text prediction); (3) generative AI; (4) recommendations; (5) image recognition + robotics (decision-making); (6) image recognition (text in a picture) + language processing (translation). Many systems combine several types.

For the class (for teachers): duration 15 minutes; materials: the board.
Draw a big “AI map” with the kinds of tasks as branches; students add examples from their own experience.

Common misconceptions

  • “All robots are artificial intelligence” – many robots work by fixed rules; and most AI has no body.
  • “A chatbot is general artificial intelligence” – chatbots are very versatile, but they still have big limitations; whether and when general AI can appear is an open question.

Practice tasks

Try it yourself first, and only then open the solution.

  1. What is the difference between narrow and general artificial intelligence?
  2. To play a video game, an AI gets points when it wins and loses them when it loses. Which way of learning is this?
  3. Name one device that is a robot but doesn't use AI, and one program that uses AI but is not a robot.
Solution 1: answer

Narrow AI is made for one task or one kind of task (e.g. face recognition). General AI could learn almost any thinking task like a person – it doesn't exist yet.

Solution 2: answer

Reinforcement learning – it learns from the rewards and penalties it gets after its moves.

Solution 3: possible answers

A robot without AI: a factory robotic arm that repeats the same movement, or a cart that follows a line by a rule. AI without a robot: a translator, a spam filter, a chatbot.

Check your knowledge

Open the quiz

Quiz: types of artificial intelligence

1. What is narrow artificial intelligence?




2. A program draws a picture from a text description. That is…




3. AI learns from examples with correct answers. That is…




4. Does every robot use artificial intelligence?