Vitamin D3 for Life. Live Enlightened.

Research libraryVitamin D3 For Life
Study design and methods

Secondary relevance to vitamin D This paper mainly addresses another topic and also reports a vitamin D analysis, result or scientific synthesis.

This paper mainly addresses another topic and also reports a vitamin D analysis, result or scientific synthesis.

Why this paper is included

Supporting source evidence:

Vitamin D (mcg) | 0.36 (3.09) | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.02 | 21.86

Source: Results table. View original paper

Relevance classification does not establish study quality, causation or editorial approval.

Study design Study design awaiting verification.

Study design awaiting verification

The available source does not establish a sufficiently clear study design.

Meta-analysis unclear · Blinding unclear / not reported · Research setting awaiting verification

How this paper was classified

Automatic source-based classification; awaiting editorial verification. This is not a quality score.

View supporting evidence in the original paper

What the study types mean
Systematic review
Uses explicit methods to identify, assess and summarise research on a defined question.
Scoping review
Maps the extent and characteristics of research on a topic.
Narrative review
Discusses existing research; systematic-review methods have not been established by this classification.
Review / evidence synthesis
Reviews existing research; the exact review methods need further assessment.
Randomised controlled trial
Assigns participants or groups to comparison interventions by chance.
Non-randomised intervention study
Examines an intervention without random allocation.
Cohort study
Examines exposures and outcomes over time within a defined group.
Case-control study
Compares people with an outcome against people without it, examining exposures.
Cross-sectional study
Examines a population at a particular point in time.
Observational study
Observes exposures and outcomes without assigning the exposure; the subtype is not established here.
Case report
Describes an individual case.
Case series
Describes a group of individual cases.
Secondary analysis
Analyses existing study data; this paper is not automatically another independent trial.
Laboratory study
Investigates biological processes in a laboratory setting.
Qualitative study
Examines experiences or meanings using qualitative methods.
Genetic instrumental-variable study
Uses genetic variation as an instrument to investigate relationships; this is not a randomised treatment trial.
Study protocol
Describes planned methods and is not evidence that the planned study has reported results.
Multiple reported designs
More than one design is explicitly reported; examine the supporting methods.
Study design awaiting verification
The available source does not establish a sufficiently clear study design.

Meta-analysis combines numerical results from studies. Blinding describes who was unaware of treatment allocation. Neither is a separate quality grade. Study design, vitamin D relevance and document format are independent filters.

Full studies

Predicting Unreported Micronutrients From Food Labels: Machine Learning Approach

Study design awaiting verification · Journal of Medical Internet Research · 2023

Original publication title

Predicting Unreported Micronutrients From Food Labels: Machine Learning Approach

Rouzbeh Razavi; Guisen Xue

©Rouzbeh Razavi, Guisen Xue. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 12.04.2023.

Original publication · Publisher record · CC BY 4.0

Source wording retained. Formatting, section navigation and display-title punctuation adapted for this research record.

At a glance

Abstract: What objectives does the paper state?

This paper aims to examine the possibility of using machine learning algorithms to predict unreported micronutrients such as vitamin A (retinol), vitamin C, vitamin B1 (thiamin), vitamin B2 (riboflavin), vitamin B3 (niacin), vitamin B6, vitamin B12, vitamin E (alpha-tocopherol), vitamin K, and minerals such as magnesium, zinc, phosphorus, selenium, manganese, and copper from nutrition information provided on existing food labels. If unreported micronutrients can be predicted with acceptable accuracies from existing food labels using machine learning predictive models, such models can be integrated into mobile apps to provide consumers with additional micronutrient information about foods and help them make more informed diet decisions.

Source: Objective

Study methods

What methods does the paper describe?

Nutrition Data

This study relies on nutritional data obtained from the Food and Nutrient Database for Dietary Studies (FNDDS), which is made available by the US Department of Agriculture (USDA). The FNDDS database is comprised of food intake information obtained from the What We Eat In America survey, which is conducted in collaboration between the USDA and the US Department of Health and Human Services (DHHS). The survey involves 2 interviews, the first conducted in person and the second via telephone within a time frame of 3 to 10 days, during which participants are asked to recall their dietary intake for 2 consecutive 24-hour periods.

While the USDA is responsible for the dietary data collection methods, database maintenance, and data processing and evaluation, DHHS oversees sample design and data collection. Widely used in nutrition research, dietary assessment, and policy development, the FNDDS database is regarded as a reliable data set in the field [23].

We used nutrition data from 5624 foods included in the latest release of the FNDDS data set (ie, FNDDS 2019-2020) for our study, and no missing values were observed in the data set. The USDA’s Food Patterns Equivalents Database provides information about the food groups targeted in dietary guidance, and each food item in the FNDDS data set is associated with 1 of the 37 food groups defined in Food Patterns Equivalents Database. The independent variables in our research are the nutrition data provided on the current NFL, including calories, total fat, saturated fat, trans fat, cholesterol, sodium, total carbohydrates, dietary fiber, total sugars, protein, vitamin D, calcium, iron, and potassium.

The mean, SD, and important percentiles of these attributes are presented in Table 1.

Furthermore, Table 2 presents the mean, SD, and important percentiles of the unreported micronutrients that serve as dependent variables in this study, all of which were derived from the FNDDS data set.

Figure 2 illustrates the correlation coefficients between the nutrition variables shown in Table 1 (ie, independent variables in this study) and the micronutrients being predicted (presented in Table 2). Strong positive correlations between certain nutrients can be observed. While the co-occurrence of some of these nutrients, such as magnesium and dietary fiber [24], calcium and phosphorus [25], and zinc and protein [26], has been documented in the literature, it remains unclear whether these correlations are sufficient to accurately approximate unreported micronutrients.

To address this question, a range of machine learning regression and classification models are used. Regression models are used to predict the quantities of micronutrients, while classification models aim to identify the category (ie, “low,” “medium,” or “high”) of micronutrients for each food, as will be discussed later.

Table 1

The mean, SD, and important percentiles of nutrition attributes (per 100 g of foods) listed on the Nutrition Facts label used in this study.


Value, mean (SD)Percentile


Min25th33rd50th (median)66th75thMax
Calories (kcal)226.3 (169.86)0.0091.0123.00191.0271.0337.0902.0
Total fat (g) 10.55 (15.81)0.000.952.005.139.9813.72100.0

Saturated fat (g)3.43 (6.42)0.000.140.411.432.944.1795.61

Trans fat (g)0.26 (1.45)0.000.000.000.0030.080.1624.35
Cholesterol (mg)38.72 (117.35)0.000.000.002.0040.065.03100
Sodium (mg)306.4 (939.22)0.0036.055.084.0281.0396.06681.76
Total carbohydrate (g) 22.12 (27.26)0.000.052.409.3420.8734.91100.0

Dietary fiber (g)2.04 (4.26)0.000.000.000.041.602.4026.32

Total sugars (g)6.75 (13.71)0.000.000.000.493.006.0599.80
Protein (g)11.35 (10.53)0.002.383.698.0214.8019.8876.99
Vitamin D (mcg)0.36 (3.09)0.000.000.000.000.000.0221.86
Calcium (mcg)73.32 (199.85)0.008.0011.0019.0039.0063.002003
Iron (mg)2.76 (5.66)0.000.490.731.302.082.5764.55
Potassium (mcg)265 (371.4)0.00111.0143.0219.0290.03293535
Table 2

The mean, SD, and important percentiles of micronutrients (per 100 g) that are not listed on the Nutrition Facts label and are dependent variables in this study are derived from the Food and Nutrient Database for Dietary Studies (FNDDS) data set.


Value, mean (SD)Percentile


Min25th33rd50th (median)66th75thMax
Vitamin A (mcg)203.12 (469.12)0.000.001.806.0030.4362.210,851.18
Vitamin B1 (mg)0.21 (0.51)0.000.030.040.070.130.2223.37
Vitamin B2 (mg)0.23 (0.44)0.000.040.070.150.210.264.38
Vitamin B3 (mg)3.40 (4.76)0.000.370.682.114.015.0645.24
Vitamin B6 (mg)0.26 (0.46)0.000.030.060.120.240.356.13
Vitamin B12 (mcg)1.20 (4.27)0.000.000.030.070.541.2754.68
Vitamin C (mg)8.36 (46.70)0.000.000.010.290.902.50240.92
Vitamin E (mg)0.88 (2.81)0.000.000.090.190.290.4640.02
Vitamin K (mcg)9.30 (22.15)0.000.000.301.1841.903.40183.90
Magnesium (mg)32.26 (45.80)0.0010.0013.0020.0025.0029.00290.38
Zinc (mg)1.94 (2.33)0.000.220.480.801.702.6612.50
Phosphorus (mg)153.8 (202.20)0.0035.061.00129.0191.0215.0774.38
Selenium (mcg)12.46 (27.07)0.000.100.604.0014.021.30172.81
Manganese (mg)0.49 (4.30)0.000.000.020.050.120.3052.26
Copper (mg)0.16 (0.54)0.000.020.040.070.100.145.12
Figure 2

Correlation coefficients between independent (see Table 1) and dependent (see Table 2) nutrition attributes in this study.

Figure image at the original source — open the original paper. This file is not included in this text import.

Machine Learning Algorithms

Classification and Regression Models

In addition to linear models, such as ordinary least squares (OLS) regression or logistic regression classification models, a range of machine learning regression and classification algorithms are deployed to capture the nonlinear and complex relationships between the dependent and independent variables in this study. The no free lunch theorem (NFLT) in machine learning [27] states that no one algorithm is optimal for every classification or regression problem, and therefore, a variety of algorithms are used to ensure that the reported predictive power of input attributes is not limited by a particular algorithm.

A brief description of the algorithms used in this study is provided below. Those interested in further information about these algorithms are encouraged to refer to [28].

Decision Trees

Decision trees are a widely used algorithm that is popular due to their low computational complexity and transparency, making their output easy to interpret. These trees are constructed through a series of if-then rules based on the value of input features. Classification and regression trees are a widely deployed implementation of decision trees, and through the concept of ensemble learning, several individual decision trees can be combined to form random forests (RFs). The RF algorithm is based on the construction of a multitude of decision trees at training time and outputting the class that is the mode of the classes (classification) or mean prediction (regression) of the individual trees.

This technique provides more robust and accurate predictions. Gradient boosting machines (GBMs) are also a popular tree-based algorithm that uses the concept of boosting, in which an iterative approach is taken to construct an ensemble model with each individual tree aimed at improving overall performance. GBMs differ from RFs by modifying the weights of the training data at each iteration, allowing for a greater emphasis on incorrectly classified data points in subsequent iterations and thus improving the overall accuracy of the model.

K-Nearest Neighbors

