Recommendation Method Based on Glycemic Index for Intake Order of Foods Detected by Deep Learning
Abstract
:1. Introduction
- Recommendation system for food intake order based on GI: We implemented a recommendation system for food intake order using an object detection model based on GIs. The proposed method can suggest a food intake order to prevent blood sugar spikes.
- GI Estimation for foods that are not found in databases: We proposed a GI estimation for foods whose types or GIs are not found in the GI database. The undetected foods are classified into the one of the predefined categories based on major nutrients, and then the corresponding GIs are determined by representative values of their categories.
- Visualization of food information analysis: A user-friendly web application was designed to visualize food information including food types, GIs, and a recommended food intake order. Users can conveniently check this information by uploading a food image.
2. Related Work
2.1. Food Detection and Classification Based on Deep Learning
2.2. Food Detection Models
3. Proposed Method
3.1. Food Detection Through Object Detection Model
3.2. Food Intake Order Recommendation Based on GI
GI Estimation Based on Food Category
3.3. Web Application
4. Experiment
4.1. Dataset
4.2. Performance Comparison Evaluation of Mask R-CNN and YOLOv11
5. Discussion
5.1. Detection Results for Similar Foods
5.2. Selection of Food Detection Model
5.3. Comparison with Previous Methods
- Recommendation system for food intake order based on GI: The proposed method can accurately identify foods in a given image and find their corresponding GIs, which are indicators of the amount of carbohydrates in foods. The food intake order is presented based on GI, according to a theory that suggests consuming low carbohydrate foods can delay blood sugar increases. Therefore, the proposed method can help prevent blood sugar spikes.
- GI estimation for foods that are not found in database: It is necessary to estimate food GIs when they are missing from the database. The proposed method searches the nutritional information of their corresponding foods using the public food information API. Subsequently, the categories are determined based on their main nutrition, and the representative GIs of these categories are assigned to the missing foods. Table 7 shows the intake order recommendation results for foods that are not in the GI database in Figure 16. The recommended intake order based on the GI estimation is as follows: pickles, salad, pork cutlet, rice, miso, and sweet potato. This food intake order appears to effectively suppress blood sugar spikes to some extent because it aligns with the order of foods with lower carbohydrate content.
- Visualization of food information analysis: We implemented a user-friendly web application that provides comprehensive food information, including food names, GIs, and food intake order, all presented in an intuitive and easy-to-understand format.
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Conflicts of Interest
References
- Giugliano, D.; Ceriello, A.; Esposito, K. Glucose metabolism and hyperglycemia. Am. J. Clin. Nutr. 2008, 87, 217S–222S. [Google Scholar] [CrossRef] [PubMed]
- Stentz, F.B.; Brewer, A.; Wan, J.; Garber, C.; Daniels, B.; Sands, C.; Kitabchi, A.E. Remission of pre-diabetes to normal glucose tolerance in obese adults with high protein versus high carbohydrate diet: Randomized control trial. BMJ Open Diabetes Res. Care 2016, 4, e000258. [Google Scholar] [CrossRef] [PubMed]
- O’Keefe, J.H.; Gheewala, N.M.; O’Keefe, J.O. Dietary strategies for improving post-prandial glucose, lipids, inflammation, and cardiovascular health. J. Am. Coll. Cardiol. 2008, 51, 249–255. [Google Scholar] [CrossRef] [PubMed]
- Mulmuliana, M.; Rachmawati, R. Dampak konsumsi pangan tinggi kandungan indeks glikemik dengan kejadian diabetes mellitus tipe-II di Kabupaten Pidie. J. SAGO Gizi Kesehat. 2022, 3, 163–167. [Google Scholar] [CrossRef]
- Pot, G.K.; Almoosawi, S.; Stephen, A.M. Meal irregularity and cardiometabolic consequences: Results from observational and intervention studies. Proc. Nutr. Soc. 2016, 75, 475–486. [Google Scholar] [CrossRef] [PubMed]
- Park, M.H.; Chung, S.J.; Shim, J.E.; Jang, S.H.; Nam, K.S. Effects of macronutrients in mixed meals on postprandial glycemic response. J. Nutr. Health 2018, 51, 31–39. [Google Scholar] [CrossRef]
- Brennan, C.S. Dietary fibre, glycaemic response, and diabetes. Mol. Nutr. Food Res. 2005, 49, 560–570. [Google Scholar] [CrossRef]
- Widyasari, D.E.; Indarto, D. Vegetables Consumption Before Carbohydrates Improves Daily Fiber Intake and Blood Sugar Levels in Patients with Type 2 Diabetes Mellitus. In Proceedings of the International Conference on Health and Medical Sciences (AHMS 2020), Yogyakarta, Indonesia, 29–30 June 2020; Atlantis Press: Paris, France, 2021; pp. 132–135. [Google Scholar]
- Touhamy, S.; Karan, A.; Leela, K.V.; Hootman, K.C. Carbohydrates-Last Food Order Improves Time in Range and Reduces Glycemic Variability. Diabetes Care 2024, 48, 15–16. [Google Scholar] [CrossRef]
- Jenkins, D.J.; Wolever, T.M.; Taylor, R.H.; Barker, H.; Fielden, H.; Baldwin, J.M.; Bowling, A.C.; Newman, H.C.; Jenkins, A.L.; Goff, D.V. Glycemic index of foods: A physiological basis for carbohydrate exchange. Am. J. Clin. Nutr. 1981, 34, 362–366. [Google Scholar] [CrossRef]
- Wolever, T.M. The glycemic index. World Rev. Nutr. Diet. 1990, 62, 120–185. [Google Scholar] [CrossRef] [PubMed]
- Agapito, G.; Simeoni, M.; Calabrese, B.; Caré, I.; Lamprinoudi, T.; Guzzi, P.H.; Cannataro, M. DIETOS: A dietary recommender system for chronic diseases monitoring and management. Comput. Methods Programs Biomed. 2018, 153, 93–104. [Google Scholar] [CrossRef] [PubMed]
- Bianchini, D.; De Antonellis, V.; De Franceschi, N.; Melchiori, M. PREFer: A prescription-based food recommender system. Comput. Stand. Interfaces 2017, 54, 64–75. [Google Scholar] [CrossRef]
- Al-Nazer, A.; Helmy, T.; Al-Mulhem, M. User’s Profile Ontology-Based Semantic Framework for Personalized Food and Nutrition Recommendation. Procedia Comput. Sci. 2014, 32, 101–108. [Google Scholar] [CrossRef]
- Toledo, R.Y.; Alzahrani, A.A.; Martinez, L. A Food Recommender System Considering Nutritional Information and User Preferences. IEEE Access 2019, 7, 96695–96711. [Google Scholar] [CrossRef]
- Espín, V.; Hurtado, M.V.; Noguera, M. Nutrition for Elder Care: A Nutritional Semantic Recommender System for the Elderly. Expert Syst. 2016, 33, 201–210. [Google Scholar] [CrossRef]
- Norouzi, S.; Ghalibaf, A.K.; Sistani, S.; Banazadeh, V.; Keykhaei, F.; Zareishargh, P.; Etminani, K. A Mobile Application for Managing Diabetic Patients’ Nutrition: A Food Recommender System. Arch. Iran. Med. 2018, 21, 466–472. [Google Scholar] [PubMed]
- Suddul, G.; Seguin, J.F.L. A comparative study of deep learning methods for food classification with images. Food Humanit. 2023, 1, 800–808. [Google Scholar] [CrossRef]
- Tan, M.; Le, Q. EfficientNetV2: Smaller models and faster training. In Proceedings of the 38th International Conference on Machine Learning, Virtual, 18–24 July 2021; pp. 10096–10106. [Google Scholar]
- Zhang, Y.; Deng, L.; Zhu, H.; Wang, W.; Ren, Z.; Zhou, Q.; Wang, S. Deep learning in food category recognition. Inf. Fusion 2023, 98, 101859. [Google Scholar] [CrossRef]
- Pan, L.; Pouyanfar, S.; Chen, H.; Qin, J.; Chen, S.C. DeepFood: Automatic multi-class classification of food ingredients using deep learning. In Proceedings of the 2017 IEEE 3rd International Conference on Collaboration and Internet Computing, San Jose, CA, USA, 15–17 October 2017; pp. 181–189. [Google Scholar]
- Kiourt, C.; Pavlidis, G.; Markantonatou, S. Deep learning approaches in food recognition. In Machine Learning Paradigms: Advances in Deep Learning-Based Technological Applications; Springer: Cham, Switzerland, 2020; pp. 83–108. [Google Scholar]
- Shen, Z.; Shehzad, A.; Chen, S.; Sun, H.; Liu, J. Machine learning-based approach on food recognition and nutrition estimation. Procedia Comput. Sci. 2020, 174, 448–453. [Google Scholar] [CrossRef]
- Freitas, C.N.; Cordeiro, F.R.; da Silva, A.J. Food recognition system for nutrition monitoring. In Proceedings of the XV Encontro Nacional de Inteligência Artificial e Computacional, Porto Alegre, Brazil, 25–26 October 2018; pp. 186–197. [Google Scholar]
- Chollet, F. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 1251–1258. [Google Scholar]
- Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar]
- Liu, Z.; Zhou, Y.; Xu, Y.; Wang, Z. SimpleNet: A simple network for image anomaly detection and localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 18–22 June 2023; pp. 20402–20411. [Google Scholar]
- Kim, J.H.; Lee, D.S.; Kwon, S.K. Food Classification and Meal Intake Amount Estimation through Deep Learning. Appl. Sci. 2023, 13, 5742. [Google Scholar] [CrossRef]
- He, K.; Gkioxari, G.; Dollár, P.; Girshick, R. Mask R-CNN. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 2961–2969. [Google Scholar]
- Dubrofsky, E. Homography estimation. In Diplomová Práce; University of British Columbia: Vancouver, BC, Canada, 2009; pp. 1–5. [Google Scholar]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. IEEE Trans. Pattern Anal. Mach. Intell. 2016, 39, 1137–1147. [Google Scholar] [CrossRef] [PubMed]
- Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 26 June–1 July 2016; pp. 1–10. [Google Scholar]
- Khanam, R.; Hussain, M. YOLOv11: An Overview of the Key Architectural Enhancements. arXiv 2024, arXiv:2410.17725. [Google Scholar]
- Elfwing, S.; Uchibe, E.; Doya, K. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural Netw. 2018, 107, 3–11. [Google Scholar] [CrossRef] [PubMed]
- Carneiro, L.; Leloup, C. Mens Sana in Corpore Sano: Does the Glycemic Index Have a Role to Play? Nutrients 2020, 12, 2989. [Google Scholar] [CrossRef] [PubMed]
- Korean Food Composition Database. Available online: https://koreanfood.rda.go.kr/eng/fctFoodSrchEng/list (accessed on 26 December 2024).
- LabelMe. Available online: https://github.com/wkentaro/labelme (accessed on 17 January 2025).
- AI-HUB. Available online: https://aihub.or.kr (accessed on 17 January 2025).
- Bottou, L. Stochastic gradient learning in neural networks. In Proceedings of the 4th International Conference on Neural Networks and their Applications (Neuro-Nimes ′91), Nimes, France, 4–8 November 1991; pp. 12–20. [Google Scholar]
- Loshchilov, I.; Hutter, F. Decoupled weight decay regularization. arXiv 2017, arXiv:1711.05101. [Google Scholar]
- Maharana, K.; Mondal, S.; Nemade, B. A review: Data pre-processing and data augmentation techniques. Glob. Transit. Proc. 2022, 3, 91–99. [Google Scholar] [CrossRef]
Food Type | Food Class | Food Nutrient Information (g per 100 g of Food) | Food Category | ||||
---|---|---|---|---|---|---|---|
Dietary Fiber | Protein | Fat | Carbohydrates | Fructose | |||
Carrot | vegetables | 2.60 | 1.03 | 0.18 | 4.26 | 1.63 | Dietary fiber |
Pine nuts | nuts | 4.10 | 15.96 | 59.28 | 19.38 | 0.00 | Fat |
Soybeans | legumes | 10.50 | 17.99 | 6.79 | 12.71 | 0.00 | Protein |
Rice | grains | 0.00 | 2.40 | 0.00 | 35.70 | 0.00 | Carbohydrates |
Peach | fruits | 0.59 | 0.04 | 0.00 | 13.10 | 3.96 | Fructose |
Food Category | Number of Food | Minimum GI | Maximum GI | Median GI |
---|---|---|---|---|
Dietary fiber | 9 | 14 | 39 | 23 |
Protein | 15 | 24 | 53 | 37 |
Fat | 8 | 13 | 27 | 24 |
Carbohydrates | 169 | 23 | 96 | 57 |
Fructose | 55 | 22 | 80 | 50 |
Food Name | Actual GI | Estimated GI |
---|---|---|
Grape | 43 | 50 |
Oats | 57 | 57 |
Tomato | 31 | 23 |
Cashew nuts | 27 | 24 |
Food Category | Number of Food | |||
---|---|---|---|---|
Before Data Augmentation | After Data Augmentation | |||
In Captured Images | From Open Database | Total | ||
Dietary fiber | 1058 | 200 | 1258 | 5032 |
Protein | 592 | 200 | 792 | 3168 |
Fat | 29 | 300 | 329 | 1316 |
Carbohydrates | 481 | 250 | 731 | 2924 |
Fructose | 34 | 200 | 234 | 936 |
Total | 2194 | 1150 | 3344 | 13,376 |
Model | Detection Time (ms) | Accuracy | IoU | Precision | Recall | F1-Score |
---|---|---|---|---|---|---|
Mask R-CNN | 57.1 ± 14.6 | 98.99% | 93.88% | 98.20% | 97.56% | 97.88% |
YOLOv11 | 24.4 ± 17.5 | 91.72% | 93.37% | 93.95% | 91.04% | 92.47% |
Data Augmentation | Accuracy | IoU | Precision | Recall | F1 Score |
---|---|---|---|---|---|
No | 85.94% | 86.43% | 87.58% | 86.16% | 86.16% |
Yes | 91.72% | 93.37% | 93.95% | 91.04% | 92.47% |
Food Type | Food Class | Food Nutrient Information (g per 100 g of Food) | Food Category | Estimated GI | Intake Order | ||||
---|---|---|---|---|---|---|---|---|---|
Dietary Fiber | Protein | Fat | Carbohydrates | Fructose | |||||
Pork cutlet | meat | 0.0 | 22.73 | 8.18 | 18.18 | 0.00 | Protein | 37 | 3 |
Pickle | vegetable | 2.1 | 0.48 | 0.48 | 3.56 | 10.78 | Dietary fiber | 23 | 1 |
Rice | grains | 0.9 | 2.50 | 0.20 | 46.20 | 0.00 | Carbohydrates | 57 | 4 |
Miso | grains | 0.4 | 12.5 | 6.25 | 50.00 | 0.23 | Carbohydrates | 57 | 5 |
Salad | vegetable | 2.7 | 7.95 | 3.51 | 5.30 | 2.81 | Dietary fiber | 23 | 2 |
Sweet potato | grains | 1.5 | 0.80 | 6.80 | 54.00 | 1.50 | Carbohydrates | 57 | 6 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Lee, J.-y.; Kwon, S.-k. Recommendation Method Based on Glycemic Index for Intake Order of Foods Detected by Deep Learning. Electronics 2025, 14, 457. https://doi.org/10.3390/electronics14030457
Lee J-y, Kwon S-k. Recommendation Method Based on Glycemic Index for Intake Order of Foods Detected by Deep Learning. Electronics. 2025; 14(3):457. https://doi.org/10.3390/electronics14030457
Chicago/Turabian StyleLee, Jae-young, and Soon-kak Kwon. 2025. "Recommendation Method Based on Glycemic Index for Intake Order of Foods Detected by Deep Learning" Electronics 14, no. 3: 457. https://doi.org/10.3390/electronics14030457
APA StyleLee, J.-y., & Kwon, S.-k. (2025). Recommendation Method Based on Glycemic Index for Intake Order of Foods Detected by Deep Learning. Electronics, 14(3), 457. https://doi.org/10.3390/electronics14030457