Academy & Industry Research Collaboration Center (AIRCC)

Volume 11, Number 14, September 2021

An Intelligent Mobile Application to Automate the Analysis of Food Calorie
using Artificial Intelligence and Deep Learning

  Authors

Yongqing Yu1, Yishan Zou2 and Yu Sun3, 1BASIS International School Park Lane Harbour, China, 2University of Pennsylvania, USA, 3California State Polytechnic University,USA

  Abstract

As obesity becomes increasingly common worldwide [9], more and more people want to lose weight – for both their health and their image. According to the Centers for Disease Control and Prevention (CDC), long-term changes in daily eating habits (such as regarding food/nutrition type, calorie intake) are successful at keeping weights off [10]. Therefore, it would be helpful to have an AI mobile program that identifies the types of food the user consumes and automatically calculates the total calories. This paper examines the development and optimization of an 11-categorical food classification model based on the MobileNet neural network using Python. Specifically, it classifies any food image as one of bread, dairy, dessert, egg product, fried food, meat, noodles, rice, seafood, soup, or fruit/vegetables. Methods of optimization include data preprocessing and learning rate and batch size adjustments. Experimental results show that scaling image inputs to standard size (Python Numpy resize() function), 300 training epochs, dynamic learning rate (start with 0.001 and *0.1 for every 30 epochs), and a batch size of 16 yields our best model of 83.44% accuracy.

  Keywords

Food classification, Python, Data preprocessing, MobileNet, Epochs, Overfitting, Learning rate, Batch size.