Abstract
In the fast-moving world, obesity has become a major health issue to the human beings. BMI defines the obesity when it is greater than 30 kg/m2. Obesity leads to many diseases like high cholesterol, liver failure, knee problems, diabetes, and sometimes cancer. When the patient eats healthy food, the obesity can be controlled. The obesity problem can be addressed when there is a system that monitors the food consumed by the patient automatically and gives the suggestion periodically to the patient in treatment of obesity. Many of the people find difficulty in monitoring their food intake periodically, due to less knowledge in nutrition and self-control. In this chapter, identification of food type is made and estimation of calorie is done using MLP and proposes the results. Single food item types were considered previously, but here mixed food item types are considered. Region of Interest (ROI) is used to identify the mixed food item type. The next step includes feature extraction process. The extracted feature image is fed into MLP classification to classify the food image. The volume of the food is used to calculate the calories present in the food. The implementation is processed in MATLAB with 1000 fruit images containing 6 food classes with good accuracy. The automatic dietary control is made available for the diabetic patients.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
In recent years, the numbers of diabetic patients are increasing due to lack of knowledge in diet control. The most important cause of diabetes is the less insulin production in the human body. This leads to many of the diseases like continuous urination, increased blood pressure, loss of weight, and sometimes cardiac arrest. These enable us to develop the system to educate the people to have proper healthy foods every day. The proper system is built in MATLAB to food-type recognition and estimate food calories consumed.
2 Related Work
The clustering techniques have been proposed to identify the food types. To segment the food item, affinity propagation and unsupervised clustering method have been adopted. The affinity propagation with agglomerative hierarchical clustering (AHC) obtains 95% of accuracy. The Monitoring of Ingestive Behavior model has built to monitor and estimate the calories [1]. The input food images have been taken from smartphones with single and mixed food items and fed into training and testing. The preprocessing steps are carried first, followed by vision-based segmentation done, and deep learning algorithm applied to estimate calories [2]. In the input food image, chopstick is used as a reference for measurement. The density-based database of the food is considered to evaluate the food volume, weight, and calorie estimation. The estimated weight and calories’ relative average error rate are 6.65% and 6.70% [3]. The two datasets have been collected and trained with single-task and multitask CNN. The above multitask CNN classifiers achieved good results in food identification and calorie estimation than single-task CNN [4]. The top 10 Thai curries are considered. The segmented image is fed into the fuzzy logic to identify the ingredients based on their intensities and boundaries. The calories are calculated by sum of all the ingredient calories [5].
3 Proposed Work
The proposed technique has been divided into two phases as the training phase and the testing phase. The input image is resized using the scaling technique. Feature extraction consists of the SIFT method, Gabor Filter, and color histogram. The feature extraction is converted into the classification that implements the segmented process and MLP, and these processes are implemented in testing phase. After the classification procedure, the total area computation and the volume measurements are identified for producing the calorie estimate. The entire process is demonstrated in Fig. 1.
3.1 Algorithm – Multilayer Perceptron Neural Networks
Initialize all neurons (vih) and weights (whj.)
Run=1
While (Run)
Do{
Store all w and v.
Epoch=epoch+1 /*training*/
For all (xt, rt) ∈ Xtraining in random order.
For all hidden nodes zh,
For all output nodes yi
For all weights vih
For all weights wih
For all (xt, rt) ∈ XValidating
For all hidden nodes zh,
For all output nodes yi
If err(epoch)>err (epoch-1)
Run=0
}
For all (xt, rt) ∈ Xtesting
For all hidden nodes zh,
For all output nodes yi
If y==r
“Successfully recognized”
Else
“Failed to recognize”
3.2 Multilayer Perceptron Neural Network
Multilayer perceptron neural network working principle is relatively based on the human brain and belongs to feed forward NN. Normally a human brain stores the information as the pattern and gains the knowledge to solve the complex problems by experience and it is demonstrated in Fig. 2.
The multilayer perceptron neural network recognizes the patterns by supervised training algorithm fed forward from input to output layers. Activation function is computed as given in Eq. (1).
4 Performance Evaluation
The proposed work is carried out in MATLAB with six food classes. Here, precision and recall are identified for different food classes for SVM and MLP based classifier to have better results. The accuracy is tested using F-measure. The F-measure is calculated by taking the precision and recall values of each class and is shown in Table 1.
5 Conclusion
In this proposed work, identification of food type is made and estimation of calorie is done using MLP and the results proposed. Single food item types were considered previously, but here mixed food item types are taken to have better results. The implementation is processed in MATLAB with 1000 fruit images containing 6 food classes with good accuracy. The automatic dietary control is made available for diabetic patients.
References
P. Lopez-Meyer, S. Schuckers, O. Makeyev, J.M. Fontana, E. Sazonov, Automatic identification of the number of food items in a meal using clustering techniques based on the monitoring of swallowing and chewing. Biomed. Signal. Process. Control 7(5), 474–480 (2012)
P. Pouladzadeh, A. Yassine, FooDD: Food detection dataset for calorie measurement using food images. Lect. Notes Comput. Sci, 550–554 (2015)
E.A.H. Akpa, H. Suwa, Y. Arakawa, K. Yasumoto, Smartphone-based food weight and calorie estimation method for effective food journaling. SICE J. Control Meas. Syst. Integr. 10(5), 360–369 (2017)
Takumi Ege, Keiji Yanai, Image-Based Food Calorie Estimation Using Knowledge on Food Categories, Ingredients and Cooking Directions, Association for Computing Machinery, 2017, pp. 367–375
S. Turmchokkasam, K. Chamnongthai, The design and implementation of an ingredient based food calorie estimation system using nutrition knowledge and fusion of brightness and heat information. IEEE Access 6, 46863–46876 (2018)
Acknowledgments
This work has supported by the National Research Foundation of Korea (NRF) grant funded by the Korean government (MSIT) (No. NRF-2019R1F1A1058715).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Kumar, R.D., Julie, E.G., Robinson, Y.H., Seo, S. (2021). Food-Type Recognition and Estimation of Calories Using Neural Network. In: Arabnia, H.R., Ferens, K., de la Fuente, D., Kozerenko, E.B., Olivas Varela, J.A., Tinetti, F.G. (eds) Advances in Artificial Intelligence and Applied Cognitive Computing. Transactions on Computational Science and Computational Intelligence. Springer, Cham. https://doi.org/10.1007/978-3-030-70296-0_65
Download citation
DOI: https://doi.org/10.1007/978-3-030-70296-0_65
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-70295-3
Online ISBN: 978-3-030-70296-0
eBook Packages: Computer ScienceComputer Science (R0)