← Pattern Detector projects: projects

B. Trained pattern detector

Open project

Build a Python app that recognises your own groups of pictures, body poses or sounds, using a model you train yourself, then responds in a way that helps someone.

Some things are easy for people to recognise but almost impossible to describe as rules. Every breed of dog, every angle and every kind of light would need its own rule. Instead you show the computer lots of examples of each group (a class), it finds its own patterns, and then it uses them on things it has never seen. Its confidence in an answer, a number from 0 to 1 (0.8 means 80% sure), is not the same as being right.

Before you start, write one sentence: who is it for, and what will it tell or do for them?

What to hand in

  • Your app: the .py file and your model file.
  • A testing record: input, what you expected, what the app said and how sure it was. Include at least five inputs it had not seen before, and at least two that are not in any of your classes.
  • A reflection: what fooled it, what you changed because of it (more examples, a new class, a different cut-off), one thing a simple rule would do better than your model and why, and who could be affected if your app got it wrong.

Check your app before you hand it in

  • Clear result, in words your user understands.
  • Honest about how sure it is: it says when it is not sure instead of guessing.
  • Useful response: advice, a next step or a score, not just a label.
  • Fits your user: at least one setting or option they can change.
  • Tested on things you did not train it on.

Good habits. Only record yourself, or people who have said yes. Check what is behind you before you record. Your pictures and sounds stay on your computer. The model file holds only your class names and trained numbers, but a saved project file also holds tiny copies of your photos (in Sounds mode, just sound scores), so do not share it if it shows people.

Ways it could look when it works

These show a finished project at about the level to aim for. Yours will be different, and that is fine.

A home sound alert for someone hard of hearing: a sound in, what it heard and what to do about it out, with a setting for how sure it must be.
A home sound alert for someone hard of hearing: a sound in, what it heard and what to do about it out, with a setting for how sure it must be.
A door knock listener: a sound in, what was heard and what to do about it out.
A door knock listener: a sound in, what was heard and what to do about it out.

You'll use

These light up when code you paste uses them. The starters already use some of them, so check the parts you wrote use them too. Click one to see where you learned it.

Where you'll work

This project runs on your own computer, not in this page.

Optional: paste your code to light up the skills it usesNothing is sent anywhere. It stays in this browser, and Download my code saves it.

Milestones

Tick each one when it is true of your project. Nobody marks it: be honest with yourself.

Make it yours

Looking back

Tick every milestone first.

Pattern Detector projects · project badge

★ B. Trained pattern detector

Built with

Milestones

The hardest part