Personal Image Classifier
Difficulty: beginner Lesson Type: curriculum unit Subject: computer science |
Grade Level: |
|
This AI unit is broken into three parts. In part 1, students learn how to create and train their own image classification model to identify and classify images. In part 2, students use their model in an app using MIT App Inventor to see how their model performs. In part 3, students create another app using the same model. In this app, the image classification becomes a game, where users must match the emotional expression to score points.
NOTE: Not all mobile devices/operating systems currently have the required hardware/software to run the Look extension used in this unit. Please check here to see if your mobile device is on our list of devices where the extension is known to work. If your device is not on the list, we highly recommend testing beforehand to make sure it is compatible. Please see the Teacher Unit Outline below for instructions on testing compatibility.
Below is an overview of the 3 forty-five minute lessons.
Lesson 1
Time | Activity |
---|---|
10 min | Introduction to Unit Discuss what machine learning is and how it is used. If students have already learned about the App Inventor Look extension, some of this may be skipped. |
25 min | Train a Model with the Personal Image Classifier Students open Web browsers on their computers and use http://classifier.appinventor.mit.edu to create a model of different facial expressions. Students follow PIC Student Guide Lesson 1. |
10 min | Wrap-up Discussion Discuss how students think their models performed. Ask about what made their models more or less accurate. What was a good number of images to train the model with?. |
Lesson 2
Time | Activity |
---|---|
10 min | Introduction to Activity Explain to students they will use the model made in the previous lesson in a prebuilt app. If students need more time to train their model, give them another 5-10 minutes. |
15 min | Run and Test PIC App
|
15 min | Wrap-up Discussion
|
Lesson 3
Time | Activity |
---|---|
5 min | Introduction to Lesson Explain to students they will create a game app that uses their trained model to assess users’ ability to match a given expression. |
30 min | Coding Expression Match App
|
10 min | Wrap-up Discussion
|
Teaching Documents
- Complete Teacher Unit Outline
- Lesson 1 teacher slides
- Lesson 1 student guide: Train a Model
- Lesson 2 teacher slides
- Lesson 2 student guide: PIC Mobile App (sidebar tutorial) or (pdf)
- Lesson 3 teacher slides
- Lesson 3 student guide: Expression Match Game (sidebar tutorial) or (pdf)