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

The method in seven steps.

Every model in this course is built with the same seven steps, whether it recognizes a leaf, a sound or a gesture. Here you'll follow them with a real example, an olive leaf to check in the fields, where there's often no signal.

What you learn
  1. The seven steps that come back in every hands-on lesson
  2. Why the question comes before the technology
  3. How to split the data so you don't fool yourself
  4. What changes when the data is a sound, a movement or a sentence
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 question

    First of all, what does it need to recognize?

    It all starts with a simple question. Looking at a photo of an olive leaf, the phone has to say whether the plant is healthy or sick. And it has to do it out in the fields too, where the network often doesn't reach.

    In practice. Before thinking about technology, write down where it will be used, on which phone and in how much light. Those answers change every choice that comes after.

01 / 07
(Go deeper)

A few more numbers.


(01)

The same steps with different data

The example uses photos, but the method stays the same when the data is something else. What changes is what you collect, how you label it and which network you pick. The table below compares four projects from the course.

StepLeaf (photo)Siren (sound)Fall (motion)Commands (text)
QuestionHealthy or sick?Is there a siren?Did the person fall?What is the user asking for?
DataPhotos in sun and shadeOne-second clips, street and homeTwo-second windows at 50 HzSentences written by different people
LabelsOne class per photo, sometimes a boxSiren or no sirenFall, sitting down, walkingLight, music, weather, other
NetworkMobileNet and a new headSmall network on the spectrogramFeatures and a dense networkEmbedding and a new head
What you measureAccuracy and confusion matrixFalse alarms per hourMissed fallsMisunderstood commands
(02)

Why three groups of data instead of two

The validation group is for making choices. How many epochs, which learning rate, when to stop. But every time you choose by looking at those numbers, the model adapts a little to them too. You never look at the test group while you work, and it's the only one that tells you how the model will do with new data.

A rule of thumb is 70, 15 and 15 percent. With little data you split 80 and 20, and you leave the test for a collection made on another day, in different light. Watch out for nearly identical photos, like two shots in a row of the same leaf. If they end up in different groups, the model looks better than it is.

(Try it on your phone)

Your project card


Pick a problem you can recognize with one of the phone's sensors and fill in the card. It stays saved in your browser, and you'll find it again in the final project.

The card saves itself as you type.

(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)

    According to the method, where do you start?

  2. (02)

    The validation curve stops going down while the training curve keeps going. What's happening?

  3. (03)

    What is the test group for?

To close the lesson, answer the quiz

← The map of models The course review Back to the map
(Next lesson · 02.01) Classifying a photo