scholarly journals An 11-Categorical AI Food Classification Model Based on Mobile-Net Neural Networks

2021 ◽  
Vol 3 (4) ◽  
pp. 93-103
Author(s):  
Yongqing Yu ◽  
Yishan Zou ◽  
Yu Sun

As obesity becomes increasingly common worldwide [1], more people want to lose weight to improve their health and 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 [2]. Therefore, it would be helpful to have an artificial intelligence (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 Mobile-Net 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.

2021 ◽  
Author(s):  
Yongqing Yu ◽  
Yishan Zou ◽  
Yu Sun

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.


2019 ◽  
Vol 13 ◽  
pp. 174830261984576
Author(s):  
Ningjia Qiu ◽  
Zhuorui Shen ◽  
Xiaojuan Hu ◽  
Peng Wang

Memory limitation and slow training speed are two important problems in sentiment analysis. In this paper, we propose a sentiment classification model based on online learning to improve the training speed of the sentiment classification. First, combining the adaptive adjustment of learning rate of the Adadelta algorithm and the characteristics of avoid frequent jitter of Adam algorithm in the later stage of training, we present a novel Adamdelta algorithm. It solves the problem that learning rate of traditional follow the regularized leader (FTRL)-Proximal online learning algorithm will disappear with the increase of training times. Moreover, we gain an optimized logistic regression (LR) model and use it to the sentiment classification of online learning. Finally, we compare the proposed algorithm with five similar models with the experimental data of the IMDb movie review dataset. Experimental results show that the improved algorithm has better classification effect and can effectively improve the precision and recall of the classifier.


2014 ◽  
Vol 2 (4) ◽  
pp. 63-70 ◽  
Author(s):  
Danyel Jennen ◽  
Jan Polman ◽  
Mark Bessem ◽  
Maarten Coonen ◽  
Joost van Delft ◽  
...  

2021 ◽  
Vol 79 ◽  
pp. S346-S347
Author(s):  
F. Gómez Palomo ◽  
D.G. Ordaz Jurado ◽  
A. Budía Alba ◽  
D. Vivas-Consuelo ◽  
P. Bahilo Mateu ◽  
...  

Sign in / Sign up

Export Citation Format

Share Document