Train it like Fei-Fei Li – Giving Vision to Computers!
Home
Educational Resources
Challenges
Train it like Fei-Fei Li – Giving Vision to Computers!

Train it like Fei-Fei Li – Giving Vision to Computers!

This challenge has been written by Chouliara Theodora and is part of the EU CODE WEEK CHALLENGES.

Purpose of the challenge

  • To learn the basics of Machine Learning and image recognition.
  • To train a computer to distinguish between different images (e.g., dog vs. cat, dolls vs. teddy bears).
  • To explore how AI and Machine Learning are used in real life.
  • To be inspired by Fei-Fei Li’s contributions to AI and image recognition.
  • To encourage girls to engage in coding and STEM careers.

Duration

60 minutes

Experience

Beginner - No prior coding experience required; suitable for complete beginners.

Target audience

  • Primary School students (6 to 12 years)

Recommended tool

  • Teachable Machine (accessible via web browser)
  • Computer or tablet with a camera
  • Internet connection (for training the AI model)
  • Toys and classroom objects (e.g., dolls, teddy bears) for training the AI model
  • Projector or screen (optional, for classroom demonstrations))

Examples

  • AI in Retail & Shopping:
  • Some stores use AI-powered cameras to recognize products and track inventory.
  • Similar technology helps self-checkout systems recognize items without barcodes.
  • AI & Assistive Technology
  • AI can identify objects to help visually impaired individuals navigate the world.
  • Smart cameras can describe what they "see" to assist users in real time.

Train it like Fei-Fei Li – Giving Vision to Computers!

Primary School students (6 to 12 years)

Description of the challenge

Train an AI model like Fei-Fei Li! Use Teachable Machine to teach a computer to recognize images and explore the power of Machine Learning while breaking gender stereotypes in tech.

Instructions

  1. Step 1: Introduction to Machine Learning & Fei-Fei Li
  2. Explain Machine Learning:
  3. Computers can learn to recognize images, just like humans. Machine Learning helps computers "see" objects by analyzing examples.
  4. Introduce Fei-Fei Li:
  5. Fei-Fei Li is a leading scientist in AI and Computer Vision. She developed ImageNet, a huge dataset that taught computers to recognize images. Just like Fei-Fei Li helped computers see, boys and girls can teach a computer to recognize objects too!
  6. Step 2: Set Up Teachable Machine
  7. Go to Teachable Machine (https://teachablemachine.withgoogle.com/train)
  8. Choose "Image Project" to train the computer to recognize images.
  9. Click on "Standard Image Model".
  10. Step 3: Choose Categories for Training
  11. Decide what categories you want the computer to recognize. You can create categories based on classroom objects (e.g., blocks, teddy bears, dolls, etc.).
  12. Example categories: Dolls and Teddy bears
  13. Step 4: Collect Training Images
  14. Create two categories: Dolls and Teddy Bears.
  15. Option 1: Use real objects
  16. Show a doll in front of the camera and take pictures for the "Dolls" category.
  17. Do the same for a teddy bear for the "Teddy Bears" category.
  18. Option 2: Find images online
  19. Search for pictures of dolls and teddy bears on Google.
  20. Save the images in two separate folders ("Dolls" and "Teddy Bears").
  21. Upload the images from each folder to the Teachable Machine for training.
  22. Step 5: Train the AI Model
  23. After capturing enough images, click "Train Model".
  24. Wait for the model to learn from the images.
  25. Step 6: Test the Model
  26. Once the model is trained, click "Test Model" to see how well it recognizes new images. Test the AI by showing the computer new objects that were not part of the training images (e.g., show a toy that wasn’t used for training). See how well the model recognizes it and categorizes it correctly.
  27. Step 7: Evaluate the Model
  28. Discuss with the students:
  29. Did the model recognize the objects correctly?
  30. Were there any mistakes? What could be improved?
  31. What happens if you train it with more pictures?
  32. Step 8: Save and Share the Model
  33. Once you are happy with the model’s accuracy, click "Export Model" to save your project. You can share the model with other classes or on the Teachable Machine website by clicking "Share".
  34. The model we made above can be found here: https://teachablemachine.withgoogle.com/models/hRNy1ZPlQ/

Share the link to your work in your Instagram Bio: tap the Edit Profile button on your Instagram and add the link to your work in the Website field. After that, create a new post, add a screenshot of your work, write “Link in Bio”, add the hashtag #EUCodeWeekChallenge and mention @CodeWeekEU.