The k-nearest neighbors (KNN) is a simple yet powerful algorithm that makes predictions for any record by finding the k most similar data points in the training data set. KNN uses a distance metric, such as Euclidean distance, to measure the similarity between a test sample and the training data set. The algorithm then identifies the k closest neighbors to the test sample based on the distance metric and assigns the class of the majority of the nearest neighbors to the test sample.

This algorithm is nonparametric and does not require a training phase, making it easy to implement and apply to various data sets.

Neural Networks

Neural networks are a complex and powerful class of machine learning algorithms that are based on the structure and function of the human brain. They consist of several simple, highly interconnected processing elements known as artificial neurons that are structured in layers and connected through weighted links. The aim of this algorithm is to simulate the behavior of the human brain, with neurons activated by other neurons to which they are connected and, once triggered, generate output that can trigger additionally connected neurons.

The neural network is composed of an input layer, one or more hidden layers, and an output layer. Neural networks can be used for both classification and regression tasks, and their power lies in their ability to capture complex and nonlinear relationships between the input features and the output variable.

Support Vector Machines

Support vector machines (SVMs) aim to find optimal decision planes that serve as decision boundaries. For this, SVM uses the concept of kernel methods. In this method, the input data is mapped onto a high-dimensional feature space using a set of functions known as kernels, where decision boundaries can be defined. Linear kernels and radial basis function (RBF) kernels are 2 widely used SVM kernel functions. SVMs are particularly effective in high-dimensional spaces, where the number of features is large compared to the number of samples.

SVMs can be used for both regression and classification tasks and can handle complex data sets with nonlinear boundaries.

It should be noted that these algorithms are parameterized, and the choice of their tuning parameters, also referred to as hyperparameters, can significantly impact their performance [28,29]. Table 3 lists the machine learning algorithms deployed in this study along with their corresponding hyperparameters.

As shown in Table 3, the study deploys both classification and regression models to predict the micronutrient contents of foods. While regression models attempt to predict the exact nutrient quantities, it should be noted that most consumers may not need the exact numeric quantities of food micronutrients. This is due to the wide range of daily recommended values for micronutrients, which can range from micrograms to milligrams. As a result, interpreting the numeric quantities of micronutrients can be challenging for many consumers [20].

To address this issue, food authorities around the globe have developed simplified food labels, such as the Multiple Traffic Light designs by the UK Food Standards Agency (see Figure 1). Similarly, in this study, 3 categories of low, medium, and high are also considered for each micronutrient based on the percentiles of their distribution (see Table 2). The “low” category represents values that are below the 33rd percentile; the “medium” category refers to values between the 33rd and 66th percentiles; and the “high” category refers to values above the 66th percentile.

These labels can then be used to represent the various micronutrient contents. From a modeling perspective, these will be 3-level classification tasks and are examined using the classification algorithms shown in Table 2. In order to avoid overfitting, the data was divided into 2 mutually exclusive subsets: the training set (80%) and the test set (20%) [28,29]. A methodology introduced in [29] was used for this purpose, with the training and test sets being determined at random but possessing similar distributions of the dependent variable in both sets.

The optimal values of the hyperparameters were subsequently determined through an adaptive search algorithm proposed by Kuhn and Johnson [29] and 10-fold cross-validation using only the training set. In k-fold cross-validation, data is randomly divided into k equal partitions, each referred to as a fold, with k-1 folds being used to construct a model and the remaining fold being used for performance evaluation. This process is repeated k times, with a different fold chosen for evaluation each time.

Once the optimal values of the hyperparameters are determined, the entire training set is used to train a model, the performance of which is then evaluated on the test set. This approach ensures that the test set samples are not used during the model training or hyperparameter optimization steps, thereby minimizing the risk of overfitting [28].To ensure that performance evaluations are not specific to any one random test set (which could potentially consist only of easily predictable samples, for example), the above procedure is replicated 10 times, each time using new random training and test sets, and the performance measures are averaged [29].

The evaluation of models’ performance based on 10 independent, random, and completely out-of-sample test sets is deemed critical in ensuring that the results reported in this study are not subject to overfitting, a risk when applying advanced machine learning algorithms [28,29].

Table 3

List of machine learning algorithms deployed in this study along with their hyperparameters.

Algorithm nameAcronymApplicationHyperparameters
Classification and regression treesCARTClassification and regression
  • Complexity parameter, cp

Gradient boosting machinesGBMClassification and regression
  • No. of trees, n.trees

  • Depth, interaction.depth

  • Shrinkage parameter, shrinkage

K-nearest neighborsKNNClassification and regression
  • No. of neighbors, k

Logistic regressionLRClassification
  • N/Aa

Neural networksNNClassification and regression
  • Weight decay, decay

  • No. of hidden layer units, size

Ordinary least squaresOLSRegression
  • N/A

Random forestsRFClassification and regression
  • No. of variables available for splitting, mtry

Support vector machines–linear kernelSVM-LClassification and regression
  • Cost parameter, c

Support vector machines–radial basis function kernelSVM-RBFClassification and regression
  • Cost parameter, c

  • RBF kernel parameter, sigma

aN/A: not applicable.

Source: Methods Source: Methods

Introduction: Background and Motivation

According to the World Health Organization (WHO), more than 2 billion people globally experience deficiencies in micronutrients such as vitamins and minerals [1]. Pregnant and nursing mothers and young children are particularly vulnerable to micronutrient deficiencies [2]. Insufficient intake of micronutrients has also been linked to disability-adjusted life years, a measure of time lost due to premature mortality and nonfatal health loss, and to various age-related disorders such as cardiovascular diseases and Alzheimer disease [3].

Food labels can be an effective tool for improving diets as they provide consumers with information to make healthier choices and decisions at the point of purchase and consumption [4-6]. In addition, increased consumer attention to nutrition labels has motivated food manufacturers to produce healthier products [7]. A systematic review of studies finds that reading nutrition labels is associated with healthier diets in adults [8].

Despite their potential benefits, food labels have limitations. In particular, including too much nutritional information on labels may be impractical due to size and ergonomic constraints [9]. Additionally, studies have found that clutter and information overload can overwhelm consumers, leading to the underutilization of labels [10]. As a result, food labels aim to convey only the most crucial nutritional information and are subject to revisions and amendments as people’s eating habits and the body of scientific knowledge regarding the impact of nutrition on health evolves.

For example, the US Nutrition Facts label (NFL) first appeared in 1994 and was revised in 2016. The revision required US food manufacturers to report potassium and vitamin D and made the reporting of vitamins A and C voluntary. Data from the National Health and Nutrition Examination Survey (NHANES 2007-2011) suggests that about 92.4% of US adults fall short of the estimated average requirement for consuming vitamin D [11]. However, the decision to remove vitamins A and C from the list of micronutrients required to appear on food labels was not made because Americans received sufficient amounts of these vitamins.

In fact, NHANES 2007-2011 indicated that 51.0% and 42.9% of adult Americans were not meeting dietary requirements for consuming vitamins A and C, respectively, even after accounting for these vitamins in fortified foods [11]. There are also many other unreported micronutrients that are underconsumed by the public. For example, according to NHANES 2007-2011, the vitamin E intake is below EAR for 93.9% of US adults, and magnesium and vitamin K deficiencies are observed among 60.9% and 71.1% of US adults, respectively.

Micronutrient deficiencies are significantly more common in low-income countries [1].

It is well established that many nutrients exhibit synergistic interactions, whereby a deficiency in 1 nutrient may exacerbate or manifest as a deficiency in another, and vice versa. Furthermore, there are strong correlations between the presence of certain nutrients in various foods. For example, vitamin E, a fat-soluble antioxidant, tends to be positively correlated with the fat content of foods. Similarly, there is a strong positive correlation between dietary phosphorus and dietary calcium in various foods [12]. This study aims to explore the potential for estimating unreported micronutrients in foods using the nutrition information provided on labels.

This is done by training a wide range of predictive machine learning algorithms using nutrition data from over 5000 foods. If successful, this could offer numerous benefits and options for consumers. For example, mobile apps could be developed to allow consumers to scan food labels and receive additional interactive information on the micronutrients of their interest that is not reported on labels.

The micronutrients examined in this study are those that are not currently reported on the NFL, including vitamin A (retinol), vitamin C, vitamin B1 (thiamin), vitamin B2 (riboflavin), vitamin B3 (niacin), vitamin B6, vitamin B12, vitamin E (alpha-tocopherol), vitamin K, and minerals such as magnesium, zinc, phosphorus, selenium, manganese, and copper. These micronutrients play vital roles in overall well-being, and their deficiency can lead to various health issues, as outlined in Multimedia Appendix 1.

Source: Background and Motivation Source: Background and Motivation Source: Background and Motivation Source: Background and Motivation

Introduction: Related Studies

In recent years, the use of machine learning has opened up new avenues for predicting and estimating food attributes, including nutrient content [13]. Numerous studies have attempted to estimate food nutrients based on images of foods, which can help estimate food calories, analyze people’s eating habits, and make food recommendations. For example, the research in [14] introduces a new deep learning architecture specifically designed to handle the vertical food traits common to a large number of categories.

Similarly, the authors in [15] propose a method for food image recognition using a fine-tuned deep convolutional neural network pretrained with ImageNet data. In [16], the authors propose a mobile-based dietary assessment system that can record real time images of the meal and analyze it for nutritional content, ultimately leading to improved dietary habits and a healthier lifestyle. The proposed system uses different machine learning models for accurate food identification and extracts semantically related words from a huge corpus of text collected over the internet to estimate food attributes and ingredients.

The systematic review in [17] provides a comprehensive review of the application of deep learning in the food domain, including food classification, quality detection, and calorie estimation.

In addition to research related to food image analysis, machine learning has been used to predict food nutrient content in several studies. In 1 study, multiple machine learning algorithms were used to predict the carbohydrates, protein, and sodium content of foods [13]. Similarly, the fiber content in packaged foods was estimated using a k-nearest neighbor algorithm in [18], and added sugar content was predicted using the same method in [19]. While these studies provide valuable insights into the predictability of certain nutrients based on other nutrition information, it should be noted that the predicted nutrition attributes are typically those already reported on food package labels.

In contrast, no previous study has focused on predicting those micronutrients that are not reported on food packages but are associated with deficiencies in a large portion of the population.

The prediction of unreported micronutrients has the potential to assist consumers in making informed choices about their dietary habits. However, it is crucial to present this information in an easily interpretable format for consumers. Franklin et al [20] found that a significant portion of the population faces difficulty understanding current food labels. To address this issue and avoid information overload, various label designs have been proposed. Among these designs is the Multiple Traffic Light system, developed by the UK Food Standards Agency, which uses traffic light colors and optional descriptors such as “low,” “medium,” and “high” to indicate reference intake levels for fat, saturated fat, sugars, and salt (as illustrated in Figure 1).

