{"id":22693,"date":"2022-01-05T18:00:06","date_gmt":"2022-01-05T10:00:06","guid":{"rendered":"https:\/\/cde.nus.edu.sg\/isem\/?post_type=nus-news&#038;p=22693"},"modified":"2024-02-21T15:58:57","modified_gmt":"2024-02-21T07:58:57","slug":"workshop-on-machine-learning-image-classification","status":"publish","type":"nus-news","link":"https:\/\/cde.nus.edu.sg\/isem\/news\/workshop-on-machine-learning-image-classification\/","title":{"rendered":"Workshop on Machine Learning &#8211; Image Classification"},"content":{"rendered":"<p class=\"CDt4Ke zfr3Q\" dir=\"ltr\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-22694 alignright\" src=\"https:\/\/cde.nus.edu.sg\/isem\/wp-content\/uploads\/sites\/12\/2024\/02\/machine-learning.jpg\" alt=\"\" width=\"338\" height=\"201\" srcset=\"https:\/\/cde.nus.edu.sg\/isem\/wp-content\/uploads\/sites\/12\/2024\/02\/machine-learning.jpg 546w, https:\/\/cde.nus.edu.sg\/isem\/wp-content\/uploads\/sites\/12\/2024\/02\/machine-learning-300x179.jpg 300w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/><\/p>\n<p class=\"CDt4Ke zfr3Q\" dir=\"ltr\">Machine learning enables businesses to speed up the pace of work, reduce errors and improve accuracy. One example of this is image classification where a machine processes images along a production line to identify defective products.<\/p>\n<p class=\"CDt4Ke zfr3Q\" dir=\"ltr\">The ability to train machines to recognize images presents a huge opportunity for many organizations. In particular, visual tasks that are currently performed by humans can potentially be automated, resulting in significant cost savings.<\/p>\n<p class=\"CDt4Ke zfr3Q\" dir=\"ltr\">Recently, I conducted a short image classification workshop. In that workshop, we explain the basics behind how a machine can be trained to recognize different images. In addition, we had a step-by-step guided segment where participants built their own image classifier in MS Excel.<\/p>\n<p dir=\"ltr\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-22695 alignleft\" src=\"https:\/\/cde.nus.edu.sg\/isem\/wp-content\/uploads\/sites\/12\/2024\/02\/ML-images-300x238.jpg\" alt=\"\" width=\"345\" height=\"274\" srcset=\"https:\/\/cde.nus.edu.sg\/isem\/wp-content\/uploads\/sites\/12\/2024\/02\/ML-images-300x238.jpg 300w, https:\/\/cde.nus.edu.sg\/isem\/wp-content\/uploads\/sites\/12\/2024\/02\/ML-images.jpg 576w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/p>\n<p class=\"CDt4Ke zfr3Q\" dir=\"ltr\">The images were made up of 28 by 28 pixels (i.e., 784 input values). Conditional formatting was used to help viewers visualize the images (see image below).<\/p>\n<p class=\"CDt4Ke zfr3Q\" dir=\"ltr\">To keep things simple, we used a small neural network to implement this. In particular, we only had 16 nodes in our input layer, 12 nodes in a single hidden layer and 10 output nodes. We reduced the 784 input values into just 16 values where each value is obtained by taking the average of 7 X 7 pixels. You can think of this as a very simple image compression (although I will have problems restoring back the original image, but I don&#8217;t have to worry about that here).<\/p>\n<p class=\"CDt4Ke zfr3Q\" dir=\"ltr\">The node values were computed using Rectified Linear Unit (ReLU) activation functions which are very simple functions that can easily be executed in MS Excel.<\/p>\n<p class=\"CDt4Ke zfr3Q\" dir=\"ltr\">You can view the video below for full details: <span class=\" aw5Odc\"><a class=\"XqQF9c\" href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1H0XoKDqrOidbHBi3Vhylhd-Jz0O9jK5x\/edit?usp=sharing&amp;ouid=100547616503428056370&amp;rtpof=true&amp;sd=true\" target=\"_blank\" rel=\"noopener\">Download template<\/a><\/span> | |\u00a0<span class=\" aw5Odc\"><a class=\"XqQF9c\" href=\"https:\/\/docs.google.com\/spreadsheets\/d\/14wl7Yc3JbB6LBWqESY0I92rTTCPq_Mbm\/edit?usp=sharing&amp;ouid=100547616503428056370&amp;rtpof=true&amp;sd=true\" target=\"_blank\" rel=\"noopener\">Download solution<\/a><\/span><\/p>\n<p class=\"CDt4Ke zfr3Q\" dir=\"ltr\">Dr TAN Chin Hon 5 Jan 2022<\/p>\n<div class=\"ast-oembed-container \" style=\"height: 100%;\"><iframe loading=\"lazy\" title=\"Machine Learning Workshop\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/jaoxFJKVDrM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<p dir=\"ltr\">Recording of workshop on YouTube<\/p>\n<p dir=\"ltr\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-22698 \" src=\"https:\/\/cde.nus.edu.sg\/isem\/wp-content\/uploads\/sites\/12\/2024\/02\/screenshot.png\" alt=\"\" width=\"735\" height=\"461\" srcset=\"https:\/\/cde.nus.edu.sg\/isem\/wp-content\/uploads\/sites\/12\/2024\/02\/screenshot.png 893w, https:\/\/cde.nus.edu.sg\/isem\/wp-content\/uploads\/sites\/12\/2024\/02\/screenshot-300x188.png 300w, https:\/\/cde.nus.edu.sg\/isem\/wp-content\/uploads\/sites\/12\/2024\/02\/screenshot-768x482.png 768w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<p dir=\"ltr\">Screenshot of MS Excel spreadsheet<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Machine learning enables businesses to speed up the pace of work, reduce errors and improve accuracy. One example of this is image classification where a machine processes images along a production line to identify defective products. The ability to train machines to recognize images presents a huge opportunity for many organizations. In particular, visual tasks<\/p>\n","protected":false},"author":26,"featured_media":22702,"parent":0,"menu_order":0,"template":"","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"news_category":[],"class_list":["post-22693","nus-news","type-nus-news","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/cde.nus.edu.sg\/isem\/wp-json\/wp\/v2\/news\/22693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cde.nus.edu.sg\/isem\/wp-json\/wp\/v2\/news"}],"about":[{"href":"https:\/\/cde.nus.edu.sg\/isem\/wp-json\/wp\/v2\/types\/nus-news"}],"author":[{"embeddable":true,"href":"https:\/\/cde.nus.edu.sg\/isem\/wp-json\/wp\/v2\/users\/26"}],"version-history":[{"count":6,"href":"https:\/\/cde.nus.edu.sg\/isem\/wp-json\/wp\/v2\/news\/22693\/revisions"}],"predecessor-version":[{"id":22703,"href":"https:\/\/cde.nus.edu.sg\/isem\/wp-json\/wp\/v2\/news\/22693\/revisions\/22703"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cde.nus.edu.sg\/isem\/wp-json\/wp\/v2\/media\/22702"}],"wp:attachment":[{"href":"https:\/\/cde.nus.edu.sg\/isem\/wp-json\/wp\/v2\/media?parent=22693"}],"wp:term":[{"taxonomy":"news_category","embeddable":true,"href":"https:\/\/cde.nus.edu.sg\/isem\/wp-json\/wp\/v2\/news_category?post=22693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}