{"id":5376,"date":"2024-11-25T23:46:16","date_gmt":"2024-11-25T23:46:16","guid":{"rendered":"https:\/\/dalelane.co.uk\/blog\/?p=5376"},"modified":"2026-04-02T16:58:48","modified_gmt":"2026-04-02T16:58:48","slug":"using-mobilenet-in-scratch","status":"publish","type":"post","link":"https:\/\/dalelane.co.uk\/blog\/?p=5376","title":{"rendered":"Using MobileNet in Scratch"},"content":{"rendered":"<p><iframe loading=\"lazy\" width=\"450\" height=\"260\" style=\"border: thin black solid;\"  src=\"https:\/\/www.youtube.com\/embed\/cpCeaR9KTF8?si=j4PwHpnyhgqfbwjo\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><br \/>\n<small><a href=\"https:\/\/youtu.be\/cpCeaR9KTF8\">Screen recording at youtu.be\/cpCeaR9KTF8<\/a><\/small><\/p>\n<p>MobileNet is a light-weight machine learning model for performing image classification. <\/p>\n<p>In this <a href=\"https:\/\/machinelearningforkids.co.uk\/\">Machine Learning for Kids<\/a> project, students can try MobileNet for themselves using the familiar educational low-code programming language <a href=\"https:\/\/scratch.mit.edu\/\">Scratch<\/a>. <\/p>\n<p><!--more-->A test box can be moved around using the mouse, and resized and stretched using arrow keys. When the mouse is clicked, the contents of the test box is submitted to the MobileNet model, and the top result is displayed. (<em>The <a href=\"https:\/\/youtu.be\/cpCeaR9KTF8\">screen recording above<\/a> is an example of what this looks like.<\/em>)<\/p>\n<p>By experimenting with their own images, students get first-hand experience of the sort of behaviour of this widely-used machine learning model, and an insight into the kinds of things it is good and bad at recognizing. <\/p>\n<p>They&#8217;re also introduced to the <a href=\"https:\/\/image-net.org\/\">imagenet<\/a> set of images that was used to train the model, and the way that this was collected and labelled.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images.dalelane.co.uk\/2024-11-25-mobilenet\/mobilenet-worksheet.png\" style=\"border: thin black solid; width: 100%; max-width: 900px;\"\/><\/p>\n<p>There are step-by-step instructions in the free &#8220;MobileNet&#8221; PDF available for download from <a href=\"https:\/\/machinelearningforkids.co.uk\/worksheets\">machinelearningforkids.co.uk\/worksheets<\/a>. (For teachers who need to modify or customize the project for their own students, <a href=\"https:\/\/github.com\/IBM\/taxinomitis-docs\/blob\/master\/project-worksheets\/msword\/worksheet-mobilenet.docx\">the original MS Word document<\/a> is also available). <\/p>\n<p><strong>Please give it a try, and let me know what you think!<\/strong><\/p>\n<hr \/>\n<p><em>If you want a more light-hearted and fun variation of this project, the &#8220;I-Spy&#8221; project (also <a href=\"https:\/\/machinelearningforkids.co.uk\/worksheets\">available for download<\/a>) gets students to use the MobileNet model to make an I-Spy game. Or there are many other projects where students collect their own training images to train their own custom machine learning models.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Students can try the MobileNet machine learning model for themselves in the educational programming environment Scratch.<\/p>\n","protected":false},"author":1,"featured_media":5385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[587],"class_list":["post-5376","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-mlforkids-tech"],"_links":{"self":[{"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5376"}],"version-history":[{"count":2,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5376\/revisions"}],"predecessor-version":[{"id":5936,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5376\/revisions\/5936"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/media\/5385"}],"wp:attachment":[{"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}