Abstract
Accurate food image classification is often critical to accurately monitor the dietary assessment to reduce the risk of different heart-related diseases, obesity, diabetes, and other related health conditions. The accuracy and efficiency of image classification results when using traditional deep learning methods were less than optimal. This research aimed at enhancing the classification and prediction accuracy of food images and reducing the processing time by using the Deep Convolutional Neural Network (DCN) algorithm. The solution starts by using the Modified Loss function, the images are fed into the DCN for features extraction through alternating between convolutional layers and pooling layers, then this is followed by a fully connected layer. Finally, the Softmax function is used to classify the images. The result was compared during the classification phase in the DCN. The proposed solution enhanced the accuracy of the classification by using the regularized loss function and lowered the processing time by decreasing the weights of the neurons in the neural network. Probability score is used as the evaluation metric for the accuracy, and total execution time is used as the evaluation metric for the speed of the algorithm. The combination of deep neural network with regularized cross entropy cost function has improved the fast-food images classification by ahcieving better processing time by 40 ~ 50s and accuracy by 5% in average.
Similar content being viewed by others
References
Bossard L, Guillaumin M, Van Gool L. (2014). Food-101 – mining discriminative components with random forests. European conference on computer vision. Retrieved from https://www.vision.ee.ethz.ch/datasets_extra/food-101/
Chen Y, Tao J, Liu L (2020) Research of improving semantic image segmentation based on a feature fusion model. J Ambient Intell Human Comput 2020. https://doi.org/10.1007/s12652-020-02066-z
Ciocca G, Napoletano P, Schettini R (2017) Food recognition: a new dataset, experiments and results. IEEE J Biomed Health Inform 21(3):588–599. https://doi.org/10.1109/JBHI.2016.2636441
Emmanuel WRS, Minija SJ (2018) Fuzzy clustering and Whale-based neural network to food recognition and calorie estimation for daily dietary assessment. Sadhana 43(78):1–19. https://doi.org/10.1007/s12046-018-0865-3Sad
Graesser L (2016) Regularization for Neural Networks. Retrieved from https://learningmachinelearningdotorg.files.wordpress.com/2016/07/regularization.pdf
Khaw HY, Soon FC, Chuah JH, Chow CO (2017) Image noise types recognition using convolutional neural network with principal components analysis. IET Image Process 11(12):1238–1245. https://doi.org/10.1049/iet-ipr.2017.0374
Laarhoven TV (2017) L2 Regularization versus Batch and Weight Normalization. Retrieved from https://arxiv.org/pdf/1706.05350.pdf
Lee MC, Chiu SY, Chang JW (2016) A deep convolutional neural network based Chinese menu recognition app. Inf Process Lett 128:14–20. https://doi.org/10.1016/j.ipl.2017.07.010
Liang H, Gao Y, Sun Y, Sun X (2018) CEP: calories estimation from food photos. Int J Comput Appl:1–9. https://doi.org/10.1080/1206212X.2018.1486558
Liu C, Cao Y, Luo Y, Chen G, Vokkarane V, Yunsheng M, Chen S, Hou P (2018) A new deep learning-based food recognition system for dietary assessment on an edge computing service infrastructure. IEEE Trans Serv Comput 11(2):249–260 Retrieved from www.ieee.org/publications_standards/publications/rights/index.html
Lu X, Wang W, Shen J, Crandall D, Luo J (2020) Zero-Shot Video Object Segmentation with Co-Attention Siamese Networks. IEEE Trans Pattern Anal Mach Intell. https://doi.org/10.1109/TPAMI.2020.3040258
Lu X, Ma C, Shen J, Yang X, Reid I, Yang M Deep Object Tracking with Shrinkage Loss. IEEE Trans Pattern Anal Mach Intell. https://doi.org/10.1109/TPAMI.2020.3041332
McAllister P, Zheng H, Bond R, Moorhead A (2018) Combining deep residual neural network features with supervised machine learning algorithms to classify diverse food image datasets. Comput Biol Med 95:217–233. https://doi.org/10.1016/j.compbiomed.2018.02.008
Mezgec S, Seljak BK (2017) NutriNet: a deep learning food and drink image recognition system for dietary assessment. Nutrients 9(657):1–19. https://doi.org/10.3390/nu9070657
Mezgec S, Eftimov T, Bucher T, Seljak BK (2018) Mixed deep learning and natural language processing method recognition recognition and standardization to help automated dietary assessment. Publ Health Nutr:1–10. https://doi.org/10.1017/S1368980018000708
Minija SJ, Emmanuel WRS (2017) Neural network classifier and multiple hypothesis image segmentation for dietary assessment using calorie calculator. Imaging Sci J 65(7):379–392. https://doi.org/10.1080/13682199.2017.1356610
Murphy J (2016). An overview of convolutional neural network architectures for deep learning. Semantic scholar. Retrieved from https://www.semanticscholar.org/paper/An-Overview-of-Convolutional-Neural-Network-for-Murphy/64db333bb1b830f937b47d786921af4a6c2b3233
Nielsen MA (2015). Neural network and deep learning. Determination press. Retrieved from https://apps.csu.edu.au/reftool/apa-6/book#single-author.
Ochiai T, Matsuda S, Watanabe H, Katagiri S (2016) Automatic node selection for Deep neural networks using group Lasso regularization. Retrieved from https://arxiv.org/pdf/1611.05527.pdf
O'Shea K, Nash R (2015) An introduction to convolutional neural networks. ArXiv e-prints. Retrieved from https://www.researchgate.net/publication/285164623
Pelt DM, Sethian JA (2017) A mixed-scale dense convolutional neural network for image analysis. Pnas 115(2):254–259 Retrieved from http://www.pnas.org/content/suppl/2017/12/21/1715832114.DCSupplemental
Podutwar AA, Pawar PD, Shinde AV (2017) A Food Recognition System for Calorie Measurement. Int J Adv Res Comput Commun Eng 6(1):243–248. https://doi.org/10.17148/IJARCCE.2017.6146
Poernomo A, Kang DK (2018) Biased dropout and Crossmap dropout: learning towards effective dropout regularization in convolutional neural network. Neural Networks 104:60–67. https://doi.org/10.1016/j.neunet.2018.03.016
Pouladzadeh P, Shirmohammadi S (2017) Mobile Multi-Food Recognition Using Deep Learning. ACM Trans. Multimedia Comput Commun Appl 13(3s):36:1–36:21. https://doi.org/10.1145/3063592
Salvador A, Drozdzal M, Giro-i-Nieto X, Romero A (2019) "inverse cooking: recipe generation from food images," 2019 IEEE/CVF conference on computer vision and Pattern recognition (CVPR). Long Beach, CA, USA 2019:10445–10454. https://doi.org/10.1109/CVPR.2019.01070
Sun X, Qian H (2016) Chinese herbal medicine image recognition and retrieval by convolutional neural network. PLoS One 11(6):1–19. https://doi.org/10.1371/journal.pone.0156327
Zhang XJ, Lu YF, Zhang SH (2016) Multi-task learning for food identification and analysis with deep convolutional neural networks. J Comput Sci Technol 31(3):489–500. https://doi.org/10.1007/s11390-016-1642-
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendix
Appendix
Rights and permissions
About this article
Cite this article
Lohala, S., Alsadoon, A., Prasad, P.W.C. et al. A novel deep learning neural network for fast-food image classification and prediction using modified loss function. Multimed Tools Appl 80, 25453–25476 (2021). https://doi.org/10.1007/s11042-021-10916-x
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-021-10916-x