In comparison to traditional nutrition labels, mobile apps have the potential to significantly enhance consumers’ experiences and engagement in the context of predicting unreported micronutrients. These apps can be customized to meet individual consumers’ needs and preferences, such as allowing them to select specific micronutrients of interest, altering the way in which information is presented, choosing the level of detail, and comparing similar food products [21]. In addition, mobile apps may facilitate tracking daily or weekly nutrient intake and alerting users to any deficiencies.

A systematic review by Coughlin et al [21] found that nutrition and diet-related mobile apps may be effective in promoting healthy behaviors and facilitating positive behavior change in various countries. Existing mobile apps such as Cronometer and Nutrients provide some micronutrient information for certain foods. However, these apps have limited databases. By predicting unreported micronutrients from existing food label information, such apps can provide micronutrient information about a much larger array of foods. Moreover, such mobile app integration will also allow apps to track users’ micronutrient intake over time and suggest foods to ensure that users consume sufficient amounts of various micronutrients.

For example, the study in [22] presents a machine learning approach to recipe development based on nutrients in food, which can improve the nutritional quality of diets and prevent chronic diseases.

Figure 1

An example of Multiple Traffic Light (MTL) nutrition label developed by Food Standards Agency (FSA).

Figure image at the original source — open the original paper. This file is not included in this text import.
Source: Related Studies Source: Related Studies Source: Related Studies Source: Related Studies Source: Related Studies

Results: Regression Models

Figure 3 shows the R2 of different regression models for predicting unreported vitamins using the nutrition information provided by the NFL. It is found that vitamin B6 could be predicted with the highest accuracy, with an R2 of 0.75 for the best model, namely, GBM. In contrast, the prediction of vitamin C is found to be the most challenging, with an R2 of 0.37 for the best model, namely, RFs. The results also demonstrate the superiority of most machine learning algorithms over the linear regression model (OLS), as the former is able to capture complex and nonlinear relationships that may exist between the predictors and dependent variables.

Similarly, Figure 4 shows the R2 of various regression models for estimating unreported minerals. As shown, magnesium can be estimated with the highest accuracy (R2=0.82 for the best model, ie, GBM), while the accuracy of predicting manganese is the lowest compared to other minerals (R2=0.28 for the best model, ie, NN). Again, the result confirms that most machine learning algorithms outperform OLS.

The results from Figures 3 and 4 show that while the use of machine learning models can explain a significant portion of the variability in unreported micronutrients based on the nutrition information provided on food labels, the accuracy of such models in predicting the exact value of these micronutrients is far from perfect. However, as discussed, the exact numeric value of a micronutrient may not always be necessary. The next section presents the results of the classification models.

Figure 3

R2 of different regression models for predicting unreported vitamins using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.
Figure 4

R2 of different regression models for predicting unreported minerals using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.
Source: Regression Models Source: Regression Models Source: Regression Models Source: Regression Models Source: Regression Models

Results: Classification Models

The accuracy of various classification models for predicting the category (ie, “low,” “medium,” or “high”) of unreported vitamins using the nutrition information provided on NFL is shown in Figure 5. In this context, classification accuracy is defined as the proportion of correctly classified records. It can be seen that reasonable accuracy is achievable for predicting the categories of most vitamins. When comparing different vitamins, the results suggest that the accuracy is particularly high (>0.90) for the best machine learning models when predicting the presence of vitamins B1 and B12.

In general, nonlinear models, such as GBM, SVM, RF, and NN, are shown to outperform linear logistic regression models and simple decision trees (classification and regression tree).

Further examination of the misclassified records in Figure 5 reveals 2 notable characteristics. First, a significant percentage of misclassified records are misclassified between the “low” and “medium” categories or between the “medium” and “high” categories, with a negligible percentage between the “low” and “high” categories. For example, considering the best classification model for vitamin A (ie, GBM), 13.82% of foods are misclassified. This includes 3.42% of foods in the “low” vitamin A category being classified as “medium,” 2.98% of foods from the “medium” category being classified as “low,” 3.85% of foods from the “medium” class being classified as “high,” 3.35% of foods from the “high” class being classified as “medium,” and only 0.18% of foods from the “low” category being classified as “high,” and 0.04% of foods from the “high” category being misclassified as “low.” Second, an examination of the misclassified records reveals that most are borderline.

For example, considering the GBM model for vitamin A prediction, the average percentile of “low” category records that are misclassified as “medium” is 30.78%, which is close to the classification boundary (ie, 33%). Similarly, the average percentile of “medium” category records that are misclassified as “low” and “high” is 38.56% and 60.24%, respectively. These observations suggest that not only is the rate of misclassification relatively small, but also that those records that are misclassified are not severely misleading.

Similarly, Figure 6 shows the accuracy of different classification models for predicting the category (ie, “low,” “medium,” or “high”) of unreported vitamins using the nutrition information provided on the NFL. Again, we can see a reasonable performance of classification models, where the best models’ accuracy is higher than 90% for predicting magnesium, phosphorous, and zinc.

The results in Figure 6 demonstrate the reasonable performance of classification models in predicting the categories of unreported minerals, with the best models achieving accuracy higher than 0.90 for predicting magnesium, phosphorous, and zinc. In order to gain a deeper understanding of the role of each independent variable in predicting unreported micronutrients, Table 4 presents variable importance scores (VIS) for each predictor nutrition attribute when predicting various unreported vitamins. As described in [29], VIS is calculated by removing independent variables from a model and measuring the corresponding decrease in the model’s accuracy.

The most important attribute is assigned a value of 100, with other attributes scaled proportionally.

The results in Table 4 align with the correlation results shown in Figure 2, with protein, iron, and potassium frequently appearing as highly predictive independent attributes when classifying foods based on their vitamin content. Similarly, Table 5 presents the VIS values for each nutrition attribute when predicting various unreported minerals, with the results again agreeing with the correlation values shown in Figure 2, where potassium, iron, calcium, and protein are among the top predictors.

Figure 5

Accuracy of different classification models for predicting the category of unreported vitamins using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; LR: logistic regression; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.
Figure 6

The accuracy of different classification models for predicting unreported minerals using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; LR: logistic regression; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.
Table 4

The variable importance score quantities for each of the reported nutrition attributes when predicting various unreported vitamins.


Vitamin AVitamin B1Vitamin B2Vitamin B3Vitamin B6Vitamin B12Vitamin CVitamin EVitamin K
Calories60.4922.3920.4919.3323.089.0575.3374.91a49.51
Total fat52.7119.418.6615.3419.297.7162.48100a65.89
Saturated fat52.2621.3122.4717.8124.2712.0449.9569.3958.60
Trans fat37.7632.9028.2614.5225.1913.9047.1154.8133.28
Cholesterol41.7629.7116.309.6915.14100a40.4246.0736.40
Sodium67.3227.9225.9217.4325.1014.9165.9363.8756.19
Total carbohydrate82.20a48.6016.7018.7322.7117.62100a70.7449.43
Dietary fiber38.0913.5513.0212.315.277.6136.7936.72100a
Total sugars50.5812.3112.9510.9721.566.3550.3260.1037.93
Protein86.07a47.08a100a100a82.64a39.68a82.5a72.1259.97
Vitamin D55.9717.5011.665.689.76527.9529.4778.364.50
Calcium100a22.0933.1524.5929.921.1566.8273.3176.27a
Iron71.11100a55.31a76.92a100a33.7a71.8575.35a72.01
Potassium74.8945.91a40.32a38.12a51.68a28.4286.42a68.979.01a

aThe top 3 predictors.

Table 5

The variable importance score quantities for each of the reported nutrition attributes when predicting various unreported minerals.


CopperMagnesiumManganesePhosphorusSeleniumZinc
Calories24.217.1938.2110.9720.068.57
Total fat22.7313.4433.457.1418.956.97
Saturated fat26.716.2437.329.8821.3911.78
Trans fat19.9115.9041.410.4819.769.10
Cholesterol33.7134.1965.788.3044.09a4.74
Sodium30.9716.5350.4212.4928.029.89
Total carbohydrate28.6817.2172.45a8.1231.0211.73
Dietary fiber20.4366.84a72.256.0917.068.36
Total sugars20.9510.6749.205.0518.986.11
Protein31.9737.87a52.52100a100a100a
Vitamin D11.496.68322.603.228.854.50
Calcium34.64a24.8661.9795.74a38.2133.43
Iron100a29.3183.56a12.1127.1955.38a
Potassium70.86a100a100a37.83a48.51a37.76a

aThe top 3 predictors.

Source: Classification Models Source: Classification Models Source: Classification Models Source: Classification Models Source: Classification Models Source: Classification Models Source: Classification Models Source: Classification Models Source: Classification Models

Discussion: Principal Findings

The results presented in the previous section demonstrate the potential for machine learning models to estimate unreported micronutrients based on the nutrition information provided on food labels. The regression models presented in this study showed that vitamin B6 and magnesium were the micronutrients that could be predicted with the highest accuracy, while vitamin C and manganese were the most challenging micronutrients to predict accurately. Furthermore, the classification models were able to predict the categories of most vitamins and minerals with a high degree of accuracy, with nonlinear models outperforming linear models.

The VISs for each predictor nutrition attribute were also calculated to gain a deeper understanding of the role of each independent variable in predicting unreported micronutrients. The results indicate that protein, iron, potassium, and calcium were among the top predictors for both vitamins and minerals.

The findings of this study demonstrate that classification models outperform regression models in predicting unreported micronutrients using nutrition information provided on food labels. It is important to note that regression models aim to make precise predictions about continuous dependent variables, which makes them more complex than classification models that predict categorical outcomes based on input features. Furthermore, the skewed distribution of dependent nutrition variables considered in the regression models, as presented in Table 2, can significantly hinder their prediction accuracy.

The interpretation of exact numeric quantities of food micronutrients, however, can be challenging for many consumers due to the wide range of daily recommended values [20], making it unnecessary for most to require exact numeric quantities. On the other hand, classification models, which indicate micronutrient levels as “low,” “medium,” or “high,” provide easily interpretable insights for consumers. Mobile apps that implement classification models to predict unreported micronutrients can offer beneficial information to various user groups, especially those at risk of micronutrient deficiencies, including vegetarians, vegans [30], and older adults [3,31].

By scanning food labels, mobile apps can provide a simplified and engaging presentation of nutrient content and also offer features such as daily meal planning and water intake tracking [32,33]. Fortunately, machine learning algorithms are easy to deploy on mobile apps, and they do not require privacy-sensitive permissions to function. Furthermore, mobile apps that monitor users’ food intake can suggest foods based on their micronutrient content. Such features have been reported to be effective in increasing dietary diversity and alleviating micronutrient deficiency [34].

In general, these features can raise user awareness of their health and nutrition and, as a result, may lead to better dietary habits [35].

