SlideShare a Scribd company logo
Estimating Calorie Content in Food
Dishes using Transfer Learning
Neural Networks
Ali Abul Hawa
2
Difficulty in this project/dataset: many food dishes look very similar
Beef noodleRamen noodle
3
4
Low-level
features
Higher-level
features
Output
Classification
Layers
1.2M images
1000 classes
16 Layers
VGG16, 16 layers: 3 weeks on 4 GPUs Titan Black ~$6000
My computer (~ g2.2xlarge AWS) : ~ 30 weeks
TRANSFER
LEARNING
5
Low-level
features
Higher-level
features
Custom
Output
Classification
Layers
15 Layers
100
Food
classifier
Train custom classification layer ~52%
TRANSFER
LEARNING
6
Low-level
features
Higher-level
features
Custom
Output
Classification
Layers
15 Layers
100
Food
classifier
Train classification layer + highest level
feature layer
~ 70% top-1, 92% top-5 accuracy
in 30 hours ≪ 30 weeks
TRANSFER
LEARNING
TRANSFER
LEARNING
Why transfer learning?
Time
Works well even on small datasets.
However, need to use image augmentations to
prevent overfitting!
7
8
Live Demo …
… Thanks!

More Related Content

Viewers also liked

BMS Brief SUN Civil Society Cambodia - Media final
BMS Brief SUN Civil Society Cambodia - Media finalBMS Brief SUN Civil Society Cambodia - Media final
BMS Brief SUN Civil Society Cambodia - Media final
SUN Civil Society Network
 
R. Villano - Las fotos ES (p.2)
R. Villano - Las fotos ES (p.2)R. Villano - Las fotos ES (p.2)
R. Villano - Las fotos ES (p.2)
Raimondo Villano
 
Across the corporate universe - Maciej Plonka | UX Riga 2016
Across the corporate universe - Maciej Plonka | UX Riga 2016Across the corporate universe - Maciej Plonka | UX Riga 2016
Across the corporate universe - Maciej Plonka | UX Riga 2016
UX Riga
 
Mobile That Counts
Mobile That CountsMobile That Counts
Mobile That Counts
DigitasLBi Paris
 
R. Villano - Foto (p.te 2)
R. Villano  - Foto (p.te 2)R. Villano  - Foto (p.te 2)
R. Villano - Foto (p.te 2)
Raimondo Villano
 
Generic Solving Of Text Based Captcha
Generic Solving Of Text Based CaptchaGeneric Solving Of Text Based Captcha
Generic Solving Of Text Based Captcha
karanwayne
 
Patents
PatentsPatents
Patents
sayednahid
 
Captcha-recognition-with-active-deep-learning
Captcha-recognition-with-active-deep-learningCaptcha-recognition-with-active-deep-learning
Captcha-recognition-with-active-deep-learning
crew1274
 
Servicios Agiles
Servicios AgilesServicios Agiles
Servicios Agiles
ASPgems
 
Hand in Hand Workshops
Hand in Hand WorkshopsHand in Hand Workshops
Hand in Hand Workshops
Meena Baluja
 
النشرة الإلكترونية الشهرية - العدد 26 - أيلول/ 2016 - جمعية الإرشاد والإصلاح
النشرة الإلكترونية الشهرية - العدد 26 - أيلول/ 2016 - جمعية الإرشاد والإصلاحالنشرة الإلكترونية الشهرية - العدد 26 - أيلول/ 2016 - جمعية الإرشاد والإصلاح
النشرة الإلكترونية الشهرية - العدد 26 - أيلول/ 2016 - جمعية الإرشاد والإصلاح
جمعية الإرشاد والإصلاح الخيرية الإسلامية
 
10 Insights to Deliver Amazing Customer Service
10 Insights to Deliver Amazing Customer Service10 Insights to Deliver Amazing Customer Service
10 Insights to Deliver Amazing Customer Service
Desk
 
Transfer of Learning
Transfer of LearningTransfer of Learning
Transfer of LearningAbby Rondilla
 

