{"id":7949,"date":"2023-02-01T13:11:46","date_gmt":"2023-02-01T18:11:46","guid":{"rendered":"https:\/\/portfolios.cs.earlham.edu\/?page_id=7949"},"modified":"2025-04-14T14:14:53","modified_gmt":"2025-04-14T18:14:53","slug":"ethnicity-classification-model","status":"publish","type":"page","link":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/","title":{"rendered":"Oluwademilade Bolatimi"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">By: Oluwademilade Bolatimi<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Abstract:<\/h2>\n\n\n\n<p>This paper aims to test the effectiveness of applying different machine learning models to accurately detect a person\u2019s ethnicity based on their facial image. This is important due to the lack of research that has been done on that specific biometric with other biometrics such as age and gender being given greater attention. There will also be a study of age and gender performance with the models on similar data to see how ethnicity compares with them. The models selected for comparison will be a support vector machine, a convolutional neural network in ResNet50, and the light Gradient Boosting algorithm. The model with the highest scores of accuracy, precision, f1, and recall overall will be selected to be used to test facial images not involved in the building of the model to see the effectiveness of the model.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>This research aims to use different machine learning models for comparison purposes to see if we can reach a high enough accuracy in detecting an individual&#8217;s ethnicity based on an image of them. Similar works around this topic, such as Owusu et al and Kremic et al, show a baseline good accuracy score should be around 95%. There will also be classifications of other biometrics such as age and gender to see the ease of classifying ethnicity as compared to the other biometrics. This research is being done because there has recently been significant progress in classifying different biometrics such as age and gender, but &#8220;the recognition of ethnicity has not received the same attention from the scientific community&#8221; (Greco). This is concerning because of the racial bias of facial recognition given to specific races more than others. An example of this is seen in Marcos et al. They &#8220;noticed important biases, thus leading to higher error rates when images were taken from black people&#8221; (Ferreira) and how there is a &#8220;risk of deploying computational software that might affect minority groups that are historically neglected&#8221; (Ferreira). If we are able to determine the ethnicity of a person we can make accommodations for the current biases against those minorities with the aim of improving the overall facial recognition software. The paper will first give details about the dataset used and how it will be manipulated for my research. It will then move on to the different models to be used. The idea of the various models suitable for this sort of classification comes from past research such as Chen et al. They use the k-nearest Neighbor algorithm, a Support Vector Machine (SVM), a two-layer neural network, and a convolutional neural network (CNN) for comparison. After this is done we will then use confusion matrix diagrams to see how accurately the models performed and choose our best model with the highest metrics as measurement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Link to Gitlab:<\/h2>\n\n\n\n<p><a href=\"https:\/\/code.cs.earlham.edu\/dpbolat19\/cs488\/-\/tree\/main\/\">https:\/\/code.cs.earlham.edu\/dpbolat19\/cs488\/-\/tree\/main\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Link to Paper:<\/h2>\n\n\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1VgNjHnovc3njJp3GLryAo7uOlf3I2nxB\/view?usp=sharing\">h<\/a><a href=\"https:\/\/drive.google.com\/file\/d\/1nTJsdOAcAKeXn9x1GcHRvEWc8Da0MEsh\/view?usp=sharing\" data-type=\"URL\" data-id=\"https:\/\/drive.google.com\/file\/d\/1nTJsdOAcAKeXn9x1GcHRvEWc8Da0MEsh\/view?usp=sharing\">ttps:\/\/drive.google.com\/file\/d\/1VgNjHnovc3njJp3GLryAo7uOlf3I2nxB\/view?usp=sharing<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Software Architecture Diagram<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"614\" src=\"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/CS-SAD-4-1024x614.png\" alt=\"\" class=\"wp-image-8160\" srcset=\"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/CS-SAD-4-1024x614.png 1024w, https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/CS-SAD-4-300x180.png 300w, https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/CS-SAD-4-768x461.png 768w, https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/CS-SAD-4.png 1350w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Poster:<\/h2>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-02-at-12.04.20-PM-1024x640.png\" alt=\"\" data-id=\"8348\" data-full-url=\"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-02-at-12.04.20-PM.png\" data-link=\"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/screenshot-2023-05-02-at-12-04-20-pm\/\" class=\"wp-image-8348\" srcset=\"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-02-at-12.04.20-PM-1024x640.png 1024w, https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-02-at-12.04.20-PM-300x188.png 300w, https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-02-at-12.04.20-PM-768x480.png 768w, https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-02-at-12.04.20-PM-1536x960.png 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>link to poster <\/p>\n\n\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/14HiMgupFCenqcPFkfxlJiEmRnlsK51cL\/view?usp=sharing\" data-type=\"URL\" data-id=\"https:\/\/drive.google.com\/file\/d\/14HiMgupFCenqcPFkfxlJiEmRnlsK51cL\/view?usp=sharing\">https:\/\/drive.google.com\/file\/d\/14HiMgupFCenqcPFkfxlJiEmRnlsK51cL\/view?usp=sharing<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Software Demonstration Video:<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"900\" style=\"aspect-ratio: 1440 \/ 900;\" width=\"1440\" controls src=\"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/video3963775915.mp4\"><\/video><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Interface of Model (CNN)<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"738\" src=\"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/opencv_0-copy.jpg\" alt=\"\" class=\"wp-image-8347\" srcset=\"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/opencv_0-copy.jpg 738w, https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/opencv_0-copy-300x300.jpg 300w, https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/opencv_0-copy-150x150.jpg 150w, https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/05\/opencv_0-copy-60x60.jpg 60w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>By: Oluwademilade Bolatimi Abstract: This paper aims to test the effectiveness of applying different machine learning models to accurately detect a person\u2019s ethnicity based on their facial image. This is important due to the lack of research that has been &hellip; <a href=\"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/\">Read More<\/a><\/p>\n","protected":false},"author":115,"featured_media":0,"parent":5058,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-7949","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Oluwademilade Bolatimi - CS\/DS Student Portfolios<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oluwademilade Bolatimi - CS\/DS Student Portfolios\" \/>\n<meta property=\"og:description\" content=\"By: Oluwademilade Bolatimi Abstract: This paper aims to test the effectiveness of applying different machine learning models to accurately detect a person\u2019s ethnicity based on their facial image. This is important due to the lack of research that has been &hellip; Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/\" \/>\n<meta property=\"og:site_name\" content=\"CS\/DS Student Portfolios\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-14T18:14:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/CS-SAD-4.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1350\" \/>\n\t<meta property=\"og:image:height\" content=\"810\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/2023-2\\\/cs488\\\/ethnicity-classification-model\\\/\",\"url\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/2023-2\\\/cs488\\\/ethnicity-classification-model\\\/\",\"name\":\"Oluwademilade Bolatimi - CS\\\/DS Student Portfolios\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/2023-2\\\/cs488\\\/ethnicity-classification-model\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/2023-2\\\/cs488\\\/ethnicity-classification-model\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/CS-SAD-4-1024x614.png\",\"datePublished\":\"2023-02-01T18:11:46+00:00\",\"dateModified\":\"2025-04-14T18:14:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/2023-2\\\/cs488\\\/ethnicity-classification-model\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/2023-2\\\/cs488\\\/ethnicity-classification-model\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/2023-2\\\/cs488\\\/ethnicity-classification-model\\\/#primaryimage\",\"url\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/CS-SAD-4.png\",\"contentUrl\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/CS-SAD-4.png\",\"width\":1350,\"height\":810},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/2023-2\\\/cs488\\\/ethnicity-classification-model\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Students\",\"item\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"2023\",\"item\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/2023-2\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"CS488\",\"item\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/students\\\/2023-2\\\/cs488\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Oluwademilade Bolatimi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/#website\",\"url\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/\",\"name\":\"CS\\\/DS Student Portfolios\",\"description\":\"AI and ML, Image Classification, Arduino\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Oluwademilade Bolatimi - CS\/DS Student Portfolios","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/","og_locale":"en_US","og_type":"article","og_title":"Oluwademilade Bolatimi - CS\/DS Student Portfolios","og_description":"By: Oluwademilade Bolatimi Abstract: This paper aims to test the effectiveness of applying different machine learning models to accurately detect a person\u2019s ethnicity based on their facial image. This is important due to the lack of research that has been &hellip; Read More","og_url":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/","og_site_name":"CS\/DS Student Portfolios","article_modified_time":"2025-04-14T18:14:53+00:00","og_image":[{"width":1350,"height":810,"url":"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/CS-SAD-4.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/","url":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/","name":"Oluwademilade Bolatimi - CS\/DS Student Portfolios","isPartOf":{"@id":"https:\/\/portfolios.cs.earlham.edu\/#website"},"primaryImageOfPage":{"@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/#primaryimage"},"image":{"@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/#primaryimage"},"thumbnailUrl":"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/CS-SAD-4-1024x614.png","datePublished":"2023-02-01T18:11:46+00:00","dateModified":"2025-04-14T18:14:53+00:00","breadcrumb":{"@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/#primaryimage","url":"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/CS-SAD-4.png","contentUrl":"https:\/\/portfolios.cs.earlham.edu\/wp-content\/uploads\/2023\/04\/CS-SAD-4.png","width":1350,"height":810},{"@type":"BreadcrumbList","@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/ethnicity-classification-model\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/portfolios.cs.earlham.edu\/"},{"@type":"ListItem","position":2,"name":"Students","item":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/"},{"@type":"ListItem","position":3,"name":"2023","item":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/"},{"@type":"ListItem","position":4,"name":"CS488","item":"https:\/\/portfolios.cs.earlham.edu\/index.php\/students\/2023-2\/cs488\/"},{"@type":"ListItem","position":5,"name":"Oluwademilade Bolatimi"}]},{"@type":"WebSite","@id":"https:\/\/portfolios.cs.earlham.edu\/#website","url":"https:\/\/portfolios.cs.earlham.edu\/","name":"CS\/DS Student Portfolios","description":"AI and ML, Image Classification, Arduino","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/portfolios.cs.earlham.edu\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"Bolatimi","author_link":"https:\/\/portfolios.cs.earlham.edu\/index.php\/author\/dpbolat19\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"By: Oluwademilade Bolatimi Abstract: This paper aims to test the effectiveness of applying different machine learning models to accurately detect a person\u2019s ethnicity based on their facial image. This is important due to the lack of research that has been &hellip; Read More","_links":{"self":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/pages\/7949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/comments?post=7949"}],"version-history":[{"count":19,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/pages\/7949\/revisions"}],"predecessor-version":[{"id":9848,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/pages\/7949\/revisions\/9848"}],"up":[{"embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/pages\/5058"}],"wp:attachment":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/media?parent=7949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}