Table 2

The mean, SD, and important percentiles of micronutrients (per 100 g) that are not listed on the Nutrition Facts label and are dependent variables in this study are derived from the Food and Nutrient Database for Dietary Studies (FNDDS) data set.


Value, mean (SD)Percentile


Min25th33rd50th (median)66th75thMax
Vitamin A (mcg)203.12 (469.12)0.000.001.806.0030.4362.210,851.18
Vitamin B1 (mg)0.21 (0.51)0.000.030.040.070.130.2223.37
Vitamin B2 (mg)0.23 (0.44)0.000.040.070.150.210.264.38
Vitamin B3 (mg)3.40 (4.76)0.000.370.682.114.015.0645.24
Vitamin B6 (mg)0.26 (0.46)0.000.030.060.120.240.356.13
Vitamin B12 (mcg)1.20 (4.27)0.000.000.030.070.541.2754.68
Vitamin C (mg)8.36 (46.70)0.000.000.010.290.902.50240.92
Vitamin E (mg)0.88 (2.81)0.000.000.090.190.290.4640.02
Vitamin K (mcg)9.30 (22.15)0.000.000.301.1841.903.40183.90
Magnesium (mg)32.26 (45.80)0.0010.0013.0020.0025.0029.00290.38
Zinc (mg)1.94 (2.33)0.000.220.480.801.702.6612.50
Phosphorus (mg)153.8 (202.20)0.0035.061.00129.0191.0215.0774.38
Selenium (mcg)12.46 (27.07)0.000.100.604.0014.021.30172.81
Manganese (mg)0.49 (4.30)0.000.000.020.050.120.3052.26
Copper (mg)0.16 (0.54)0.000.020.040.070.100.145.12
Source: Principal Findings Source: Principal Findings Source: Principal Findings

Discussion: Limitations and Future Studies

While this research offers valuable insights into the potential for estimating various unreported micronutrients from existing food labels, it has some limitations that should be considered. Most importantly, this study focused on American diets using the foods listed in the What We Eat In America database. However, given that diets differ between countries [36], further research using diet and nutrient data from other countries would be valuable. In addition to the potential for improved performance with larger training data sets, it is worth considering that certain machine learning algorithms may perform better at predicting specific micronutrients or food categories.

Therefore, the development of ensemble machine learning models that combine the strengths of individual models may represent a promising avenue for further enhancing predictive accuracy and should be pursued in future research. Finally, a follow-up study demonstrating the integration of machine learning algorithms to predict unreported micronutrients would provide significant practical value.

Source: Limitations and Future Studies

Results

Regression Models

Figure 3 shows the R2 of different regression models for predicting unreported vitamins using the nutrition information provided by the NFL. It is found that vitamin B6 could be predicted with the highest accuracy, with an R2 of 0.75 for the best model, namely, GBM. In contrast, the prediction of vitamin C is found to be the most challenging, with an R2 of 0.37 for the best model, namely, RFs. The results also demonstrate the superiority of most machine learning algorithms over the linear regression model (OLS), as the former is able to capture complex and nonlinear relationships that may exist between the predictors and dependent variables.

Similarly, Figure 4 shows the R2 of various regression models for estimating unreported minerals. As shown, magnesium can be estimated with the highest accuracy (R2=0.82 for the best model, ie, GBM), while the accuracy of predicting manganese is the lowest compared to other minerals (R2=0.28 for the best model, ie, NN). Again, the result confirms that most machine learning algorithms outperform OLS.

The results from Figures 3 and 4 show that while the use of machine learning models can explain a significant portion of the variability in unreported micronutrients based on the nutrition information provided on food labels, the accuracy of such models in predicting the exact value of these micronutrients is far from perfect. However, as discussed, the exact numeric value of a micronutrient may not always be necessary. The next section presents the results of the classification models.

Figure 3

R2 of different regression models for predicting unreported vitamins using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.
Figure 4

R2 of different regression models for predicting unreported minerals using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.

Classification Models

The accuracy of various classification models for predicting the category (ie, “low,” “medium,” or “high”) of unreported vitamins using the nutrition information provided on NFL is shown in Figure 5. In this context, classification accuracy is defined as the proportion of correctly classified records. It can be seen that reasonable accuracy is achievable for predicting the categories of most vitamins. When comparing different vitamins, the results suggest that the accuracy is particularly high (>0.90) for the best machine learning models when predicting the presence of vitamins B1 and B12.

In general, nonlinear models, such as GBM, SVM, RF, and NN, are shown to outperform linear logistic regression models and simple decision trees (classification and regression tree).

Further examination of the misclassified records in Figure 5 reveals 2 notable characteristics. First, a significant percentage of misclassified records are misclassified between the “low” and “medium” categories or between the “medium” and “high” categories, with a negligible percentage between the “low” and “high” categories. For example, considering the best classification model for vitamin A (ie, GBM), 13.82% of foods are misclassified. This includes 3.42% of foods in the “low” vitamin A category being classified as “medium,” 2.98% of foods from the “medium” category being classified as “low,” 3.85% of foods from the “medium” class being classified as “high,” 3.35% of foods from the “high” class being classified as “medium,” and only 0.18% of foods from the “low” category being classified as “high,” and 0.04% of foods from the “high” category being misclassified as “low.” Second, an examination of the misclassified records reveals that most are borderline.

For example, considering the GBM model for vitamin A prediction, the average percentile of “low” category records that are misclassified as “medium” is 30.78%, which is close to the classification boundary (ie, 33%). Similarly, the average percentile of “medium” category records that are misclassified as “low” and “high” is 38.56% and 60.24%, respectively. These observations suggest that not only is the rate of misclassification relatively small, but also that those records that are misclassified are not severely misleading.

Similarly, Figure 6 shows the accuracy of different classification models for predicting the category (ie, “low,” “medium,” or “high”) of unreported vitamins using the nutrition information provided on the NFL. Again, we can see a reasonable performance of classification models, where the best models’ accuracy is higher than 90% for predicting magnesium, phosphorous, and zinc.

The results in Figure 6 demonstrate the reasonable performance of classification models in predicting the categories of unreported minerals, with the best models achieving accuracy higher than 0.90 for predicting magnesium, phosphorous, and zinc. In order to gain a deeper understanding of the role of each independent variable in predicting unreported micronutrients, Table 4 presents variable importance scores (VIS) for each predictor nutrition attribute when predicting various unreported vitamins. As described in [29], VIS is calculated by removing independent variables from a model and measuring the corresponding decrease in the model’s accuracy.

The most important attribute is assigned a value of 100, with other attributes scaled proportionally.

The results in Table 4 align with the correlation results shown in Figure 2, with protein, iron, and potassium frequently appearing as highly predictive independent attributes when classifying foods based on their vitamin content. Similarly, Table 5 presents the VIS values for each nutrition attribute when predicting various unreported minerals, with the results again agreeing with the correlation values shown in Figure 2, where potassium, iron, calcium, and protein are among the top predictors.

Figure 5

Accuracy of different classification models for predicting the category of unreported vitamins using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; LR: logistic regression; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.
Figure 6

The accuracy of different classification models for predicting unreported minerals using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; LR: logistic regression; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.
Table 4

The variable importance score quantities for each of the reported nutrition attributes when predicting various unreported vitamins.


Vitamin AVitamin B1Vitamin B2Vitamin B3Vitamin B6Vitamin B12Vitamin CVitamin EVitamin K
Calories60.4922.3920.4919.3323.089.0575.3374.91a49.51
Total fat52.7119.418.6615.3419.297.7162.48100a65.89
Saturated fat52.2621.3122.4717.8124.2712.0449.9569.3958.60
Trans fat37.7632.9028.2614.5225.1913.9047.1154.8133.28
Cholesterol41.7629.7116.309.6915.14100a40.4246.0736.40
Sodium67.3227.9225.9217.4325.1014.9165.9363.8756.19
Total carbohydrate82.20a48.6016.7018.7322.7117.62100a70.7449.43
Dietary fiber38.0913.5513.0212.315.277.6136.7936.72100a
Total sugars50.5812.3112.9510.9721.566.3550.3260.1037.93
Protein86.07a47.08a100a100a82.64a39.68a82.5a72.1259.97
Vitamin D55.9717.5011.665.689.76527.9529.4778.364.50
Calcium100a22.0933.1524.5929.921.1566.8273.3176.27a
Iron71.11100a55.31a76.92a100a33.7a71.8575.35a72.01
Potassium74.8945.91a40.32a38.12a51.68a28.4286.42a68.979.01a

aThe top 3 predictors.

Table 5

The variable importance score quantities for each of the reported nutrition attributes when predicting various unreported minerals.


CopperMagnesiumManganesePhosphorusSeleniumZinc
Calories24.217.1938.2110.9720.068.57
Total fat22.7313.4433.457.1418.956.97
Saturated fat26.716.2437.329.8821.3911.78
Trans fat19.9115.9041.410.4819.769.10
Cholesterol33.7134.1965.788.3044.09a4.74
Sodium30.9716.5350.4212.4928.029.89
Total carbohydrate28.6817.2172.45a8.1231.0211.73
Dietary fiber20.4366.84a72.256.0917.068.36
Total sugars20.9510.6749.205.0518.986.11
Protein31.9737.87a52.52100a100a100a
Vitamin D11.496.68322.603.228.854.50
Calcium34.64a24.8661.9795.74a38.2133.43
Iron100a29.3183.56a12.1127.1955.38a
Potassium70.86a100a100a37.83a48.51a37.76a

aThe top 3 predictors.

Source: Results Source: Results

Discussion: Conclusions

This study demonstrates the feasibility of predicting unreported micronutrients from food labels. By analyzing detailed nutrition data from over 5000 foods and applying a range of machine learning algorithms, the study finds that it is possible to predict the category (ie, “Low,” “Medium,” or “High”) of various vitamins and minerals with an accuracy of at least 0.80. According to the results of this study, the highest prediction accuracies for specific micronutrients were achieved for vitamin B12 (0.94) and phosphorus (0.94), while the lowest were for vitamin E (0.81) and selenium (0.83).

These findings have important implications for helping consumers make more informed decisions about their nutrition and for improving the overall health of the population. By using mobile apps to present this information in an engaging and easy-to-interpret manner, it may be possible to encourage better nutrition decisions and address the significant prevalence of micronutrient deficiencies.

Source: Conclusions
Authors’ abstract

Background

Micronutrient deficiencies represent a major global health issue, with over 2 billion individuals experiencing deficiencies in essential vitamins and minerals. Food labels provide consumers with information regarding the nutritional content of food items and have been identified as a potential tool for improving diets. However, due to governmental regulations and the physical limitations of the labels, food labels often lack comprehensive information about the vitamins and minerals present in foods. As a result, information about most of the micronutrients is absent from existing food labels.

