Build Deep Neural Network Models to Detect Common Edible Nuts from Photos and Estimate Nutrient Portfolio
-
Published:2024-04-26
Issue:9
Volume:16
Page:1294
-
ISSN:2072-6643
-
Container-title:Nutrients
-
language:en
-
Short-container-title:Nutrients
Author:
An Ruopeng1, Perez-Cruet Joshua M.2, Wang Xi1ORCID, Yang Yuyi13ORCID
Affiliation:
1. Brown School, Washington University in St. Louis, St. Louis, MO 63130, USA 2. School of Medicine, Washington University in St. Louis, St. Louis, MO 63130, USA 3. Division of Computational and Data Science, Washington University in St. Louis, St. Louis, MO 63130, USA
Abstract
Nuts are nutrient-dense foods and can be incorporated into a healthy diet. Artificial intelligence-powered diet-tracking apps may promote nut consumption by providing real-time, accurate nutrition information but depend on data and model availability. Our team developed a dataset comprising 1380 photographs, each in RGB color format and with a resolution of 4032 × 3024 pixels. These images feature 11 types of nuts that are commonly consumed. Each photo includes three nut types; each type consists of 2–4 nuts, so 6–9 nuts are in each image. Rectangular bounding boxes were drawn using a visual geometry group (VGG) image annotator to facilitate the identification of each nut, delineating their locations within the images. This approach renders the dataset an excellent resource for training models capable of multi-label classification and object detection, as it was meticulously divided into training, validation, and test subsets. Utilizing transfer learning in Python with the IceVision framework, deep neural network models were adeptly trained to recognize and pinpoint the nuts depicted in the photographs. The ultimate model exhibited a mean average precision of 0.7596 in identifying various nut types within the validation subset and demonstrated a 97.9% accuracy rate in determining the number and kinds of nuts present in the test subset. By integrating specific nutritional data for each type of nut, the model can precisely (with error margins ranging from 0.8 to 2.6%) calculate the combined nutritional content—encompassing total energy, proteins, carbohydrates, fats (total and saturated), fiber, vitamin E, and essential minerals like magnesium, phosphorus, copper, manganese, and selenium—of the nuts shown in a photograph. Both the dataset and the model have been made publicly available to foster data exchange and the spread of knowledge. Our research underscores the potential of leveraging photographs for automated nut calorie and nutritional content estimation, paving the way for the creation of dietary tracking applications that offer real-time, precise nutritional insights to encourage nut consumption.
Reference39 articles.
1. Health benefits of nut consumption;Ros;Nutrients,2010 2. De Souza, R.G.M., Schincaglia, R.M., Pimentel, G.D., and Mota, J.F. (2017). Nuts and Human Health Outcomes: A Systematic Review. Nutrients, 9. 3. Nuts and their co-products: The impact of processing (roasting) on phenolics, bioavailability, and health benefits—A comprehensive review;Chang;J. Funct. Foods,2016 4. US Department of Agriculture and US Department of Health and Human Services, Dietary Guidelines for Americans, 2010. Washington, DC: US Government Printing Office, January 2011;McGuire;Adv. Nutr.,2011 5. Aune, D., Keum, N., Giovannucci, E., Fadnes, L.T., Boffetta, P., Greenwood, D.C., Tonstad, S., Vatten, L.J., Riboli, E., and Norat, T. (2016). Nut consumption and risk of cardiovascular disease, total cancer, all-cause and cause-specific mortality: A systematic review and dose-response meta-analysis of prospective studies. BMC Med., 14.
|
|