Convolutional Neural Network with Transfer Learning for Classification of Food Types in Tray Box Images

∗Food is one of the primary needs that cannot be separated from people’s lives. The various food types tend to increase every day, directly proportional to the human need for food increases as well. However, the lack of knowledge of the diversity of types of food is still common. It will cause nutrition and food problems for the community. Therefore, artificial intelligence with image processing techniques and computer vision that can recognize types of food can help people recognize various types of food. So, in this study, an image processing technique based on an artificial neural network, namely a Convolutional Neural Network (CNN) with transfer learning methods is used to classify the types of food in the tray box images. The use of the transfer learning method aims to overcome the problem of lack of training data for food images by utilizing the weights from the training model using the ImageNet dataset so that the model can be retrained using training data with minimum duration. The transfer learning models used in this research are ResNet-18 and GoogLeNet. The image data used are 304 food image data segmented from food images in 76 tray boxes divided into four classes: blank, fried rice, egg, and cucumber with 242 training data, 29 validation data, and 33 test data. The test is carried out using each model with the epoch having the best validation accuracy of 1. The 3rd epoch of the ResNet-18 model gets test results with an accuracy of 1, precision of 1, recall of 1, and F1-score of 1. The 12th epoch of the GoogLeNet model gets test results with an accuracy of 0.9845, precision of 0.9722, recall of 0.9808, and F1-score of 0.9752. Based on these results, it can be concluded that the CNN model with the transfer learning method can be used to classify the types of food in the tray box images.

[1]  Shiqin Zhang,et al.  Fast auto-clean CNN model for online prediction of food materials , 2017, J. Parallel Distributed Comput..

[2]  Hermina Hermina,et al.  Pengetahuan, Sikap dan Perilaku Individu Tentang Makanan Beraneka Ragam sebagai Salah Satu Indikator Keluarga Sadar Gizi (KADARZI) , 2016 .

[3]  Heekuck Oh,et al.  Neural Networks for Pattern Recognition , 1993, Adv. Comput..

[4]  Sudanthi N. R. Wijewickrema,et al.  An Exploration of Deep Transfer Learning for Food Image Classification , 2018, 2018 Digital Image Computing: Techniques and Applications (DICTA).

[5]  Youngwook Kim,et al.  Micro-Doppler Based Classification of Human Aquatic Activities via Transfer Learning of Convolutional Neural Networks , 2016, Sensors.

[6]  Danlei Xu,et al.  A transfer learning method using speech data as the source domain for micro-Doppler classification tasks , 2020, Knowl. Based Syst..

[7]  Yuita Arum Sari,et al.  Automatic Food Leftover Estimation in Tray Box Using Image Segmentation , 2019, 2019 International Conference on Sustainable Information Engineering and Technology (SIET).

[8]  Jian Sun,et al.  Deep Residual Learning for Image Recognition , 2015, 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[9]  Yevita Nurti KAJIAN MAKANAN DALAM PERSPEKTIF ANTROPOLOGI , 2017 .

[10]  Dumitru Erhan,et al.  Going deeper with convolutions , 2014, 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[11]  Alex A. Freitas,et al.  A review of performance evaluation measures for hierarchical classifiers , 2007 .

[12]  Paolo Napoletano,et al.  CNN-based features for retrieval and classification of food images , 2018, Comput. Vis. Image Underst..

[13]  Yuita Arum Sari,et al.  Multi-Food Recognition in Single Tray Box Image With Scarcity Data Using Convolutional Neural Network , 2020, IICST.

[14]  Taskeed Jabid,et al.  Food Image Classification with Convolutional Neural Network , 2018, 2018 International Conference on Intelligent Informatics and Biomedical Sciences (ICIIBMS).

[15]  Touradj Ebrahimi,et al.  Food/Non-food Image Classification and Food Categorization using Pre-Trained GoogLeNet Model , 2016, MADiMa @ ACM Multimedia.

[16]  Tareq Abed Mohammed,et al.  Understanding of a convolutional neural network , 2017, 2017 International Conference on Engineering and Technology (ICET).