Objective

This paper aims to examine the possibility of using machine learning algorithms to predict unreported micronutrients such as vitamin A (retinol), vitamin C, vitamin B1 (thiamin), vitamin B2 (riboflavin), vitamin B3 (niacin), vitamin B6, vitamin B12, vitamin E (alpha-tocopherol), vitamin K, and minerals such as magnesium, zinc, phosphorus, selenium, manganese, and copper from nutrition information provided on existing food labels. If unreported micronutrients can be predicted with acceptable accuracies from existing food labels using machine learning predictive models, such models can be integrated into mobile apps to provide consumers with additional micronutrient information about foods and help them make more informed diet decisions.

Methods

Data from the Food and Nutrient Database for Dietary Studies (FNDDS) data set, representing a total of 5624 foods, were used to train a diverse set of machine learning classification and regression algorithms to predict unreported vitamins and minerals from existing food label data. For each model, hyperparameters were adjusted, and the models were evaluated using repeated cross-validation to ensure that the reported results were not subject to overfitting.

Results

According to the results, while predicting the exact quantity of vitamins and minerals is shown to be challenging, with regression R2 varying in a wide range from 0.28 (for magnesium) to 0.92 (for manganese), the classification models can accurately predict the category (“low,” “medium,” or “high”) level of all minerals and vitamins with accuracies exceeding 0.80. The highest classification accuracies for specific micronutrients are achieved for vitamin B12 (0.94) and phosphorus (0.94), while the lowest are for vitamin E (0.81) and selenium (0.83).

Conclusions

This study demonstrates the feasibility of predicting unreported micronutrients from existing food labels using machine learning algorithms. The results show that the approach has the potential to significantly improve consumer knowledge about the micronutrient content of the foods they consume. Integrating these predictive models into mobile apps can enhance their accessibility and engagement with consumers. The implications of this research for public health are noteworthy, underscoring the potential of technology to augment consumers’ understanding of the micronutrient content of their diets while also facilitating the tracking of food intake and providing personalized recommendations based on the micronutrient content and individual preferences.

Read the full paper

Introduction

Background and Motivation

According to the World Health Organization (WHO), more than 2 billion people globally experience deficiencies in micronutrients such as vitamins and minerals [1]. Pregnant and nursing mothers and young children are particularly vulnerable to micronutrient deficiencies [2]. Insufficient intake of micronutrients has also been linked to disability-adjusted life years, a measure of time lost due to premature mortality and nonfatal health loss, and to various age-related disorders such as cardiovascular diseases and Alzheimer disease [3].

Food labels can be an effective tool for improving diets as they provide consumers with information to make healthier choices and decisions at the point of purchase and consumption [4-6]. In addition, increased consumer attention to nutrition labels has motivated food manufacturers to produce healthier products [7]. A systematic review of studies finds that reading nutrition labels is associated with healthier diets in adults [8].

Despite their potential benefits, food labels have limitations. In particular, including too much nutritional information on labels may be impractical due to size and ergonomic constraints [9]. Additionally, studies have found that clutter and information overload can overwhelm consumers, leading to the underutilization of labels [10]. As a result, food labels aim to convey only the most crucial nutritional information and are subject to revisions and amendments as people’s eating habits and the body of scientific knowledge regarding the impact of nutrition on health evolves.

For example, the US Nutrition Facts label (NFL) first appeared in 1994 and was revised in 2016. The revision required US food manufacturers to report potassium and vitamin D and made the reporting of vitamins A and C voluntary. Data from the National Health and Nutrition Examination Survey (NHANES 2007-2011) suggests that about 92.4% of US adults fall short of the estimated average requirement for consuming vitamin D [11]. However, the decision to remove vitamins A and C from the list of micronutrients required to appear on food labels was not made because Americans received sufficient amounts of these vitamins.

In fact, NHANES 2007-2011 indicated that 51.0% and 42.9% of adult Americans were not meeting dietary requirements for consuming vitamins A and C, respectively, even after accounting for these vitamins in fortified foods [11]. There are also many other unreported micronutrients that are underconsumed by the public. For example, according to NHANES 2007-2011, the vitamin E intake is below EAR for 93.9% of US adults, and magnesium and vitamin K deficiencies are observed among 60.9% and 71.1% of US adults, respectively.

Micronutrient deficiencies are significantly more common in low-income countries [1].

It is well established that many nutrients exhibit synergistic interactions, whereby a deficiency in 1 nutrient may exacerbate or manifest as a deficiency in another, and vice versa. Furthermore, there are strong correlations between the presence of certain nutrients in various foods. For example, vitamin E, a fat-soluble antioxidant, tends to be positively correlated with the fat content of foods. Similarly, there is a strong positive correlation between dietary phosphorus and dietary calcium in various foods [12]. This study aims to explore the potential for estimating unreported micronutrients in foods using the nutrition information provided on labels.

This is done by training a wide range of predictive machine learning algorithms using nutrition data from over 5000 foods. If successful, this could offer numerous benefits and options for consumers. For example, mobile apps could be developed to allow consumers to scan food labels and receive additional interactive information on the micronutrients of their interest that is not reported on labels.

The micronutrients examined in this study are those that are not currently reported on the NFL, including vitamin A (retinol), vitamin C, vitamin B1 (thiamin), vitamin B2 (riboflavin), vitamin B3 (niacin), vitamin B6, vitamin B12, vitamin E (alpha-tocopherol), vitamin K, and minerals such as magnesium, zinc, phosphorus, selenium, manganese, and copper. These micronutrients play vital roles in overall well-being, and their deficiency can lead to various health issues, as outlined in Multimedia Appendix 1.

Related Studies

In recent years, the use of machine learning has opened up new avenues for predicting and estimating food attributes, including nutrient content [13]. Numerous studies have attempted to estimate food nutrients based on images of foods, which can help estimate food calories, analyze people’s eating habits, and make food recommendations. For example, the research in [14] introduces a new deep learning architecture specifically designed to handle the vertical food traits common to a large number of categories.

Similarly, the authors in [15] propose a method for food image recognition using a fine-tuned deep convolutional neural network pretrained with ImageNet data. In [16], the authors propose a mobile-based dietary assessment system that can record real time images of the meal and analyze it for nutritional content, ultimately leading to improved dietary habits and a healthier lifestyle. The proposed system uses different machine learning models for accurate food identification and extracts semantically related words from a huge corpus of text collected over the internet to estimate food attributes and ingredients.

The systematic review in [17] provides a comprehensive review of the application of deep learning in the food domain, including food classification, quality detection, and calorie estimation.

In addition to research related to food image analysis, machine learning has been used to predict food nutrient content in several studies. In 1 study, multiple machine learning algorithms were used to predict the carbohydrates, protein, and sodium content of foods [13]. Similarly, the fiber content in packaged foods was estimated using a k-nearest neighbor algorithm in [18], and added sugar content was predicted using the same method in [19]. While these studies provide valuable insights into the predictability of certain nutrients based on other nutrition information, it should be noted that the predicted nutrition attributes are typically those already reported on food package labels.

In contrast, no previous study has focused on predicting those micronutrients that are not reported on food packages but are associated with deficiencies in a large portion of the population.

The prediction of unreported micronutrients has the potential to assist consumers in making informed choices about their dietary habits. However, it is crucial to present this information in an easily interpretable format for consumers. Franklin et al [20] found that a significant portion of the population faces difficulty understanding current food labels. To address this issue and avoid information overload, various label designs have been proposed. Among these designs is the Multiple Traffic Light system, developed by the UK Food Standards Agency, which uses traffic light colors and optional descriptors such as “low,” “medium,” and “high” to indicate reference intake levels for fat, saturated fat, sugars, and salt (as illustrated in Figure 1).

In comparison to traditional nutrition labels, mobile apps have the potential to significantly enhance consumers’ experiences and engagement in the context of predicting unreported micronutrients. These apps can be customized to meet individual consumers’ needs and preferences, such as allowing them to select specific micronutrients of interest, altering the way in which information is presented, choosing the level of detail, and comparing similar food products [21]. In addition, mobile apps may facilitate tracking daily or weekly nutrient intake and alerting users to any deficiencies.

A systematic review by Coughlin et al [21] found that nutrition and diet-related mobile apps may be effective in promoting healthy behaviors and facilitating positive behavior change in various countries. Existing mobile apps such as Cronometer and Nutrients provide some micronutrient information for certain foods. However, these apps have limited databases. By predicting unreported micronutrients from existing food label information, such apps can provide micronutrient information about a much larger array of foods. Moreover, such mobile app integration will also allow apps to track users’ micronutrient intake over time and suggest foods to ensure that users consume sufficient amounts of various micronutrients.

For example, the study in [22] presents a machine learning approach to recipe development based on nutrients in food, which can improve the nutritional quality of diets and prevent chronic diseases.

Figure 1

An example of Multiple Traffic Light (MTL) nutrition label developed by Food Standards Agency (FSA).

Figure image at the original source — open the original paper. This file is not included in this text import.

Methods

Nutrition Data

This study relies on nutritional data obtained from the Food and Nutrient Database for Dietary Studies (FNDDS), which is made available by the US Department of Agriculture (USDA). The FNDDS database is comprised of food intake information obtained from the What We Eat In America survey, which is conducted in collaboration between the USDA and the US Department of Health and Human Services (DHHS). The survey involves 2 interviews, the first conducted in person and the second via telephone within a time frame of 3 to 10 days, during which participants are asked to recall their dietary intake for 2 consecutive 24-hour periods.

While the USDA is responsible for the dietary data collection methods, database maintenance, and data processing and evaluation, DHHS oversees sample design and data collection. Widely used in nutrition research, dietary assessment, and policy development, the FNDDS database is regarded as a reliable data set in the field [23].

We used nutrition data from 5624 foods included in the latest release of the FNDDS data set (ie, FNDDS 2019-2020) for our study, and no missing values were observed in the data set. The USDA’s Food Patterns Equivalents Database provides information about the food groups targeted in dietary guidance, and each food item in the FNDDS data set is associated with 1 of the 37 food groups defined in Food Patterns Equivalents Database. The independent variables in our research are the nutrition data provided on the current NFL, including calories, total fat, saturated fat, trans fat, cholesterol, sodium, total carbohydrates, dietary fiber, total sugars, protein, vitamin D, calcium, iron, and potassium.

The mean, SD, and important percentiles of these attributes are presented in Table 1.

Furthermore, Table 2 presents the mean, SD, and important percentiles of the unreported micronutrients that serve as dependent variables in this study, all of which were derived from the FNDDS data set.

Figure 2 illustrates the correlation coefficients between the nutrition variables shown in Table 1 (ie, independent variables in this study) and the micronutrients being predicted (presented in Table 2). Strong positive correlations between certain nutrients can be observed. While the co-occurrence of some of these nutrients, such as magnesium and dietary fiber [24], calcium and phosphorus [25], and zinc and protein [26], has been documented in the literature, it remains unclear whether these correlations are sufficient to accurately approximate unreported micronutrients.

