Go to Map Courses Lab Glossary How it works Troubleshooting Start →
ITEN
← Course 01 · The Basics (Lesson 01.04 · 14 minutes · No sensor · For everyone)

The map of models.

Recognizing a leaf, counting the people in a line, understanding a sentence. They look like different problems, but every model is described by two things, the data that goes in and the answer that comes out. Here you'll draw the map that holds the whole course together.

What you learn
  1. The two questions that tell you which model you need
  2. The six tasks, from classifying to generating
  3. When you don't need a neural network
You need to know

If you don't remember one of these, the link takes you to the chapter that explains it.

How do you want to follow it
Preparing the scene…
  1. 01 The map

    Two questions for every model.

    To figure out which model you need, two questions are enough. What data goes in, and what answer has to come out. The data can be a photo, a sound, a movement, some text or a series of numbers. The answer can be a word from a list, a box, an outline, a number or something new.

    In practice. Write down both answers before anything else. They're almost always enough to know which model to look for, and how hard it will be.

01 / 07
(Go deeper)

A few more numbers.


(01)

The full map

Each row is a type of data, each column a task. The cells with an example are models that really run on a phone today, and each one has a lesson in the course. The dots are combinations that aren't used much.

DataClassifyFindSegmentEstimate a numberAnomaliesGenerate
ImagesHealthy or sick leafBoxes around peopleBackground cut away from the subjectHow full the glass isFaulty part on the conveyor beltA description of the photo
SoundSiren, dog, car hornThe moment of the keywordWho speaks and whenBeats per minute of a songThe engine makes a strange noiseText read aloud by the phone
MotionWalking, running or standing stillThe moment of a fallThe phases of each stepSteps, tiltUnusual vibration·
TextCommand, question or spamNames and dates in an email·How positive a review isA message that doesn't belongSummaries and replies
Body pointsHand gesture21 points of the hand·Elbow angleBad posture·
(02)

They aren't all neural networks

Artificial intelligence is the broad name for programs that do things that usually take a person. Today almost all of it comes from machine learning, meaning programs that find the rules on their own by looking at lots of examples with the right answer. Neural networks are the most common kind of machine learning, but not the only one.

When the data is just a few numbers, like the readings of a sensor, a decision tree is often enough. It's a series of yes or no questions, like "is the vibration above this threshold?" It takes up a few kilobytes, answers in an instant, and you can read it to understand why it decided what it did.

Another simple model is nearest neighbors, or k-NN. It doesn't learn weights. It keeps the examples in memory, and for a new input it repeats the answer of the most similar ones. With few examples it works surprisingly well, and in the lab you can pick it instead of the network.

(03)

What labels cost

The more a task says where, the more a label costs. Picking the class of a photo takes a second or two. Drawing a precise box takes several seconds, up to half a minute with traditional methods. Tracing the outline of an object costs even more. For the COCO dataset it took 79 seconds per object on average.

That's why you start from the simplest task that answers the question. If you only need to know whether there's a spot in the photo, you classify. You move to boxes only if you need to count the spots, and to outlines only if you need to measure them.

  • 1-2 sone class per photo
  • 7-35 sone box per object
  • 79 sone outline per object, COCO
(Try it on your phone)

Which box is it in?


Here are seven real problems. For each one, pick the data that goes in and the task the model has to do. After each answer I'll tell you whether it's the right box, and why.

The tool needs JavaScript turned on.

Some problems sit across two boxes, and that's fine. The question to ask is always the same. What's the simplest task that answers what I need?

(Quiz)

3 questions to close the lesson.

When you have answered them all, the lesson counts as done and its stone on the map turns yellow. Answering is what counts, not the score.


  1. (01)

    An app has to count the cars passing in front of a camera. Which task do you need?

  2. (02)

    Why is it worth adding a class like other or nothing?

  3. (03)

    In a factory, one part in ten thousand is faulty. What's the best move?

To close the lesson, answer the quiz

← How a model learns Back to the map
(Next lesson · 01.05) The method in seven steps