Viewers also liked (14)

BMS Brief SUN Civil Society Cambodia - Media final
BMS Brief SUN Civil Society Cambodia - Media finalBMS Brief SUN Civil Society Cambodia - Media final
BMS Brief SUN Civil Society Cambodia - Media final
 
R. Villano - Las fotos ES (p.2)
R. Villano - Las fotos ES (p.2)R. Villano - Las fotos ES (p.2)
R. Villano - Las fotos ES (p.2)
 
Across the corporate universe - Maciej Plonka | UX Riga 2016
Across the corporate universe - Maciej Plonka | UX Riga 2016Across the corporate universe - Maciej Plonka | UX Riga 2016
Across the corporate universe - Maciej Plonka | UX Riga 2016
 
Mobile That Counts
Mobile That CountsMobile That Counts
Mobile That Counts
 
R. Villano - Foto (p.te 2)
R. Villano  - Foto (p.te 2)R. Villano  - Foto (p.te 2)
R. Villano - Foto (p.te 2)
 
Generic Solving Of Text Based Captcha
Generic Solving Of Text Based CaptchaGeneric Solving Of Text Based Captcha
Generic Solving Of Text Based Captcha
 
Patents
PatentsPatents
Patents
 
Captcha-recognition-with-active-deep-learning
Captcha-recognition-with-active-deep-learningCaptcha-recognition-with-active-deep-learning
Captcha-recognition-with-active-deep-learning
 
Servicios Agiles
Servicios AgilesServicios Agiles
Servicios Agiles
 
Hand in Hand Workshops
Hand in Hand WorkshopsHand in Hand Workshops
Hand in Hand Workshops
 
النشرة الإلكترونية الشهرية - العدد 26 - أيلول/ 2016 - جمعية الإرشاد والإصلاح
النشرة الإلكترونية الشهرية - العدد 26 - أيلول/ 2016 - جمعية الإرشاد والإصلاحالنشرة الإلكترونية الشهرية - العدد 26 - أيلول/ 2016 - جمعية الإرشاد والإصلاح
النشرة الإلكترونية الشهرية - العدد 26 - أيلول/ 2016 - جمعية الإرشاد والإصلاح
 
10 Insights to Deliver Amazing Customer Service
10 Insights to Deliver Amazing Customer Service10 Insights to Deliver Amazing Customer Service
10 Insights to Deliver Amazing Customer Service
 
Grow model ppt
Grow model pptGrow model ppt
Grow model ppt
 
Transfer of Learning
Transfer of LearningTransfer of Learning
Transfer of Learning
 

Recently uploaded

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 

Recently uploaded (20)

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 

Transfer Learning Neural Network implementation for food recognition

Editor's Notes

  1. Summary: multiclass classification of food images using transfer learning deep neural networks. From an image predict the food inside it, and return the calorie content per serving Why? I chose to work with neural networks because they can do fascinating work, and I believe thy are amazing. Also, I wanted to do something challenging… I’m still learning a lot about them, and there is much more to learn. Why food prediction? It’s a nice idea. Most people want a healthy lifestyle, including food habits, the way to do that is by knowing at least the calories before consuming them. When I mentioned this to some ladies, they were excited about it, and they wanted the product now. Importance: this can used with different applications, and uses: for example, it can be an added End game: classify images into 1 of 100 classes… easy, right? No …….explain Dataset description: Number of classes 100 Number of images 14600 # images/class ~ 150 Size of images varies from 80x140 -> 800x800
  2. Main Idea of transfer learning: use a NN that has been pre-trained intensively on a huge dataset for any class/types. Use the super capabilities of this NN in extracting image features, such as lines, edges, blobs, shapes, …etc Remove the last layer (classifier) designed for a particular image classification problem, such as faces/animals/cars. Use this NN as a feature extraction device connected in between your images and your custom NN (classifier) Further improvement by fine-tune training the last layer of the super-pre-trained NN. -> quick + accurate