To address this question, a range of machine learning regression and classification models are used. Regression models are used to predict the quantities of micronutrients, while classification models aim to identify the category (ie, “low,” “medium,” or “high”) of micronutrients for each food, as will be discussed later.

Table 1

The mean, SD, and important percentiles of nutrition attributes (per 100 g of foods) listed on the Nutrition Facts label used in this study.


Value, mean (SD)Percentile


Min25th33rd50th (median)66th75thMax
Calories (kcal)226.3 (169.86)0.0091.0123.00191.0271.0337.0902.0
Total fat (g) 10.55 (15.81)0.000.952.005.139.9813.72100.0

Saturated fat (g)3.43 (6.42)0.000.140.411.432.944.1795.61

Trans fat (g)0.26 (1.45)0.000.000.000.0030.080.1624.35
Cholesterol (mg)38.72 (117.35)0.000.000.002.0040.065.03100
Sodium (mg)306.4 (939.22)0.0036.055.084.0281.0396.06681.76
Total carbohydrate (g) 22.12 (27.26)0.000.052.409.3420.8734.91100.0

Dietary fiber (g)2.04 (4.26)0.000.000.000.041.602.4026.32

Total sugars (g)6.75 (13.71)0.000.000.000.493.006.0599.80
Protein (g)11.35 (10.53)0.002.383.698.0214.8019.8876.99
Vitamin D (mcg)0.36 (3.09)0.000.000.000.000.000.0221.86
Calcium (mcg)73.32 (199.85)0.008.0011.0019.0039.0063.002003
Iron (mg)2.76 (5.66)0.000.490.731.302.082.5764.55
Potassium (mcg)265 (371.4)0.00111.0143.0219.0290.03293535
Table 2

The mean, SD, and important percentiles of micronutrients (per 100 g) that are not listed on the Nutrition Facts label and are dependent variables in this study are derived from the Food and Nutrient Database for Dietary Studies (FNDDS) data set.


Value, mean (SD)Percentile


Min25th33rd50th (median)66th75thMax
Vitamin A (mcg)203.12 (469.12)0.000.001.806.0030.4362.210,851.18
Vitamin B1 (mg)0.21 (0.51)0.000.030.040.070.130.2223.37
Vitamin B2 (mg)0.23 (0.44)0.000.040.070.150.210.264.38
Vitamin B3 (mg)3.40 (4.76)0.000.370.682.114.015.0645.24
Vitamin B6 (mg)0.26 (0.46)0.000.030.060.120.240.356.13
Vitamin B12 (mcg)1.20 (4.27)0.000.000.030.070.541.2754.68
Vitamin C (mg)8.36 (46.70)0.000.000.010.290.902.50240.92
Vitamin E (mg)0.88 (2.81)0.000.000.090.190.290.4640.02
Vitamin K (mcg)9.30 (22.15)0.000.000.301.1841.903.40183.90
Magnesium (mg)32.26 (45.80)0.0010.0013.0020.0025.0029.00290.38
Zinc (mg)1.94 (2.33)0.000.220.480.801.702.6612.50
Phosphorus (mg)153.8 (202.20)0.0035.061.00129.0191.0215.0774.38
Selenium (mcg)12.46 (27.07)0.000.100.604.0014.021.30172.81
Manganese (mg)0.49 (4.30)0.000.000.020.050.120.3052.26
Copper (mg)0.16 (0.54)0.000.020.040.070.100.145.12
Figure 2

Correlation coefficients between independent (see Table 1) and dependent (see Table 2) nutrition attributes in this study.

Figure image at the original source — open the original paper. This file is not included in this text import.

Machine Learning Algorithms

Classification and Regression Models

In addition to linear models, such as ordinary least squares (OLS) regression or logistic regression classification models, a range of machine learning regression and classification algorithms are deployed to capture the nonlinear and complex relationships between the dependent and independent variables in this study. The no free lunch theorem (NFLT) in machine learning [27] states that no one algorithm is optimal for every classification or regression problem, and therefore, a variety of algorithms are used to ensure that the reported predictive power of input attributes is not limited by a particular algorithm.

A brief description of the algorithms used in this study is provided below. Those interested in further information about these algorithms are encouraged to refer to [28].

Decision Trees

Decision trees are a widely used algorithm that is popular due to their low computational complexity and transparency, making their output easy to interpret. These trees are constructed through a series of if-then rules based on the value of input features. Classification and regression trees are a widely deployed implementation of decision trees, and through the concept of ensemble learning, several individual decision trees can be combined to form random forests (RFs). The RF algorithm is based on the construction of a multitude of decision trees at training time and outputting the class that is the mode of the classes (classification) or mean prediction (regression) of the individual trees.

This technique provides more robust and accurate predictions. Gradient boosting machines (GBMs) are also a popular tree-based algorithm that uses the concept of boosting, in which an iterative approach is taken to construct an ensemble model with each individual tree aimed at improving overall performance. GBMs differ from RFs by modifying the weights of the training data at each iteration, allowing for a greater emphasis on incorrectly classified data points in subsequent iterations and thus improving the overall accuracy of the model.

K-Nearest Neighbors

The k-nearest neighbors (KNN) is a simple yet powerful algorithm that makes predictions for any record by finding the k most similar data points in the training data set. KNN uses a distance metric, such as Euclidean distance, to measure the similarity between a test sample and the training data set. The algorithm then identifies the k closest neighbors to the test sample based on the distance metric and assigns the class of the majority of the nearest neighbors to the test sample.

This algorithm is nonparametric and does not require a training phase, making it easy to implement and apply to various data sets.

Neural Networks

Neural networks are a complex and powerful class of machine learning algorithms that are based on the structure and function of the human brain. They consist of several simple, highly interconnected processing elements known as artificial neurons that are structured in layers and connected through weighted links. The aim of this algorithm is to simulate the behavior of the human brain, with neurons activated by other neurons to which they are connected and, once triggered, generate output that can trigger additionally connected neurons.

The neural network is composed of an input layer, one or more hidden layers, and an output layer. Neural networks can be used for both classification and regression tasks, and their power lies in their ability to capture complex and nonlinear relationships between the input features and the output variable.

Support Vector Machines

Support vector machines (SVMs) aim to find optimal decision planes that serve as decision boundaries. For this, SVM uses the concept of kernel methods. In this method, the input data is mapped onto a high-dimensional feature space using a set of functions known as kernels, where decision boundaries can be defined. Linear kernels and radial basis function (RBF) kernels are 2 widely used SVM kernel functions. SVMs are particularly effective in high-dimensional spaces, where the number of features is large compared to the number of samples.

SVMs can be used for both regression and classification tasks and can handle complex data sets with nonlinear boundaries.

It should be noted that these algorithms are parameterized, and the choice of their tuning parameters, also referred to as hyperparameters, can significantly impact their performance [28,29]. Table 3 lists the machine learning algorithms deployed in this study along with their corresponding hyperparameters.

As shown in Table 3, the study deploys both classification and regression models to predict the micronutrient contents of foods. While regression models attempt to predict the exact nutrient quantities, it should be noted that most consumers may not need the exact numeric quantities of food micronutrients. This is due to the wide range of daily recommended values for micronutrients, which can range from micrograms to milligrams. As a result, interpreting the numeric quantities of micronutrients can be challenging for many consumers [20].

To address this issue, food authorities around the globe have developed simplified food labels, such as the Multiple Traffic Light designs by the UK Food Standards Agency (see Figure 1). Similarly, in this study, 3 categories of low, medium, and high are also considered for each micronutrient based on the percentiles of their distribution (see Table 2). The “low” category represents values that are below the 33rd percentile; the “medium” category refers to values between the 33rd and 66th percentiles; and the “high” category refers to values above the 66th percentile.

These labels can then be used to represent the various micronutrient contents. From a modeling perspective, these will be 3-level classification tasks and are examined using the classification algorithms shown in Table 2. In order to avoid overfitting, the data was divided into 2 mutually exclusive subsets: the training set (80%) and the test set (20%) [28,29]. A methodology introduced in [29] was used for this purpose, with the training and test sets being determined at random but possessing similar distributions of the dependent variable in both sets.

The optimal values of the hyperparameters were subsequently determined through an adaptive search algorithm proposed by Kuhn and Johnson [29] and 10-fold cross-validation using only the training set. In k-fold cross-validation, data is randomly divided into k equal partitions, each referred to as a fold, with k-1 folds being used to construct a model and the remaining fold being used for performance evaluation. This process is repeated k times, with a different fold chosen for evaluation each time.

Once the optimal values of the hyperparameters are determined, the entire training set is used to train a model, the performance of which is then evaluated on the test set. This approach ensures that the test set samples are not used during the model training or hyperparameter optimization steps, thereby minimizing the risk of overfitting [28].To ensure that performance evaluations are not specific to any one random test set (which could potentially consist only of easily predictable samples, for example), the above procedure is replicated 10 times, each time using new random training and test sets, and the performance measures are averaged [29].

The evaluation of models’ performance based on 10 independent, random, and completely out-of-sample test sets is deemed critical in ensuring that the results reported in this study are not subject to overfitting, a risk when applying advanced machine learning algorithms [28,29].

Table 3

List of machine learning algorithms deployed in this study along with their hyperparameters.

Algorithm nameAcronymApplicationHyperparameters
Classification and regression treesCARTClassification and regression
  • Complexity parameter, cp

Gradient boosting machinesGBMClassification and regression
  • No. of trees, n.trees

  • Depth, interaction.depth

  • Shrinkage parameter, shrinkage

K-nearest neighborsKNNClassification and regression
  • No. of neighbors, k

Logistic regressionLRClassification
  • N/Aa

Neural networksNNClassification and regression
  • Weight decay, decay

  • No. of hidden layer units, size

Ordinary least squaresOLSRegression
  • N/A

Random forestsRFClassification and regression
  • No. of variables available for splitting, mtry

Support vector machines–linear kernelSVM-LClassification and regression
  • Cost parameter, c

Support vector machines–radial basis function kernelSVM-RBFClassification and regression
  • Cost parameter, c

  • RBF kernel parameter, sigma

aN/A: not applicable.

Results

Regression Models

Figure 3 shows the R2 of different regression models for predicting unreported vitamins using the nutrition information provided by the NFL. It is found that vitamin B6 could be predicted with the highest accuracy, with an R2 of 0.75 for the best model, namely, GBM. In contrast, the prediction of vitamin C is found to be the most challenging, with an R2 of 0.37 for the best model, namely, RFs. The results also demonstrate the superiority of most machine learning algorithms over the linear regression model (OLS), as the former is able to capture complex and nonlinear relationships that may exist between the predictors and dependent variables.

