An Introduction to Teachable Machine

Daniel Flores Garcia
Written by Daniel Flores Garcia on
An Introduction to Teachable Machine

Teachable Machine is a free web-based tool to create machine learning (ML) models without any coding. No signup required.

Teachable Machine allows you to “train” an ML model to recognize certain patterns by supplying it with labeled data.[1]

For example, you can create an ML model that when you give it a picture, it can tell you whether the picture contains a dog, a cat, or neither. To create this Cat-or-Dog model, there are three steps:

  1. Gather many images of dogs, group them into one “Dog” category. Repeat for images of cats, grouping them into a “Cat” category. Repeat for pictures of other animals (or anything other than dogs and cats, really) that are neither dogs nor cats, grouping them into an “Other” category.

  2. Provide your model with the labeled data; in this case, the classified images.

  3. Train your model —Teachable Machine does this for you.

And, voilà, your model can now identify dogs and cats and differentiate them.

There are three different types of projects supported by Teachable Machine:

  1. Image Project: “Teach a model to classify images using files or your webcam.”
    Image project tutorial

  2. Audio Project: “Teach a model to classify audio by recording short sound samples.”
    Audio project tutorial

  3. Pose Project: “Teach a model to classify body positions using files or striking poses in your webcam.”
    Pose project tutorial

Additionally, here is a playlist of tutorial videos detailing the process of using Teachable Machine.

Teachable Machine is built using a technique called transfer learning, which is turn based on neural networks.[2] With that said, there are some important things to consider when using this tool:

  1. ML models are inherently biased. Any bias in your training data will be reflected in the model’s decision-making process. Consequently, they can perpetuate negative human bias. This is a prevalent issue: large companies have been subject to controversy over their noticeably biased models. For example, Amazon had to scrap their internal recruiting AI system because it showed a bias against female candidates. Reportedly, the models were trained with resumes submitted to the company over a ten-year period, which mostly came from men.[3]

  2. Machine learning models based on neural networks resemble a black box in nature. While you might be able to tell that a dog is a dog based on their fur, snout, size, legs, etc, a neural network model can be mysterious in its decision-making process. It ultimately boils down to a bunch of weights and numbers that can seem arbitrary to humans. Thus, even though your model might be able to tell dogs and cats apart decently well, it’s very difficult to understand how exactly it is doing that.[4]

  3. The quality of your model depends entirely on the quality of your data. If you give your model only pictures of dogs in grassy outdoor lawns, it might get confused when it tries to classify a dog inside a house with furniture and a tile floor. Similarly, if you give your model only pictures of a Siamese cat, it might not be able to recognize a Persian cat. To avoid this, your data should be as varied as possible, with the more (properly labelled) data the better.

References

[1] What is a machine learning model?. Quinn Radich, Eliot Cowley.
https://docs.microsoft.com/en-us/windows/ai/windows-ml/what-is-a-machine-learning-model
[2] Teachable Machine From Google Makes It Easy To Train And Deploy ML Models. Janakiram MSV. https://www.forbes.com/sites/janakirammsv/2020/11/29/teachable-machine-from-google-makes-it-easy-to-train-and-deploy-ml-models/
[3] Amazon scraps secret AI recruiting tool that showed bias against women. Jeffrey Dastin.
https://www.reuters.com/article/us-amazon-com-jobs-automation-insight/amazon-scraps-secret-ai-recruiting-tool-that-showed-bias-against-women-idUSKCN1MK08G
[4] 4 Reasons Why Deep Learning and Neural Networks Aren’t Always the Right Choice. Niklas Donges.
https://builtin.com/data-science/disadvantages-neural-networks

Daniel Flores Garcia

Daniel Flores Garcia

Class of '24