Similarly, Figure 4 shows the R2 of various regression models for estimating unreported minerals. As shown, magnesium can be estimated with the highest accuracy (R2=0.82 for the best model, ie, GBM), while the accuracy of predicting manganese is the lowest compared to other minerals (R2=0.28 for the best model, ie, NN). Again, the result confirms that most machine learning algorithms outperform OLS.

The results from Figures 3 and 4 show that while the use of machine learning models can explain a significant portion of the variability in unreported micronutrients based on the nutrition information provided on food labels, the accuracy of such models in predicting the exact value of these micronutrients is far from perfect. However, as discussed, the exact numeric value of a micronutrient may not always be necessary. The next section presents the results of the classification models.

Figure 3

R2 of different regression models for predicting unreported vitamins using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.
Figure 4

R2 of different regression models for predicting unreported minerals using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.

Classification Models

The accuracy of various classification models for predicting the category (ie, “low,” “medium,” or “high”) of unreported vitamins using the nutrition information provided on NFL is shown in Figure 5. In this context, classification accuracy is defined as the proportion of correctly classified records. It can be seen that reasonable accuracy is achievable for predicting the categories of most vitamins. When comparing different vitamins, the results suggest that the accuracy is particularly high (>0.90) for the best machine learning models when predicting the presence of vitamins B1 and B12.

In general, nonlinear models, such as GBM, SVM, RF, and NN, are shown to outperform linear logistic regression models and simple decision trees (classification and regression tree).

Further examination of the misclassified records in Figure 5 reveals 2 notable characteristics. First, a significant percentage of misclassified records are misclassified between the “low” and “medium” categories or between the “medium” and “high” categories, with a negligible percentage between the “low” and “high” categories. For example, considering the best classification model for vitamin A (ie, GBM), 13.82% of foods are misclassified. This includes 3.42% of foods in the “low” vitamin A category being classified as “medium,” 2.98% of foods from the “medium” category being classified as “low,” 3.85% of foods from the “medium” class being classified as “high,” 3.35% of foods from the “high” class being classified as “medium,” and only 0.18% of foods from the “low” category being classified as “high,” and 0.04% of foods from the “high” category being misclassified as “low.” Second, an examination of the misclassified records reveals that most are borderline.

For example, considering the GBM model for vitamin A prediction, the average percentile of “low” category records that are misclassified as “medium” is 30.78%, which is close to the classification boundary (ie, 33%). Similarly, the average percentile of “medium” category records that are misclassified as “low” and “high” is 38.56% and 60.24%, respectively. These observations suggest that not only is the rate of misclassification relatively small, but also that those records that are misclassified are not severely misleading.

Similarly, Figure 6 shows the accuracy of different classification models for predicting the category (ie, “low,” “medium,” or “high”) of unreported vitamins using the nutrition information provided on the NFL. Again, we can see a reasonable performance of classification models, where the best models’ accuracy is higher than 90% for predicting magnesium, phosphorous, and zinc.

The results in Figure 6 demonstrate the reasonable performance of classification models in predicting the categories of unreported minerals, with the best models achieving accuracy higher than 0.90 for predicting magnesium, phosphorous, and zinc. In order to gain a deeper understanding of the role of each independent variable in predicting unreported micronutrients, Table 4 presents variable importance scores (VIS) for each predictor nutrition attribute when predicting various unreported vitamins. As described in [29], VIS is calculated by removing independent variables from a model and measuring the corresponding decrease in the model’s accuracy.

The most important attribute is assigned a value of 100, with other attributes scaled proportionally.

The results in Table 4 align with the correlation results shown in Figure 2, with protein, iron, and potassium frequently appearing as highly predictive independent attributes when classifying foods based on their vitamin content. Similarly, Table 5 presents the VIS values for each nutrition attribute when predicting various unreported minerals, with the results again agreeing with the correlation values shown in Figure 2, where potassium, iron, calcium, and protein are among the top predictors.

Figure 5

Accuracy of different classification models for predicting the category of unreported vitamins using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; LR: logistic regression; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.
Figure 6

The accuracy of different classification models for predicting unreported minerals using other nutrition information presented on Nutrition Facts Label. CART: classification and regression trees; GBM: gradient boosting machines; KNN: k-nearest neighbors; LR: logistic regression; NN: neural networks; OLS: ordinary least squares; RF: random forests; SVM-L: support vector machines-linear kernels; SVM-RBF: support vector machines-radial basis function.

Figure image at the original source — open the original paper. This file is not included in this text import.
Table 4

The variable importance score quantities for each of the reported nutrition attributes when predicting various unreported vitamins.


Vitamin AVitamin B1Vitamin B2Vitamin B3Vitamin B6Vitamin B12Vitamin CVitamin EVitamin K
Calories60.4922.3920.4919.3323.089.0575.3374.91a49.51
Total fat52.7119.418.6615.3419.297.7162.48100a65.89
Saturated fat52.2621.3122.4717.8124.2712.0449.9569.3958.60
Trans fat37.7632.9028.2614.5225.1913.9047.1154.8133.28
Cholesterol41.7629.7116.309.6915.14100a40.4246.0736.40
Sodium67.3227.9225.9217.4325.1014.9165.9363.8756.19
Total carbohydrate82.20a48.6016.7018.7322.7117.62100a70.7449.43
Dietary fiber38.0913.5513.0212.315.277.6136.7936.72100a
Total sugars50.5812.3112.9510.9721.566.3550.3260.1037.93
Protein86.07a47.08a100a100a82.64a39.68a82.5a72.1259.97
Vitamin D55.9717.5011.665.689.76527.9529.4778.364.50
Calcium100a22.0933.1524.5929.921.1566.8273.3176.27a
Iron71.11100a55.31a76.92a100a33.7a71.8575.35a72.01
Potassium74.8945.91a40.32a38.12a51.68a28.4286.42a68.979.01a

aThe top 3 predictors.

Table 5

The variable importance score quantities for each of the reported nutrition attributes when predicting various unreported minerals.


CopperMagnesiumManganesePhosphorusSeleniumZinc
Calories24.217.1938.2110.9720.068.57
Total fat22.7313.4433.457.1418.956.97
Saturated fat26.716.2437.329.8821.3911.78
Trans fat19.9115.9041.410.4819.769.10
Cholesterol33.7134.1965.788.3044.09a4.74
Sodium30.9716.5350.4212.4928.029.89
Total carbohydrate28.6817.2172.45a8.1231.0211.73
Dietary fiber20.4366.84a72.256.0917.068.36
Total sugars20.9510.6749.205.0518.986.11
Protein31.9737.87a52.52100a100a100a
Vitamin D11.496.68322.603.228.854.50
Calcium34.64a24.8661.9795.74a38.2133.43
Iron100a29.3183.56a12.1127.1955.38a
Potassium70.86a100a100a37.83a48.51a37.76a

aThe top 3 predictors.

Discussion

Principal Findings

The results presented in the previous section demonstrate the potential for machine learning models to estimate unreported micronutrients based on the nutrition information provided on food labels. The regression models presented in this study showed that vitamin B6 and magnesium were the micronutrients that could be predicted with the highest accuracy, while vitamin C and manganese were the most challenging micronutrients to predict accurately. Furthermore, the classification models were able to predict the categories of most vitamins and minerals with a high degree of accuracy, with nonlinear models outperforming linear models.

The VISs for each predictor nutrition attribute were also calculated to gain a deeper understanding of the role of each independent variable in predicting unreported micronutrients. The results indicate that protein, iron, potassium, and calcium were among the top predictors for both vitamins and minerals.

The findings of this study demonstrate that classification models outperform regression models in predicting unreported micronutrients using nutrition information provided on food labels. It is important to note that regression models aim to make precise predictions about continuous dependent variables, which makes them more complex than classification models that predict categorical outcomes based on input features. Furthermore, the skewed distribution of dependent nutrition variables considered in the regression models, as presented in Table 2, can significantly hinder their prediction accuracy.

The interpretation of exact numeric quantities of food micronutrients, however, can be challenging for many consumers due to the wide range of daily recommended values [20], making it unnecessary for most to require exact numeric quantities. On the other hand, classification models, which indicate micronutrient levels as “low,” “medium,” or “high,” provide easily interpretable insights for consumers. Mobile apps that implement classification models to predict unreported micronutrients can offer beneficial information to various user groups, especially those at risk of micronutrient deficiencies, including vegetarians, vegans [30], and older adults [3,31].

By scanning food labels, mobile apps can provide a simplified and engaging presentation of nutrient content and also offer features such as daily meal planning and water intake tracking [32,33]. Fortunately, machine learning algorithms are easy to deploy on mobile apps, and they do not require privacy-sensitive permissions to function. Furthermore, mobile apps that monitor users’ food intake can suggest foods based on their micronutrient content. Such features have been reported to be effective in increasing dietary diversity and alleviating micronutrient deficiency [34].

In general, these features can raise user awareness of their health and nutrition and, as a result, may lead to better dietary habits [35].

Limitations and Future Studies

While this research offers valuable insights into the potential for estimating various unreported micronutrients from existing food labels, it has some limitations that should be considered. Most importantly, this study focused on American diets using the foods listed in the What We Eat In America database. However, given that diets differ between countries [36], further research using diet and nutrient data from other countries would be valuable. In addition to the potential for improved performance with larger training data sets, it is worth considering that certain machine learning algorithms may perform better at predicting specific micronutrients or food categories.

Therefore, the development of ensemble machine learning models that combine the strengths of individual models may represent a promising avenue for further enhancing predictive accuracy and should be pursued in future research. Finally, a follow-up study demonstrating the integration of machine learning algorithms to predict unreported micronutrients would provide significant practical value.

Conclusions

This study demonstrates the feasibility of predicting unreported micronutrients from food labels. By analyzing detailed nutrition data from over 5000 foods and applying a range of machine learning algorithms, the study finds that it is possible to predict the category (ie, “Low,” “Medium,” or “High”) of various vitamins and minerals with an accuracy of at least 0.80. According to the results of this study, the highest prediction accuracies for specific micronutrients were achieved for vitamin B12 (0.94) and phosphorus (0.94), while the lowest were for vitamin E (0.81) and selenium (0.83).

These findings have important implications for helping consumers make more informed decisions about their nutrition and for improving the overall health of the population. By using mobile apps to present this information in an engaging and easy-to-interpret manner, it may be possible to encourage better nutrition decisions and address the significant prevalence of micronutrient deficiencies.

Conflicts of Interest: None declared.

Multimedia Appendix 1

The key role of micronutrients considered in this study and the health issues associated with their deficiency.

Supplement file at the original source — open the original paper. This file is not included in this text import.

Abbreviations

DHHS

Department of Health and Human Services

FNDDS

Food and Nutrient Database for Dietary Studies

GBM

gradient boosting machines

KNN

k-nearest neighbors

LR

logistic regression

NFL

Nutrition Facts labels

NHANES

National Health and Nutrition Examination Survey

OLS

ordinary least squares

RBF

radial basis function

RF

random forest

SVM

support vector machine

USDA

US Department of Agriculture

VIS

variable importance score

WHO

World Health Organization

Data Availability

This study used the Food and Nutrient Database for Dietary Studies (FNDDS) 2019-2020 data set, which is made available by the US Department of Agriculture (USDA) and can be obtained from [37].

1 World Health Organization World Health Report 2000 : Health Systems: Improving Performance 2000 AlbanyWorld Health Organization
2 Black RE Allen LH Bhutta ZA Caulfield LE de Onis M Ezzati M Mathers C Rivera J Maternal and Child Undernutrition Study Group Maternal and child undernutrition: global and regional exposures and health consequences Lancet 2008 371 9608 243 260 10.1016/S0140-6736(07)61690-0 18207566 S0140-6736(07)61690-0 18207566
3 Montgomery SC Streit SM Beebe ML Maxwell PJ Micronutrient needs of the elderly Nutr Clin Pract 2014 29 4 435 444 10.1177/0884533614537684 24961877 0884533614537684 24961877
4 Miller LMS Beckett LA Bergman JJ Wilson MD Applegate EA Gibson TN Developing nutrition label reading skills: a web-based practice approach J Med Internet Res 2017 19 1 e16 10.2196/jmir.6583 28087497 v19i1e16 28087497 PMC5273399
5 Volkova E Li N Dunford E Eyles H Crino M Michie J Ni Mhurchu CN "Smart" RCTs: development of a smartphone app for fully automated nutrition-labeling intervention trials JMIR mHealth uHealth 2016 4 1 e23 10.2196/mhealth.5219 26988128 v4i1e23 26988128 PMC4816928
6 Mönninghoff A Fuchs K Wu J Albert J Mayer S The effect of a future-self avatar mobile health intervention (FutureMe) on physical activity and food purchases: randomized controlled trial J Med Internet Res 2022 24 7 e32487 10.2196/32487 35797104 v24i7e32487 35797104 PMC9305430
7 Giró-Candanedo M Claret A Fulladosa E Guerrero L Use and understanding of nutrition labels: impact of diet attachment Foods 2022 11 13 1918 10.3390/foods11131918 35804734 foods11131918 35804734 PMC9266186
8 Anastasiou K Miller M Dickinson K The relationship between food label use and dietary intake in adults: a systematic review Appetite 2019 138 280 291 10.1016/j.appet.2019.03.025 31010704 S0195-6663(18)31280-7 31010704
9 Miller LMS Cassady DL The effects of nutrition knowledge on food label use. A review of the literature Appetite 2015 92 207 216 10.1016/j.appet.2015.05.029 26025086 S0195-6663(15)00274-3 26025086 PMC4499482
10 Drichoutis AC Lazaridis P Nayga R Consumers' use of nutritional labels: a review of research studies and issues Acad Mark Sci Rev 2006 10 9 1 25
11 Bailey RL Gahche JJ Miller PE Thomas PR Dwyer JT Why US adults use dietary supplements JAMA Intern Med 2013 173 5 355 361 10.1001/jamainternmed.2013.2299 23381623 1568520 23381623
12 Takeda E Yamamoto H Yamanaka-Okumura H Taketani Y Increasing dietary phosphorus intake from food additives: potential for negative impact on bone health Adv Nutr 2014 5 1 92 97 10.3945/an.113.004002 24425727 S2161-8313(22)01179-6 24425727 PMC3884105
13 Ma P Li A Yu N Li Y Bahadur R Wang Q Ahuja JK Application of machine learning for estimating label nutrients using USDA global branded food products database, (BFPD) J Food Compost Anal 2021 100 103857 10.1016/j.jfca.2021.103857
14 Martinel N Foresti GL Micheloni C Wide-slice residual networks for food recognition 2018 IEEE Winter Conference on Applications of Computer VisionJuly 23-27, 2018Taipei City, Taiwan 10.1109/wacv.2018.00068
15 Yanai K Kawano Y Food image recognition using deep convolutional network with pre-training and fine-tuning 2015 IEEE International Conference on Multimedia & Expo WorkshopsJune 29-July 3, 2015Torino, Italy 10.1109/icmew.2015.7169816
16 Yunus R Arif O Afzal H Amjad MF Abbas H Bokhari HN Haider ST Zafar N Nawaz R A framework to estimate the nutritional value of food in real time using deep learning techniques IEEE Access 2019 7 2643 2652 10.1109/access.2018.2879117
17 Zhou L Zhang C Liu F Qiu Z He Y Application of deep learning in food: a review Compr Rev Food Sci Food Saf 2019 1118 6 1793 1811 10.1111/1541-4337.12492 33336958 33336958
18 Davies T Louie JCY Scapin T Pettigrew S Wu JH Marklund M Coyle DH An innovative machine learning approach to predict the dietary fiber content of packaged foods Nutrients 2021 13 9 3195 10.3390/nu13093195 34579072 nu13093195 34579072 PMC8470168
19 Davies T Louie JCY Ndanuko R Barbieri S Perez-Concha O Wu JHY A machine learning approach to predict the added-sugar content of packaged foods J Nutr 2022 152 1 343 349 10.1093/jn/nxab341 34550390 S0022-3166(22)00514-4 34550390
20 Franklin J Holman C Tam R Gifford J Prvan T Stuart-Smith W Denyer G Markovic T O'Connor H Validation of the e-NutLit, an electronic tool to assess nutrition literacy J Nutr Educ Behav 2020 52 6 607 614 10.1016/j.jneb.2019.10.008 31786068 S1499-4046(19)31072-3 31786068
21 Coughlin SS Whitehead M Sheats JQ Mastromonico J Hardy D Smith SA Smartphone applications for promoting healthy diet and nutrition: a literature review Jacobs J Food Nutr 2015 2 3 021 26819969 26819969 PMC4725321
22 Lei Z ul Haq A Dorraki M Zhang D Abbott D Composing recipes based on nutrients in food in a machine learning context Neurocomputing 2020 415 382 396 10.1016/j.neucom.2020.08.071
23 Ahuja JKC Moshfegh AJ Holden JM Harris E USDA food and nutrient databases provide the infrastructure for food and nutrition research, policy, and practice J Nutr 2013 143 2 241S 249S 10.3945/jn.112.170043 23269654 S0022-3166(22)01121-X 23269654
24 Hopping BN Erber E Grandinetti A Verheus M Kolonel LN Maskarinec G Dietary fiber, magnesium, and glycemic load alter risk of type 2 diabetes in a multiethnic cohort in Hawaii J Nutr 2010 140 1 68 74 10.3945/jn.109.112441 19889808 S0022-3166(22)06924-3 19889808 PMC2793122
25 Jafari Giv Z Avan A Hamidi F Tayefi M Khayyatzadeh SS Javandoost A Nematy M Ferns GA Mobarhan MG Nutrients intake, and serum calcium and phosphorus levels: an evidence-based study J Clin Lab Anal 2018 32 2 e22235 10.1002/jcla.22235 29112279 29112279 PMC6816854
26 Lönnerdal B Dietary factors influencing zinc absorption J Nutr 2000 130 5S Suppl 1378S 1383S 10.1093/jn/130.5.1378S 10801947 10801947
27 Wolpert DH The lack of a priori distinctions between learning algorithms Neural Computation 1996 8 7 1341 1390 10.1162/neco.1996.8.7.1341
28 Tibshirani R Hastie T Witten D James G Statistical learning An Introduction to Statistical Learning 2021 New YorkSpringer
29 Kuhn M Johnson K Applied Predictive Modeling 2019 New YorkSpringer
30 Schüpbach R Wegmüller R Berguerand C Bui M Herter-Aeberli I Micronutrient status and intake in omnivores, vegetarians and vegans in Switzerland Eur J Nutr 2017 56 1 283 293 10.1007/s00394-015-1079-7 26502280 10.1007/s00394-015-1079-7 26502280
31 Hoffman R Micronutrient deficiencies in the elderly - could ready meals be part of the solution? J Nutr Sci 2017 6 e2 10.1017/jns.2016.42 28620477 00042 28620477 PMC5465850
32 Dunford E Trevena H Goodsell C Ng KH Webster J Millis A Goldstein S Hugueniot O Neal B FoodSwitch: a mobile phone app to enable consumers to make healthier food choices and crowdsourcing of national food composition data JMIR mHealth uHealth 2014 2 3 e37 10.2196/mhealth.3230 25147135 v2i3e37 25147135 PMC4147708
33 Fuchs K Barattin T Haldimann M Ilic A Towards tailoring digital food labels: insights of a smart-RCT on user-specific interpretation of food composition data Proceedings of the 5th International Workshop on Multimedia Assisted Dietary Management 2019 MADiMa '19October 21, 2019Nice, France67 75 10.1145/3347448.3357171
34 Molani-Gol R Kheirouri S Alizadeh M Does the high dietary diversity score predict dietary micronutrients adequacy in children under 5 years old? A systematic review J Health Popul Nutr 2023 42 1 2 10.1186/s41043-022-00337-3 36609429 10.1186/s41043-022-00337-3 36609429 PMC9817313
35 Franco RZ Fallaize R Lovegrove JA Hwang F Popular nutrition-related mobile apps: a feature assessment JMIR mHealth uHealth 2016 4 3 e85 10.2196/mhealth.5846 27480144 v4i3e85 27480144 PMC4985610
36 Mayén AL Marques-Vidal P Paccaud F Bovet P Stringhini S Socioeconomic determinants of dietary patterns in low- and middle-income countries: a systematic review Am J Clin Nutr 2014 100 6 1520 1531 10.3945/ajcn.114.089029 25411287 S0002-9165(23)04853-0 25411287
37 Food and nutrient database for dietary studies (FNDDS) US Department of Agriculture 2023-04-03 https://data.nal.usda.gov/dataset/food-and-nutrient-database-dietary-studies-fndds
Publication and source details

Original title: Predicting Unreported Micronutrients From Food Labels: Machine Learning Approach

Rouzbeh Razavi; Guisen Xue

Journal of Medical Internet Research · 2023

Corresponding Author: Rouzbeh Razavi rrazavi@kent.edu©Rouzbeh Razavi, Guisen Xue. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 12.04.2023.2023https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research, is properly cited. The complete bibliographic information, a link to the original publication on https://www.jmir.org/, as well as this copyright and license information must be included.

Repository JATS snapshot; version as supplied

Source retrieved: 2026-11-11T19:43:31.406404+00:00

DOI: 10.2196/45332 · PMC10134025