Vitamin D3 for Life. Live Enlightened.

Research libraryVitamin D3 For Life
Study design and methods

Primary relevance to vitamin D Vitamin D is a stated subject of this paper.

Vitamin D is a stated subject of this paper; the supporting source evidence is shown below.

Why this paper is included

Supporting source evidence:

After comparing all the RMSE obtained from all the different models tested, the one that seemed to predict more accurately serum vitamin D status was the RF model, which showed the lowest RMSE of 6·79, and so it was further develop (online Supplementary Table S2).

Source: Results. 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 · Human research reported

How this paper was classified

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

A total of 220 healthy volunteers aged between 18 and 78 years were included in this study.

Source: Abstract.

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

Forecasting levels of serum 25-hydroxyvitamin D based on dietary intake, lifestyle and personal determinants in a sample of Southern Europeans

Study design awaiting verification · The British Journal of Nutrition · 2023

Original publication title

Forecasting levels of serum 25-hydroxyvitamin D based on dietary intake, lifestyle and personal determinants in a sample of Southern Europeans

Ana Valer-Martinez; Carmen Sayon-Orea; José Alfredo Martínez Hernandez; Carmen De la Fuente-Arrillaga; Javier Pérez de Rojas; Fe Barcones; Miguel Angel Martínez-González; Maira Bes-Rastrollo

© The Author(s) 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

Study methods

What methods does the paper describe?

Study population

This study was conducted in two different samples of Spanish populations. The first group based on 100 subjects was collected from students and workers from the University of Navarra, whereas the second group was a sample of 120 people recruited through different health care centres from Zaragoza, all of them Caucasian. At first, 150 subjects from Zaragoza were randomly invited to join the study, from which thirty declined the invitation, whereas nearly half of the individuals who received the invitation from the University of Navarra refused to participate.

The unique inclusion criteria adopted were being over the age of 18 and willingness to provide blood samples and to complete a battery of questionnaires. None of the participants had a history of cancer, severe kidney disease or pregnancy at the time of the study. Blood samples were extracted from all participants to determine their 25(OH)D levels, especially during winter and spring months, mostly in May. They also completed questionnaires including an FFQ(30), leisure-time physical activity(31) and other questionnaires(32).

Sample size was determined according to a study based on French population(16). Considering an alpha risk of 0·05, a power of 80 % and a common standard deviation of 10 in a two-sided test, the sample size was calculated to be 220. The drop-out rate was considered to be 10 %.

Diet was assessed according to a well-designed, validated and semi-quantitative FFQ(30) which contains 136-item information about participants’ usual food intake in the past year. For each item, common portion sizes were specified, and consumption frequencies were divided into nine categories ranging from ‘never or almost never’ to ‘more than six servings per day’. A dietitian updated the nutrient database by using the latest available information included in the food composition tables in Spain, after processing all the questionnaires. Nutrient intake scores were calculated using an ad hoc computer programme, which was developed specifically for this purpose.

The sum of the frequency of a given food item consumption multiplied by the nutrient composition of the specified food portion was calculated. This questionnaire also includes information about supplementation intake, sun exposure, history of sunburns and the use of solar protective measures(30). Intake of vitamin D supplementation was calculated using the frequency of daily consumption of vitamin D supplementation multiplied by the amount of vitamin D of each pill derived from the brand of vitamin D supplementation or multivitamin supplement provided for each participant.

Additionally, data regarding physical activity were collected through another questionnaire – also validated(31). It contains information about anthropometric measures (weight, height, waist and hip perimeter), level of physical activity, time spent walking and doing up to seventeen other activities. When quantifying the amount of physical activity carried out during leisure time, each activity was weighted using its proportional number of metabolic equivalents (MET). This was done using the Compendium of Physical Activities, assigning a metabolic rate index (MET score) for each activity.

Time spent on each activity (according to time per week and months per year) was multiplied by its corresponding MET score. Afterwards, all MET scores for each activity and participant were added so as to obtain a global value of MET-h/week for each volunteer. It should also be noted that participants of the study showed great variability in the length of time spent on leisure activities during weekends as a consequence of the lack of routine, which may cause an overestimation of the time spent in each activity.

For this reason, all activities carried out during the weekend were disregarded, as they did not improve the statistical significance of the prediction. Information about alcohol consumption, history of chronic diseases as well as a brief questionnaire about Mediterranean diet adherence were also assessed. This study was conducted according to the guidelines laid down in the Declaration of Helsinki, and all procedures involving research study participants were approved by the Research Ethics Committee from Aragon (PI20–425). Written informed consent was obtained from all subjects.

Laboratory analysis

Plasma 25(OH)D levels from Zaragoza’s sample were determined by electrochemiluminescence immunoassay (Elecsys® Vitamin D total II). The immunoassay employs a competitive protein-binding assay, which uses vitamin D-binding protein for detection of 25-OH Vitamin D. Serum vitamin D status from Pamplona’s sample was determined by chemiluminescent microparticle immunoassay. Both assays are intended for the quantitative determination of total 25-hydroxyvitamin D in human serum. Both methods are standardised in accordance with the Vitamin D Standardization Program. The 25-hydroxyvitamin D values ranged between 14·1 and 232 nmol/l as measured by the Reference Method, ID-LC-MS/MS (provided by the Vitamin D Standardization and Certification Program with assigned values by the RMP at CDC), showing a correlation coefficient of 0·98.

The sponsor defined the limit of detection as 7·5 nmol/l (3 ng/ml) and the limit of quantitation as 12·5 nmol/l (5 ng/ml). The potential cross reactivity with 24,25(OH)D2 showed a mean of 12·4 % for non-normalised samples and 13·7 % for normalised samples. They are equivalent and no statistically significant differences have been found between them(33).

Statistical analysis

Two different statistical analyses were carried out using both statistical software STATA version 14 and R version 4.0.5. Regarding data validation of FFQ and physical activity questionnaire as serum vitamin D predictors, the relationship between the main independent variables (amount of dietary vitamin D, hours of sunbathing per week, etc.) and serum vitamin D as a continuous dependent variable was established.

A first data analysis was carried out in STATA using multiple linear regression, as a classical model. The first variable to be studied was vitamin D dietary intake. Values of vitamin D ingested from diet and vitamin supplements were joined in the same variable. This variable was adjusted for total energy intake (kcal) by the residuals method specifically for each sex, in order to avoid a possible bias. Subsequently, the following variables were included in the model: age and sex; BMI, which was calculated from self-reported weight and height (kg/m2); skin reaction after sun exposure (mild or severe reaction); time spent on daily walks (minutes per day) and summer sun exposure (hours per day).

In order to estimate the last variable, a weighted average of the weekly sun exposure during summer was performed. Winter sun exposure was withdrawn due to the lack of statistical significance.

After adjusting linear regression models of serum vitamin D according to the variables listed above, beta coefficients were obtained and included in a predictive equation for serum vitamin D levels. Thus, successive equations were generated, each one closer to a correlation of 1 than the previous. Afterwards, a sensitivity analysis of these results was carried out through leave-one-out cross validation to obtain impartial estimations which were independent from the data that were used to derive the coefficients (training set), thus avoiding over-fitting (excessive adjustment after validating the predictive equation using the same subjects already involved to create it).

This method consists in performing n linear regression models (one per participant in the study, n 220). Each model is applied to a sample of n-1 participants, where the regression coefficients for the different predictors obtained in each regression are applied only to the individual who remained outside the regression model. Thus, each subject will have a coefficient based on the predicted model for the remaining 219 participants. This method avoids over adjustment and achieves a predictive equation for each individual that comes from their own independent sample.

Another sensitivity analysis was performed using R software, where two comparable datasets called training set and testing set, which contained 110 individuals each, were randomly generated and no significant differences were found between them (P > 0·05). The training set was used to develop the predictive models, and the testing set was used to validate them and evaluate the root mean square error (RMSE), in order to choose the best predictive model. Several machine learning models have been tested for the purposes of this study, including random forest (RF), regression trees and linear regression models with automatic selection of predictors.

Multiple linear regression allows generating a linear model in which the value of the dependent variable (y) is determined from a set of independent variables called predictors (x1, x2, x3…). Predictors’ selection was carried out using stepAIC function. A RF model is made up of a set of individual decision trees, each trained with a random sample extracted from the original training data by bootstrapping. This implies that each tree is trained with slightly different data.

In each individual tree, the observations are distributed by bifurcations (nodes) generating the structure of the tree until it reaches a terminal node(34). The prediction of a new observation is obtained by adding the predictions of all the individual trees that make up the model. In addition, we get the ‘Variable Importance /Gini Index’ values for the forest, which can be used for making sense of the model but not as a multiplication factor(34). Finally, regression trees are the subtype of prediction trees that are applied when the response variable is continuous.

In general terms, in the training of a regression tree, the observations are distributed by bifurcations (nodes) generating the structure of the tree until it reaches a terminal node. The tree prediction is the response variable’s mean of the training observations that are at the same terminal node.

In all three models, the same strategy was applied to the training dataset, and results were repeatedly validated with cross-validation methods (K-fold cross-validation). This process consisted of dividing the data randomly into k groups of approximately the same size, k-1 groups were used to train the model and one of the groups was used as validation. This process was repeated k times using a different group as validation in each repetition. The process generated ‘k’ error’s estimations and their average was used as the final estimation.

The main advantage of K-fold CV is its ability to achieve an accurate prediction of the test error, thanks to a better balance between bias and variance. Once the model was generated, it was externally validated with the dataset called test, obtaining a prediction error (RMSE) that will determine the quality of the model.

The degree of reproducibility of these models was also verified. The way to confirm it was by performing a classification by quintiles of measured and predicted 25(OH)D values and we measured the percentage of misclassification in opposite quintiles. Also, the intraclass correlation coefficient was calculated. Additionally, Bland–Altman graphs were built to assess the correlation between predicted vitamin D values and observed serum vitamin D values. Each point represents the difference between the values provided by the prediction model and the real values of vitamin D measured in serum (y axis), according to the mean between both of them (x axis).

Finally, in order to assess the discrimination ability of both prediction models, we calculated the area under the receiver operating characteristic (ROC) curve (AUC), so that the models could be used as a diagnostic tool. This analysis was performed for several cut-off points due to the current debate when it comes to determining which threshold for vitamin D values is the best one to define deficiency(35).

Source: Methods Source: Methods Source: Methods

Discussion

This study aimed to build an approach concerning a predictive model of serum vitamin D using seven different variables from a self-reported questionnaire based on two different statistical approaches, multiple linear regression and RF.

The magnitudes of the correlation found in this study were moderate for the multiple linear regression model and strong for RF’s prediction model. In other words, after making adjustments to include several variables, it may be possible to estimate vitamin D levels in epidemiological studies, and therefore prospectively study the long-term impact on health in similar cohorts. These findings agree with previously published literature in which different machine learning models, including RF, seemed to perform better prediction due to a better goodness-of-fit(27,28).

What is more, RF model has been proposed as a more appropriate model to deal with small sample size or ‘large p value’ issues, in comparison with other models such as linear regression(34).

Another noticeable finding was the low association between the values of vitamin D ingested from diet and the values measured in blood, which could be explained by the sample’s low dietary intake levels and the type of population from which the sample was taken. The USA National Academy of Medicine recommends a daily vitamin D intake of 15 mcg for children and adults up to 70 years of age and 20 mcg for adults over 70(5). However, the mean intake of vitamin D intake in this study (including diet and supplementation) was 8·10 ± 5·17 mcg/d.

Relationship between alcohol intake and serum 25(OH)D remains unclear as no significance correlation was found in the linear regression model, although RF’s prediction model showed a relevant association between the two variables. A systematic review, which examined such association, reported conflicting findings(36). Thus, a positive association was reported in fifteen studies, whereas an inverse association was described in eighteen papers and no association in another sixteen publications. However, the authors concluded that most of the studies, which observed a positive association, were more recent and showed more consistent methodology, than the others(36,37).

Another study found that vitamin D deficiency was associated with no alcohol consumption in the past 12 months(21). The authors concluded that as alcohol consumption was associated with greater social interaction and consequently, higher sunlight exposure, people who consume alcohol may be less likely to show insufficient levels of serum 25(OH)D(21).

In addition, Bland—Altman graphs were important to evaluate the differences at several magnitudes of the observed and predicted vitamin D. These differences might allow us to investigate any possible relationship between measurement error and the true value. Despite the fact that most of the dots are included between the limits of agreement, the graphs show a proportional variability, there is a slight negative bias across lower ranges of vitamin D, whereas at higher 25(OH)D concentrations there is a tendency towards positive bias, even a slight dispersion.

Moreover, there is a rather large range between the limits of agreement, which may affect the estimation’s accuracy. For these reasons, sensitivity analysis such as the exclusion of outliers and the comparison between extreme quintiles should be taken into consideration in future studies when vitamin D prediction will be used.

Our model showed that the best predictive cut-off point for vitamin D was 37·5 nmol/l (15 ng/ml), which showed an AUC of 0·69. This means that 69 % of the participants were properly classified. Our findings are in agreement with the rest of those previously carried out on the validation of diet and exercise questionnaires for predicting vitamin D values. The highest sensitivity’s values were described by Annweiler et al. (38) who observed 98 % (AUC = 0·93) and 87 % (AUC = 0·86) to identify higher cut-off points of serum 25(OH)D, < 75 nmol/l and 50 nmol/l, respectively.

Cut-off points below 25 nmol/l showed a sensitivity of 64·9 % and an area under the curve of 0·38. Deschasaux et al. (16) found an area under the curve of 0·70 after considering values below 20 ng/ml as threshold for vitamin D deficiency. In this context, Sohl et al. (19) developed a model to predict values of serum 25(OH)D below 50 nmol/l and 30 nmol/l and reported areas under the curve of 0·71 and 0·80, respectively. Moreover, Tran et al. (20) developed a model with two cut-off points of serum 25(OH)D < 25 nmol/l and < 50 nmol/l for Australian older adults and found an area under the curve of 0·82 and 0·73, respectively.

Another study carried out in New Zealand showed an AUC of 0·72 in the detection of serum 25(OH)D < 40 nmol/l(21). Other populations were also studied, such as Japanese adults(39), where a sensitivity of 61 % and specificity of 79 % (AUC = 0·75) were able to detect values of serum vitamin D under 50 nmol/l, and a Brazilian older community(40), where an AUC of 0·68 was found. An advantage of the present study (compared with previous ones) is the application of more appropriate methods to estimate the prediction’s validity, such as the intraclass correlation coefficient, the Lin concordance coefficient or the Bland–Altman graph.

Jensen et al. (23) also calculated a Cohen’s weighted kappa coefficient of 0·3. They classified individuals by quintiles of measured and predicted 25(OH)D values, from which 69·9 % were placed in the same or adjacent quintile and only 1·9 % were placed in opposite quintiles. Another study cross-classified measured and predicted 25(OH)D status and found that 59·8 %–66·5 % were placed in the same or adjacent quintile, concluding that their model could be used to rank individuals by their vitamin D status(18).

Among the limitations of this study, it is important to note that the number of participants was limited and the sample homogeneous to assess any clear correlation for variables such as ethnicity and skin colour with vitamin D values. Therefore, this model is likely to be generalisable only to similar healthy cohorts, although approaches could be taken to develop similar models in other populations. Furthermore, the sample included healthy adults with a sufficient mean of serum vitamin D status, leading to a selection bias, which determines that the model is better detecting individuals with sufficient levels of vitamin D than insufficiency.

However, this fact has not influenced the selection of vitamin D determinants, as they have proved to be similar to other cohorts with lower levels of serum vitamin D(20,39). In this line, the results obtained may not provide a precise identification of the individuals at higher risk and may not be suitable for particular groups such as pregnant women and children, in which specific prediction models should be used to reach adequate outcomes, as they show different metabolic and physiological processes.

In this sense, this study may be more useful in the epidemiological and research fields, rather than the clinical setting. In addition, the answers to questionnaires were self-reported by participants; so, such answers could suffer from classification bias, although in this case it would be a non-differential bias, because the participants did not know their own vitamin D levels at the time they filled the questionnaires. Another important fact is that a single blood measure cannot be considered as a true gold standard of long-term average 25(OH)D concentration.

Furthermore, an important amount of the blood samples were obtained in spring. This fact could have influenced serum vitamin D values, as winter sun exposure seemed to be lower than in summer, observing as a result lower values of serum vitamin D than the average (median of 51·38 nmol/l). In addition, there are some variables that may play an important role in estimating vitamin D levels, such as latitude of residence or type of clothing, which were not analysed.

A strong point of our study is the inclusion of different predictive models and their comparison. Most of the published studies have developed models based on linear regression, especially logistic regression. However, prediction of vitamin D made by RF and other machine learning models have proved to be effective. Another positive impact our study may bring is avoiding unnecessary blood tests and vitamin supplementation, neither of them risk-free practices. Although blood sampling of 25(OH)D is the most accurate way of measuring serum vitamin D, our methods provide a rapid, computer-based and not expensive tool to include subjects in future studies.

Conclusion

The model that best predicted serum vitamin D levels was the RF model, which showed a magnitude of the correlation that can be rated as strong, in comparison to the MLR model, which showed a moderate correlation. For this reason, both predictive models could be useful in future epidemiological studies to assess the risk of suffering from different diseases within a larger cohort. This approach is justified when we consider that there is recent evidence that vitamin D does play a significant role in several physiopathological processes, not only in Ca homeostasis but also in the regulation of both the immune and inflammatory systems, as well as in neuroendocrine and cardiovascular functions.

Furthermore, the use of predictive models such as the current could avoid invasive procedures, such as unnecessary blood tests, as well as the overprescription of vitamin supplements.

Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion Source: Discussion

Results

This study included a total sample of 220 healthy volunteers from Spain. The sample was composed of individuals aged between 18 and 78 years, of whom 56 % were female and 44 % male (see Table 1). The mean value of serum vitamin D was 52·8 nmol/l (sd: 19·8). Dietary intake of vitamin D showed a mean value of 8·0 (sd: 5·1) mcg/d, being fatty fish (61·7 %) the major source of vitamin D. Only sixteen individuals took vitamin D supplementation.

Additionally, the parallel test and training data analysis divided the whole sample into two similar datasets with no significant differences (online Supplementary Table S1).

Table 1.

Demographic and lifestyle characteristics of participants included in the sample (n 220)

Variable (units)MeanStandard deviationp25p75
Age (years)35·116·722·052·0
Serum vitamin D (nmol/L)52·819·839·565·0
Vitamin D from diet (mcg/d)8·05·14·311·3
Vitamin D supplementation (mcg/d)* 1·822·240·333
Energy adjusted dietary Vit. D intake (mcg/d)† 8·15·24·311·3
Summer sun exposure (h/d)‡ 1·21·602·0
BMI (kg/m2)§ 23·24·120·424·7
Physical activity (MET-h/wk)38·630·714·151·3
Alcohol intake (g/d)6·69·31·79·1
Walking time (min/d)|| 54·636·025·090·0
Hanging out with friends (h/d) 1·51·20·61·9
VariableProportion (%)
%
SexWomen56
Men44
Skin reaction after sun exposure** Mild reaction74·5
Severe reaction25·5
*

Only sixteen individuals took vitamin D supplementation and the values showed in the table reflect the mean intake (mcg/d) among consumers of vitamin supplements.

†

Dietary vitamin D and supplementation, energy-adjusted by residual method (mcg/d).

‡

Average sun exposure time in summer during the week in the last year (h/d).

§

BMI.

||

Average walking time (min/d).

Average time going out with friends during the week (h/d).

**

Skin reaction in childhood or adolescence after sun exposure for at least 2 h without sun cream.

After comparing all the RMSE obtained from all the different models tested, the one that seemed to predict more accurately serum vitamin D status was the RF model, which showed the lowest RMSE of 6·79, and so it was further develop (online Supplementary Table S2). Additionally, the linear model showed an RMSE of 7·17 and 7·46 after leave one out-cross validation. The variables used to develop the linear predictive model were age, sex, vitamin D ingested from diet and supplement sources adjusted by the total energy intake, summer sun exposure, BMI, daily time spent walking, skin reaction after sun exposure and total physical activity (measured in MET-h/week).

Although vitamin D intake does not show a significant correlation with serum vitamin D status, the variable was included in both models since scientific evidence describes a direct association between both of them(5). The impact of alcohol consumption, time hanging out with friends, Ca intake (mcg/d) and adherence to Mediterranean diet were also studied. However, no statistically significant relationship (P > 0·05) was observed in relation to vitamin D values. The estimated equation for the linear prediction model has been included in Table 2.

After leave-one-out cross-validation, coefficients remain similar (online Supplementary Table S3). RF model included slightly different variables: age, sex, total amount of vitamin D ingested and adjusted for the total energy intake (kcal), BMI (kg/m2), summer sun exposure (h/d), daily time spent walking and hanging out with friends (h/d), skin reaction after sun exposure, alcohol consumption (g/d) and physical activity (MET-h/week) (online Supplementary Fig. S1). Ca intake (mcg/d) and adherence to Mediterranean diet were also studied, but no significant improvement was seen in the model.

Therefore, these two last variables were withdrawn to simplify the prediction.

Table 2.

Detailed stages included in the development of the multiple linear regression model

StepsVariablesLinear regression model equationPearson correlation coefficient between linear prediction and serum vitamin D95 % CI
1Energy adjusted vitamin D intakeLinear prediction 1 = 19·33 + (0·20 × vitd_a)* 0·130·001, 0·26
2Age and sexLinear prediction 2 = 21·15 + (0·13 × vitd_a) + (–0·06 × age) + (1·67 × sex)0·220·09, 0·34
3BMILinear prediction 3 = 29·57 + (0·11 × vitd_a) + (–0·002 × age) + (2·06 × sex) + (–0·44 × bmi)† 0·300·17, 0·41
4Skin reactionLinear prediction 4 = 30·92 + (0·09 × vitd_a) + (–0·02 × age) + (1·83 × sex) + (–0·43 × bmi) + (–2·99 × skin)‡ 0·340·22, 0·45
5WalkingLinear prediction 5 = 27·90 + (0·06 × vitd_a) + (–0·04 × age) + (1·72 × sex) + (–0·36 × bmi) + (–3·27 × skin) + (0·04 × walk_min)§ 0·370·25, 0·48
6Summer sun exposureLinear prediction 6 = 26·16 + (0·06 × vitd_a) + (–0·02 × age) + (1·29 × sex) + (–0·33 × bmi) + (–3·61 × skin) + (0·04 × walk_min) + (0·80 × sun)|| 0·410·30, 0·52
7Physical activityLinear prediction 7 = 24·4 + (0·04 × vitd_a) + (–0·01 × age) + (1·37 × sex) + (–0·31 × bmi) +(–3·71 × skin) + (0·03 × walk_min) + (0·77 × sun) + (0·03 × phys_act) 0·430·31, 0·53
*

vitd_a: Dietary vitamin D and supplementation, energy-adjusted by residual method (mcg/d).

†

BMI (kg/m2).

‡

skin: skin reaction after sun exposure (0: mild; 1: severe).

§

walk_min: walking time (min/d).

||

sun: sun exposure during summer (h/d).

phys_act: physical activity measured by metabolic equivalents (MET-h/week).

We classified measured and predicted 25(OH)D values by quintiles, from which only 3·2 % were placed in opposite quintiles by the linear model, whereas 0·9 % of the values were misclassified in opposite quintiles by RF’s model (online Supplementary Table S4).

The intraclass correlation coefficient was 0·60 (95 % CI: 0·52, 0·67, P < 0·001) for the RF’s model and 0·31 (95 % CI: 0·18, 0·42, P < 0·001) for the linear prediction models.

Figure 1 shows two graphs, the linear correlation graph from the linear prediction models involving the whole sample after adjustment by the leave-one-out cross-validation. The second graph shows the correlation between vitamin D serum values and RF model prediction. In addition, Bland–Altman graphs (see Fig. 2) show that most of the points (at least 95 %) lie between the tolerance limits. Lin’s concordance correlation coefficient, which measures absolute agreement, was found to be 0·60 (95 % CI: 0·54, 0·65, P < 0·001) for RF’s prediction and 0·31 (95 % CI: 0·22, 0·39, P < 0·001) for the linear prediction validated model.

Fig. 1.

Linear correlation graphs between vitamin D serum levels and predictive values for the linear prediction model after leave-one-out cross-validation (a) and random forest (b). *Linear correlation graph after leave-one-out cross-validation (LOOCV) minimally differs from the linear correlation graph before LOOCV.

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

Fig. 2.

Bland–Altman plots of predicted vitamin D from multivariable linear regression model after cross-validation (a) and from random forest model (b). The sidelines indicate 95 % of agreement, whereas the middle line indicates the perfect agreement. *Linear correlation’s Bland–Altman graph after leave-one-out cross-validation (LOOCV) minimally differs from the linear correlation graph before LOOCV.

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

Finally, the AUC was also calculated for several cut-off points. If vitamin D values below 37·5 nmol/l (15 ng/ml) were considered deficient, the AUC would be 0·69 (95 % CI 0·59, 0·77; P < 0·001) for the linear prediction model and 0·69 (95 % CI 0·57, 0·82; P < 0·001) for RF’s prediction (Fig. 3). Considering the lower limit 50 nmol/l (20 ng/ml), the linear model showed an AUC = 0·65 and the RF model AUC’s was 0·67.

When a threshold of 62·5 nmol/l (25 ng/ml) was set, AUC were 0·62 and 0·67, respectively.

Fig. 3.

Linear model and random forest ROC curves for a cut-off point of 37·5 nmol/l. (a) Linear model’s area under ROC curve = 0·69 (95 % CI 0·59, 0·77; P < 0·001); (b) Random forest’s area under ROC curve = 0·69 (95 % CI 0·57, 0·82; P < 0·001).

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

Source: Results Source: Results Source: Results Source: Results Source: Results Source: Results Source: Results Source: Results Source: Results Source: Results Source: Results

Discussion: Conclusion

The model that best predicted serum vitamin D levels was the RF model, which showed a magnitude of the correlation that can be rated as strong, in comparison to the MLR model, which showed a moderate correlation. For this reason, both predictive models could be useful in future epidemiological studies to assess the risk of suffering from different diseases within a larger cohort. This approach is justified when we consider that there is recent evidence that vitamin D does play a significant role in several physiopathological processes, not only in Ca homeostasis but also in the regulation of both the immune and inflammatory systems, as well as in neuroendocrine and cardiovascular functions.

Furthermore, the use of predictive models such as the current could avoid invasive procedures, such as unnecessary blood tests, as well as the overprescription of vitamin supplements.

Source: Conclusion
Authors’ abstract

Vitamin D is an essential nutrient to be consumed in the habitual dietary intake, whose deficiency is associated with various disturbances. This study represents a validation of vitamin D status estimation using a semi-quantitative FFQ, together with data from additional physical activity and lifestyle questionnaires. This information was combined to forecast the serum vitamin D status. Different statistical methods were applied to estimate the vitamin D status using predictors based on diet and lifestyle. Serum vitamin D was predicted using linear regression (with leave-one-out cross-validation) and random forest models.

Intraclass correlation coefficients, Lin’s agreement coefficients, Bland–Altman plots and other methods were used to assess the accuracy of the predicted v. observed serum values. Data were collected in Spain. A total of 220 healthy volunteers aged between 18 and 78 years were included in this study. They completed validated questionnaires and agreed to provide blood samples to measure serum 25-hydroxyvitamin D (25(OH)D) levels. The common final predictors in both models were age, sex, sunlight exposure, vitamin D dietary intake (as assessed by the FFQ), BMI, time spent walking, physical activity and skin reaction after sun exposure.

The intraclass correlation coefficient for the prediction was 0·60 (95 % CI: 0·52, 0·67; P < 0·001) using the random forest model. The magnitude of the correlation was moderate, which means that our estimation could be useful in future epidemiological studies to establish a link between the predicted 25(OH)D values and the occurrence of several clinical outcomes in larger cohorts.

Read the full paper

Vitamin D or cholecalciferol is a nutrient involved in a wide variety of physiological processes, including Ca and phosphorus homeostasis and bone metabolism regulation(1,2). Vitamin D nuclear receptor is widely distributed among a great range of tissues in the human body, with diverse functions such as immune system and neuroendocrine system regulation and cardiometabolic control(3).

In humans, the main source of vitamin D is cutaneous exposure to sun radiation, which elicits the conversion of 7-dehydrocholesterol to vitamin D in the skin(2). Another source that has become essential in Northern countries, where the sunlight becomes insufficient in winter months, is vitamin D supplementation(2). The dietary consumption comes habitually from natural sources (e.g. fish, eggs), fortified products (e.g. dairy products, cereals) and supplementation(2). The European Food Safety Authority has defined adequate dietary values for vitamin D for all population groups(4,5).

Thus, for infants aged 7–11 months, a vitamin D intake of 10 mcg/d (400 μg) has been recommended. The recommended intake for older children and adults up to 70 years is 15 mcg/d (600 μg). Finally, for adults older than 70 years old, the threshold has been set at 20 mcg/d (800 μg)(4,5). An irregular or inadequate intake can lead to chronic deficiency. The most common way to define vitamin D status in humans is serum levels of 25-hydroxyvitamin D (25(OH)D) determination(6).

However, unnecessary blood testing is not beneficial and leads to important economic costs that must be taken into account(6).

Although vitamin D deficiency threshold is not clearly defined, it seems that the most accepted cut-off point may be serum concentration below 30 nmol/l (< 15 ng/ml), whereas vitamin D insufficiency includes serum concentrations between 30 and 50 nmol/l (15–20 ng/ml)(2,5,7,8).

Therefore, it may be difficult to determine an accurate prevalence of vitamin D deficiency worldwide. However, some countries have described a prevalence of 60 % (Western Europe) and 36 % (the USA), among adults(9). Pregnant women and new-borns seem to show the highest risk of vitamin D deficiency, as well as obese and elderly people(10). Over the past decade, there has been a substantial increase of blood sample requests to determine levels of serum vitamin D, resulting in a significant cost burden on the different health care systems(11).

This trend may be the result of an increasing recognition of the role that vitamin D plays in musculoskeletal disorders and other physiological processes (CVD, neoplastic processes, obesity, type 2 diabetes mellitus, mental health disorders or autoimmune diseases)(12). A screening strategy to help predicting serum vitamin D levels and therefore, identify those individuals that could be at risk of vitamin deficiency may be valuable, given that previous research has identified that vitamin D status is associated with different socio-demographic and lifestyle factors(13–17).

These predictors include vitamin D dietary intake, use of supplements, sun exposure, age, adiposity, physical activity, time spent outdoors, blood draw season and among others(13–17). Several studies have developed predictive models to foretell vitamin D deficiency in adults, being most of these published articles based on populations from the USA, the Netherlands or Australia(18–21). Other analyses have been conducted in specific groups such as older women with a higher risk of fracture(22), pregnant women(23,24) or children(25,26).

In addition, there is a current trend of developing predictive models based on machine learning algorithms(27–29). Machine learning is an alternative statistical method that can lead to improved and steady predictions in contrast with other standard models(27). However, there is not much evidence on how accurately these models predict 25(OH)D status in Mediterranean populations. Indeed, as sunlight is one of the principal sources of vitamin D, and this may vary depending on latitude, geographical location or even a different lifestyle, those predictive models may not be suitable for the Spanish population.

This study aimed to offer an alternative predictive model based on different statistical models (linear regression and machine learning models) to forecast 25(OH)D serum levels from self-reported questionnaires about dietary and lifestyle habits from a sample of Southern Europeans. In other words, this study intends to provide a good and easy to use guide, which could be used instead of blood sampling.

Methods

Study population

This study was conducted in two different samples of Spanish populations. The first group based on 100 subjects was collected from students and workers from the University of Navarra, whereas the second group was a sample of 120 people recruited through different health care centres from Zaragoza, all of them Caucasian. At first, 150 subjects from Zaragoza were randomly invited to join the study, from which thirty declined the invitation, whereas nearly half of the individuals who received the invitation from the University of Navarra refused to participate.

The unique inclusion criteria adopted were being over the age of 18 and willingness to provide blood samples and to complete a battery of questionnaires. None of the participants had a history of cancer, severe kidney disease or pregnancy at the time of the study. Blood samples were extracted from all participants to determine their 25(OH)D levels, especially during winter and spring months, mostly in May. They also completed questionnaires including an FFQ(30), leisure-time physical activity(31) and other questionnaires(32).

Sample size was determined according to a study based on French population(16). Considering an alpha risk of 0·05, a power of 80 % and a common standard deviation of 10 in a two-sided test, the sample size was calculated to be 220. The drop-out rate was considered to be 10 %.

Diet was assessed according to a well-designed, validated and semi-quantitative FFQ(30) which contains 136-item information about participants’ usual food intake in the past year. For each item, common portion sizes were specified, and consumption frequencies were divided into nine categories ranging from ‘never or almost never’ to ‘more than six servings per day’. A dietitian updated the nutrient database by using the latest available information included in the food composition tables in Spain, after processing all the questionnaires. Nutrient intake scores were calculated using an ad hoc computer programme, which was developed specifically for this purpose.

The sum of the frequency of a given food item consumption multiplied by the nutrient composition of the specified food portion was calculated. This questionnaire also includes information about supplementation intake, sun exposure, history of sunburns and the use of solar protective measures(30). Intake of vitamin D supplementation was calculated using the frequency of daily consumption of vitamin D supplementation multiplied by the amount of vitamin D of each pill derived from the brand of vitamin D supplementation or multivitamin supplement provided for each participant.

Additionally, data regarding physical activity were collected through another questionnaire – also validated(31). It contains information about anthropometric measures (weight, height, waist and hip perimeter), level of physical activity, time spent walking and doing up to seventeen other activities. When quantifying the amount of physical activity carried out during leisure time, each activity was weighted using its proportional number of metabolic equivalents (MET). This was done using the Compendium of Physical Activities, assigning a metabolic rate index (MET score) for each activity.

Time spent on each activity (according to time per week and months per year) was multiplied by its corresponding MET score. Afterwards, all MET scores for each activity and participant were added so as to obtain a global value of MET-h/week for each volunteer. It should also be noted that participants of the study showed great variability in the length of time spent on leisure activities during weekends as a consequence of the lack of routine, which may cause an overestimation of the time spent in each activity.

For this reason, all activities carried out during the weekend were disregarded, as they did not improve the statistical significance of the prediction. Information about alcohol consumption, history of chronic diseases as well as a brief questionnaire about Mediterranean diet adherence were also assessed. This study was conducted according to the guidelines laid down in the Declaration of Helsinki, and all procedures involving research study participants were approved by the Research Ethics Committee from Aragon (PI20–425). Written informed consent was obtained from all subjects.

Laboratory analysis

Plasma 25(OH)D levels from Zaragoza’s sample were determined by electrochemiluminescence immunoassay (Elecsys® Vitamin D total II). The immunoassay employs a competitive protein-binding assay, which uses vitamin D-binding protein for detection of 25-OH Vitamin D. Serum vitamin D status from Pamplona’s sample was determined by chemiluminescent microparticle immunoassay. Both assays are intended for the quantitative determination of total 25-hydroxyvitamin D in human serum. Both methods are standardised in accordance with the Vitamin D Standardization Program. The 25-hydroxyvitamin D values ranged between 14·1 and 232 nmol/l as measured by the Reference Method, ID-LC-MS/MS (provided by the Vitamin D Standardization and Certification Program with assigned values by the RMP at CDC), showing a correlation coefficient of 0·98.

The sponsor defined the limit of detection as 7·5 nmol/l (3 ng/ml) and the limit of quantitation as 12·5 nmol/l (5 ng/ml). The potential cross reactivity with 24,25(OH)D2 showed a mean of 12·4 % for non-normalised samples and 13·7 % for normalised samples. They are equivalent and no statistically significant differences have been found between them(33).

Statistical analysis

Two different statistical analyses were carried out using both statistical software STATA version 14 and R version 4.0.5. Regarding data validation of FFQ and physical activity questionnaire as serum vitamin D predictors, the relationship between the main independent variables (amount of dietary vitamin D, hours of sunbathing per week, etc.) and serum vitamin D as a continuous dependent variable was established.

A first data analysis was carried out in STATA using multiple linear regression, as a classical model. The first variable to be studied was vitamin D dietary intake. Values of vitamin D ingested from diet and vitamin supplements were joined in the same variable. This variable was adjusted for total energy intake (kcal) by the residuals method specifically for each sex, in order to avoid a possible bias. Subsequently, the following variables were included in the model: age and sex; BMI, which was calculated from self-reported weight and height (kg/m2); skin reaction after sun exposure (mild or severe reaction); time spent on daily walks (minutes per day) and summer sun exposure (hours per day).

In order to estimate the last variable, a weighted average of the weekly sun exposure during summer was performed. Winter sun exposure was withdrawn due to the lack of statistical significance.

After adjusting linear regression models of serum vitamin D according to the variables listed above, beta coefficients were obtained and included in a predictive equation for serum vitamin D levels. Thus, successive equations were generated, each one closer to a correlation of 1 than the previous. Afterwards, a sensitivity analysis of these results was carried out through leave-one-out cross validation to obtain impartial estimations which were independent from the data that were used to derive the coefficients (training set), thus avoiding over-fitting (excessive adjustment after validating the predictive equation using the same subjects already involved to create it).

This method consists in performing n linear regression models (one per participant in the study, n 220). Each model is applied to a sample of n-1 participants, where the regression coefficients for the different predictors obtained in each regression are applied only to the individual who remained outside the regression model. Thus, each subject will have a coefficient based on the predicted model for the remaining 219 participants. This method avoids over adjustment and achieves a predictive equation for each individual that comes from their own independent sample.

Another sensitivity analysis was performed using R software, where two comparable datasets called training set and testing set, which contained 110 individuals each, were randomly generated and no significant differences were found between them (P > 0·05). The training set was used to develop the predictive models, and the testing set was used to validate them and evaluate the root mean square error (RMSE), in order to choose the best predictive model. Several machine learning models have been tested for the purposes of this study, including random forest (RF), regression trees and linear regression models with automatic selection of predictors.

Multiple linear regression allows generating a linear model in which the value of the dependent variable (y) is determined from a set of independent variables called predictors (x1, x2, x3…). Predictors’ selection was carried out using stepAIC function. A RF model is made up of a set of individual decision trees, each trained with a random sample extracted from the original training data by bootstrapping. This implies that each tree is trained with slightly different data.

In each individual tree, the observations are distributed by bifurcations (nodes) generating the structure of the tree until it reaches a terminal node(34). The prediction of a new observation is obtained by adding the predictions of all the individual trees that make up the model. In addition, we get the ‘Variable Importance /Gini Index’ values for the forest, which can be used for making sense of the model but not as a multiplication factor(34). Finally, regression trees are the subtype of prediction trees that are applied when the response variable is continuous.

In general terms, in the training of a regression tree, the observations are distributed by bifurcations (nodes) generating the structure of the tree until it reaches a terminal node. The tree prediction is the response variable’s mean of the training observations that are at the same terminal node.

In all three models, the same strategy was applied to the training dataset, and results were repeatedly validated with cross-validation methods (K-fold cross-validation). This process consisted of dividing the data randomly into k groups of approximately the same size, k-1 groups were used to train the model and one of the groups was used as validation. This process was repeated k times using a different group as validation in each repetition. The process generated ‘k’ error’s estimations and their average was used as the final estimation.

The main advantage of K-fold CV is its ability to achieve an accurate prediction of the test error, thanks to a better balance between bias and variance. Once the model was generated, it was externally validated with the dataset called test, obtaining a prediction error (RMSE) that will determine the quality of the model.

The degree of reproducibility of these models was also verified. The way to confirm it was by performing a classification by quintiles of measured and predicted 25(OH)D values and we measured the percentage of misclassification in opposite quintiles. Also, the intraclass correlation coefficient was calculated. Additionally, Bland–Altman graphs were built to assess the correlation between predicted vitamin D values and observed serum vitamin D values. Each point represents the difference between the values provided by the prediction model and the real values of vitamin D measured in serum (y axis), according to the mean between both of them (x axis).

Finally, in order to assess the discrimination ability of both prediction models, we calculated the area under the receiver operating characteristic (ROC) curve (AUC), so that the models could be used as a diagnostic tool. This analysis was performed for several cut-off points due to the current debate when it comes to determining which threshold for vitamin D values is the best one to define deficiency(35).

Results

This study included a total sample of 220 healthy volunteers from Spain. The sample was composed of individuals aged between 18 and 78 years, of whom 56 % were female and 44 % male (see Table 1). The mean value of serum vitamin D was 52·8 nmol/l (sd: 19·8). Dietary intake of vitamin D showed a mean value of 8·0 (sd: 5·1) mcg/d, being fatty fish (61·7 %) the major source of vitamin D. Only sixteen individuals took vitamin D supplementation.

Additionally, the parallel test and training data analysis divided the whole sample into two similar datasets with no significant differences (online Supplementary Table S1).

Table 1.

Demographic and lifestyle characteristics of participants included in the sample (n 220)

Variable (units)MeanStandard deviationp25p75
Age (years)35·116·722·052·0
Serum vitamin D (nmol/L)52·819·839·565·0
Vitamin D from diet (mcg/d)8·05·14·311·3
Vitamin D supplementation (mcg/d)* 1·822·240·333
Energy adjusted dietary Vit. D intake (mcg/d)† 8·15·24·311·3
Summer sun exposure (h/d)‡ 1·21·602·0
BMI (kg/m2)§ 23·24·120·424·7
Physical activity (MET-h/wk)38·630·714·151·3
Alcohol intake (g/d)6·69·31·79·1
Walking time (min/d)|| 54·636·025·090·0
Hanging out with friends (h/d) 1·51·20·61·9
VariableProportion (%)
%
SexWomen56
Men44
Skin reaction after sun exposure** Mild reaction74·5
Severe reaction25·5
*

Only sixteen individuals took vitamin D supplementation and the values showed in the table reflect the mean intake (mcg/d) among consumers of vitamin supplements.

†

Dietary vitamin D and supplementation, energy-adjusted by residual method (mcg/d).

‡

Average sun exposure time in summer during the week in the last year (h/d).

§

BMI.

||

Average walking time (min/d).

Average time going out with friends during the week (h/d).

**

Skin reaction in childhood or adolescence after sun exposure for at least 2 h without sun cream.

After comparing all the RMSE obtained from all the different models tested, the one that seemed to predict more accurately serum vitamin D status was the RF model, which showed the lowest RMSE of 6·79, and so it was further develop (online Supplementary Table S2). Additionally, the linear model showed an RMSE of 7·17 and 7·46 after leave one out-cross validation. The variables used to develop the linear predictive model were age, sex, vitamin D ingested from diet and supplement sources adjusted by the total energy intake, summer sun exposure, BMI, daily time spent walking, skin reaction after sun exposure and total physical activity (measured in MET-h/week).

Although vitamin D intake does not show a significant correlation with serum vitamin D status, the variable was included in both models since scientific evidence describes a direct association between both of them(5). The impact of alcohol consumption, time hanging out with friends, Ca intake (mcg/d) and adherence to Mediterranean diet were also studied. However, no statistically significant relationship (P > 0·05) was observed in relation to vitamin D values. The estimated equation for the linear prediction model has been included in Table 2.

After leave-one-out cross-validation, coefficients remain similar (online Supplementary Table S3). RF model included slightly different variables: age, sex, total amount of vitamin D ingested and adjusted for the total energy intake (kcal), BMI (kg/m2), summer sun exposure (h/d), daily time spent walking and hanging out with friends (h/d), skin reaction after sun exposure, alcohol consumption (g/d) and physical activity (MET-h/week) (online Supplementary Fig. S1). Ca intake (mcg/d) and adherence to Mediterranean diet were also studied, but no significant improvement was seen in the model.

Therefore, these two last variables were withdrawn to simplify the prediction.

Table 2.

Detailed stages included in the development of the multiple linear regression model

StepsVariablesLinear regression model equationPearson correlation coefficient between linear prediction and serum vitamin D95 % CI
1Energy adjusted vitamin D intakeLinear prediction 1 = 19·33 + (0·20 × vitd_a)* 0·130·001, 0·26
2Age and sexLinear prediction 2 = 21·15 + (0·13 × vitd_a) + (–0·06 × age) + (1·67 × sex)0·220·09, 0·34
3BMILinear prediction 3 = 29·57 + (0·11 × vitd_a) + (–0·002 × age) + (2·06 × sex) + (–0·44 × bmi)† 0·300·17, 0·41
4Skin reactionLinear prediction 4 = 30·92 + (0·09 × vitd_a) + (–0·02 × age) + (1·83 × sex) + (–0·43 × bmi) + (–2·99 × skin)‡ 0·340·22, 0·45
5WalkingLinear prediction 5 = 27·90 + (0·06 × vitd_a) + (–0·04 × age) + (1·72 × sex) + (–0·36 × bmi) + (–3·27 × skin) + (0·04 × walk_min)§ 0·370·25, 0·48
6Summer sun exposureLinear prediction 6 = 26·16 + (0·06 × vitd_a) + (–0·02 × age) + (1·29 × sex) + (–0·33 × bmi) + (–3·61 × skin) + (0·04 × walk_min) + (0·80 × sun)|| 0·410·30, 0·52
7Physical activityLinear prediction 7 = 24·4 + (0·04 × vitd_a) + (–0·01 × age) + (1·37 × sex) + (–0·31 × bmi) +(–3·71 × skin) + (0·03 × walk_min) + (0·77 × sun) + (0·03 × phys_act) 0·430·31, 0·53
*

vitd_a: Dietary vitamin D and supplementation, energy-adjusted by residual method (mcg/d).

†

BMI (kg/m2).

‡

skin: skin reaction after sun exposure (0: mild; 1: severe).

§

walk_min: walking time (min/d).

||

sun: sun exposure during summer (h/d).

phys_act: physical activity measured by metabolic equivalents (MET-h/week).

We classified measured and predicted 25(OH)D values by quintiles, from which only 3·2 % were placed in opposite quintiles by the linear model, whereas 0·9 % of the values were misclassified in opposite quintiles by RF’s model (online Supplementary Table S4).

The intraclass correlation coefficient was 0·60 (95 % CI: 0·52, 0·67, P < 0·001) for the RF’s model and 0·31 (95 % CI: 0·18, 0·42, P < 0·001) for the linear prediction models.

Figure 1 shows two graphs, the linear correlation graph from the linear prediction models involving the whole sample after adjustment by the leave-one-out cross-validation. The second graph shows the correlation between vitamin D serum values and RF model prediction. In addition, Bland–Altman graphs (see Fig. 2) show that most of the points (at least 95 %) lie between the tolerance limits. Lin’s concordance correlation coefficient, which measures absolute agreement, was found to be 0·60 (95 % CI: 0·54, 0·65, P < 0·001) for RF’s prediction and 0·31 (95 % CI: 0·22, 0·39, P < 0·001) for the linear prediction validated model.

Fig. 1.

Linear correlation graphs between vitamin D serum levels and predictive values for the linear prediction model after leave-one-out cross-validation (a) and random forest (b). *Linear correlation graph after leave-one-out cross-validation (LOOCV) minimally differs from the linear correlation graph before LOOCV.

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

Fig. 2.

Bland–Altman plots of predicted vitamin D from multivariable linear regression model after cross-validation (a) and from random forest model (b). The sidelines indicate 95 % of agreement, whereas the middle line indicates the perfect agreement. *Linear correlation’s Bland–Altman graph after leave-one-out cross-validation (LOOCV) minimally differs from the linear correlation graph before LOOCV.

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

Finally, the AUC was also calculated for several cut-off points. If vitamin D values below 37·5 nmol/l (15 ng/ml) were considered deficient, the AUC would be 0·69 (95 % CI 0·59, 0·77; P < 0·001) for the linear prediction model and 0·69 (95 % CI 0·57, 0·82; P < 0·001) for RF’s prediction (Fig. 3). Considering the lower limit 50 nmol/l (20 ng/ml), the linear model showed an AUC = 0·65 and the RF model AUC’s was 0·67.

When a threshold of 62·5 nmol/l (25 ng/ml) was set, AUC were 0·62 and 0·67, respectively.

Fig. 3.

Linear model and random forest ROC curves for a cut-off point of 37·5 nmol/l. (a) Linear model’s area under ROC curve = 0·69 (95 % CI 0·59, 0·77; P < 0·001); (b) Random forest’s area under ROC curve = 0·69 (95 % CI 0·57, 0·82; P < 0·001).

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

Discussion

This study aimed to build an approach concerning a predictive model of serum vitamin D using seven different variables from a self-reported questionnaire based on two different statistical approaches, multiple linear regression and RF.

The magnitudes of the correlation found in this study were moderate for the multiple linear regression model and strong for RF’s prediction model. In other words, after making adjustments to include several variables, it may be possible to estimate vitamin D levels in epidemiological studies, and therefore prospectively study the long-term impact on health in similar cohorts. These findings agree with previously published literature in which different machine learning models, including RF, seemed to perform better prediction due to a better goodness-of-fit(27,28).

What is more, RF model has been proposed as a more appropriate model to deal with small sample size or ‘large p value’ issues, in comparison with other models such as linear regression(34).

Another noticeable finding was the low association between the values of vitamin D ingested from diet and the values measured in blood, which could be explained by the sample’s low dietary intake levels and the type of population from which the sample was taken. The USA National Academy of Medicine recommends a daily vitamin D intake of 15 mcg for children and adults up to 70 years of age and 20 mcg for adults over 70(5). However, the mean intake of vitamin D intake in this study (including diet and supplementation) was 8·10 ± 5·17 mcg/d.

Relationship between alcohol intake and serum 25(OH)D remains unclear as no significance correlation was found in the linear regression model, although RF’s prediction model showed a relevant association between the two variables. A systematic review, which examined such association, reported conflicting findings(36). Thus, a positive association was reported in fifteen studies, whereas an inverse association was described in eighteen papers and no association in another sixteen publications. However, the authors concluded that most of the studies, which observed a positive association, were more recent and showed more consistent methodology, than the others(36,37).

Another study found that vitamin D deficiency was associated with no alcohol consumption in the past 12 months(21). The authors concluded that as alcohol consumption was associated with greater social interaction and consequently, higher sunlight exposure, people who consume alcohol may be less likely to show insufficient levels of serum 25(OH)D(21).

In addition, Bland—Altman graphs were important to evaluate the differences at several magnitudes of the observed and predicted vitamin D. These differences might allow us to investigate any possible relationship between measurement error and the true value. Despite the fact that most of the dots are included between the limits of agreement, the graphs show a proportional variability, there is a slight negative bias across lower ranges of vitamin D, whereas at higher 25(OH)D concentrations there is a tendency towards positive bias, even a slight dispersion.

Moreover, there is a rather large range between the limits of agreement, which may affect the estimation’s accuracy. For these reasons, sensitivity analysis such as the exclusion of outliers and the comparison between extreme quintiles should be taken into consideration in future studies when vitamin D prediction will be used.

Our model showed that the best predictive cut-off point for vitamin D was 37·5 nmol/l (15 ng/ml), which showed an AUC of 0·69. This means that 69 % of the participants were properly classified. Our findings are in agreement with the rest of those previously carried out on the validation of diet and exercise questionnaires for predicting vitamin D values. The highest sensitivity’s values were described by Annweiler et al. (38) who observed 98 % (AUC = 0·93) and 87 % (AUC = 0·86) to identify higher cut-off points of serum 25(OH)D, < 75 nmol/l and 50 nmol/l, respectively.

Cut-off points below 25 nmol/l showed a sensitivity of 64·9 % and an area under the curve of 0·38. Deschasaux et al. (16) found an area under the curve of 0·70 after considering values below 20 ng/ml as threshold for vitamin D deficiency. In this context, Sohl et al. (19) developed a model to predict values of serum 25(OH)D below 50 nmol/l and 30 nmol/l and reported areas under the curve of 0·71 and 0·80, respectively. Moreover, Tran et al. (20) developed a model with two cut-off points of serum 25(OH)D < 25 nmol/l and < 50 nmol/l for Australian older adults and found an area under the curve of 0·82 and 0·73, respectively.

Another study carried out in New Zealand showed an AUC of 0·72 in the detection of serum 25(OH)D < 40 nmol/l(21). Other populations were also studied, such as Japanese adults(39), where a sensitivity of 61 % and specificity of 79 % (AUC = 0·75) were able to detect values of serum vitamin D under 50 nmol/l, and a Brazilian older community(40), where an AUC of 0·68 was found. An advantage of the present study (compared with previous ones) is the application of more appropriate methods to estimate the prediction’s validity, such as the intraclass correlation coefficient, the Lin concordance coefficient or the Bland–Altman graph.

Jensen et al. (23) also calculated a Cohen’s weighted kappa coefficient of 0·3. They classified individuals by quintiles of measured and predicted 25(OH)D values, from which 69·9 % were placed in the same or adjacent quintile and only 1·9 % were placed in opposite quintiles. Another study cross-classified measured and predicted 25(OH)D status and found that 59·8 %–66·5 % were placed in the same or adjacent quintile, concluding that their model could be used to rank individuals by their vitamin D status(18).

Among the limitations of this study, it is important to note that the number of participants was limited and the sample homogeneous to assess any clear correlation for variables such as ethnicity and skin colour with vitamin D values. Therefore, this model is likely to be generalisable only to similar healthy cohorts, although approaches could be taken to develop similar models in other populations. Furthermore, the sample included healthy adults with a sufficient mean of serum vitamin D status, leading to a selection bias, which determines that the model is better detecting individuals with sufficient levels of vitamin D than insufficiency.

However, this fact has not influenced the selection of vitamin D determinants, as they have proved to be similar to other cohorts with lower levels of serum vitamin D(20,39). In this line, the results obtained may not provide a precise identification of the individuals at higher risk and may not be suitable for particular groups such as pregnant women and children, in which specific prediction models should be used to reach adequate outcomes, as they show different metabolic and physiological processes.

In this sense, this study may be more useful in the epidemiological and research fields, rather than the clinical setting. In addition, the answers to questionnaires were self-reported by participants; so, such answers could suffer from classification bias, although in this case it would be a non-differential bias, because the participants did not know their own vitamin D levels at the time they filled the questionnaires. Another important fact is that a single blood measure cannot be considered as a true gold standard of long-term average 25(OH)D concentration.

Furthermore, an important amount of the blood samples were obtained in spring. This fact could have influenced serum vitamin D values, as winter sun exposure seemed to be lower than in summer, observing as a result lower values of serum vitamin D than the average (median of 51·38 nmol/l). In addition, there are some variables that may play an important role in estimating vitamin D levels, such as latitude of residence or type of clothing, which were not analysed.

A strong point of our study is the inclusion of different predictive models and their comparison. Most of the published studies have developed models based on linear regression, especially logistic regression. However, prediction of vitamin D made by RF and other machine learning models have proved to be effective. Another positive impact our study may bring is avoiding unnecessary blood tests and vitamin supplementation, neither of them risk-free practices. Although blood sampling of 25(OH)D is the most accurate way of measuring serum vitamin D, our methods provide a rapid, computer-based and not expensive tool to include subjects in future studies.

Conclusion

The model that best predicted serum vitamin D levels was the RF model, which showed a magnitude of the correlation that can be rated as strong, in comparison to the MLR model, which showed a moderate correlation. For this reason, both predictive models could be useful in future epidemiological studies to assess the risk of suffering from different diseases within a larger cohort. This approach is justified when we consider that there is recent evidence that vitamin D does play a significant role in several physiopathological processes, not only in Ca homeostasis but also in the regulation of both the immune and inflammatory systems, as well as in neuroendocrine and cardiovascular functions.

Furthermore, the use of predictive models such as the current could avoid invasive procedures, such as unnecessary blood tests, as well as the overprescription of vitamin supplements.

Acknowledgements

We would like to thank the department of Preventive Medicine and Public Health from the University of Navarra for providing all the questionnaires as well as the equipment to digitise the collected data. We also would like to thank Alberto Cebollada for helping with the development of the statistical models as well as with technical considerations in regard to the statistical analyses.

We are grateful to all the participants who voluntarily dedicated their time to be part of this study. Finally, we thank Prof. Marian Zulet, PhD, for her support and assistance.

This research received no specific grant from any funding agency, commercial or not-for-profit sectors.

Dr. M. A. M-G. and J. P. de R. were responsible for the initial conception and design of the study. A. V-M. recruited a bigger sample and together with M. B-R. and C. S-O. made changes and adapted the original study’s design to include two different statistical methods.

C. de la F. digitised all the data from the FFQ in a database. Data analyses were carried out by M. B-R., C. S-O. and A. V-M. M. Á. M.-G. also helped with technical considerations in regard to the statistical analyses. The writing of the first draft was conducted by A. V-M. and supported by M. B-R., C. S-O., J. A. M. H. and M. Fe B. Finally, all authors reviewed and approved the last version of the manuscript and provided substantial intellectual contribution.

The authors declare no conflict of interest, financial or otherwise.

Supplementary material

For supplementary material accompanying this paper visit https://doi.org/10.1017/S0007114523000946.

click here to view supplementary material

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

References

1. Wintermeyer E , Ihle C , Ehnert S , et al. (2016 ) Crucial role of vitamin D in the musculoskeletal system . Nutrients 8 , 319 . 27258303 10.3390/nu8060319 PMC4924160
2. Heaney RP (2008 ) Vitamin D in health and disease . Clin J Am Soc Nephrol 3 , 1535 –1341. 18525006 10.2215/CJN.01160308 PMC4571146
3. Mateo-Pascual C , Julián-Viñals R , Alarcón-Alarcón T , et al. (2014 ) Vitamin D deficiency in a cohort over 65 years: prevalence and association with sociodemographic and health factors . Rev Esp Geriatr Gerontol 49 , 210 –216 . 24530201 10.1016/j.regg.2013.11.004
4. Bresson JL , Burlingame B , Dean T , et al. (2016 ) Dietary reference values for vitamin D. EFSA J 14, 4547 . 10.2903/j.efsa.2017.4780 PMC7010012 32625486
5. Institute of Medicine (U.S.) Committee to Review Dietary Reference Intakes for Vitamin D and Calcium, Ross AC , Taylor CL , et al. (editors) (2011 ) Dietary Reference Intakes for Calcium and Vitamin D. Washington, DC: National Academies Press (US). 21796828
6. Lefevre ML , Siu AL , Bibbins-Domingo K , et al. (2015 ) Screening for vitamin D deficiency in adults: US Preventive services task force recommendation statement . Ann Intern Med 162 , 133 –140 . 25419853 10.7326/M14-2450
7. Parker J , Hashmi O , Dutton D , et al. (2010 ) Levels of vitamin D and cardiometabolic disorders: systematic review and meta-analysis . Maturitas 65 , 225 –236 . 20031348 10.1016/j.maturitas.2009.12.013
8. Pludowski P , Holick MF , Grant WB , et al. (2018 ) Vitamin D supplementation guidelines . J Steroid Biochem Mol Biol 175 , 125 –135 . 28216084 10.1016/j.jsbmb.2017.01.021
9. Hossein-Nezhad A & Holick MF (2013 ) Vitamin D for health: a global perspective . Mayo Clin Proc 88 , 720 –755 . 23790560 10.1016/j.mayocp.2013.05.011 PMC3761874
10. Van Schoor NM & Lips P (2011 ) Worldwide vitamin D status . Best Pract Res Clin Endocrinol Metab 25 , 671 –680 . 21872807 10.1016/j.beem.2011.06.007
11. Shahangian S , Alspach TD , Astles JR , et al. (2014 ) Trends in laboratory test volumes for medicare Part B reimbursements, 2000–2010 . Arch Pathol Lab Med. 138 , 189 –203 . 23738761 10.5858/arpa.2013-0149-OA PMC4698806
12. Nair R & Maseeh A (2012 ) Vitamin D: the sunshine vitamin . J Pharmacol Pharmacother 3 , 118 –126 . 22629085 10.4103/0976-500X.95506 [link unavailable; original address: https://doi.org/10.4103/0976-500x.95506] PMC3356951
13. Holick MF & Chen TC (2008 ) Vitamin D deficiency: a worldwide problem with health consequences . Am J Clin Nutr 87 , 1080 –1086 . 10.1093/ajcn/87.4.1080S 18400738
14. Hyppönen E & Boucher BJ (2018 ) Adiposity, vitamin D requirements, and clinical implications for obesity-related metabolic abnormalities . Nutr Rev 76 , 678 –692 . 30020507 10.1093/nutrit/nuy034
15. Manios Y , Moschonis G , Lambrinou CP , et al. (2018 ) Associations of vitamin D status with dietary intakes and physical activity levels among adults from seven European countries: the Food4Me study . Eur J Nutr 57 , 1357 –1368 . 28289868 10.1007/s00394-017-1415-1
16. Deschasaux M , Souberbielle JC , Andreeva VA , et al. (2016 ) Quick and easy screening for Vitamin D insufficiency in adults a scoring system to be implemented in daily clinical practice . Medicine 95 , e2783 . 26886626 10.1097/MD.0000000000002783 PMC4998626
17. Lips P , van Schoor NM & de Jongh RT (2014 ) Diet, sun, and lifestyle as determinants of vitamin D status . Ann N Y Acad Sci 1317 , 92 –98 . 24814938 10.1111/nyas.12443
18. Bertrand KA , Giovannucci E , Liu Y , et al. (2012 ) Determinants of plasma 25-hydroxyvitamin D and development of prediction models in three US cohorts . Br J Nutr 108 , 1889 –1896 . 22264926 10.1017/S0007114511007409 PMC3346859
19. Sohl E , Heymans MW , De Jongh RT , et al. (2014 ) Prediction of vitamin D deficiency by simple patient characteristics . Am J Clin Nutr 99 , 1089 –1095 . 24552751 10.3945/ajcn.113.076430
20. Tran B , Armstrong BK , McGeechan K , et al. (2013 ) Predicting vitamin D deficiency in older Australian adults . Clin Endocrinol 79 , 631 –640 . 10.1111/cen.12203 23550837
21. Narang RK , Gamble GG , Khaw K-T , et al. (2020 ) A prediction tool for vitamin D deficiency in New Zealand adults . Arch Osteoporos 15 , 172 . 33128635 10.1007/s11657-020-00844-y
22. Merlijn T , Swart KMA , Lips P , et al. (2018 ) Prediction of insufficient serum vitamin D status in older women: a validated model . Osteoporos Int 29 , 1539 –1547 . 29808229 10.1007/s00198-018-4410-3 PMC6061708
23. Jensen CB , Thorne-Lyman AL , Hansen LV , et al. (2013 ) Development and validation of a vitamin d status prediction model in Danish pregnant women: a study of the Danish National Birth Cohort . Plos One 8 , e53059 . 23326380 10.1371/journal.pone.0053059 PMC3541280
24. Bärebring L , Amberntsson A , Winkvist A , et al. (2018 ) Validation of dietary vitamin D intake from two food frequency questionnaires, using food records and the biomarker 25-Hydroxyvitamin D among pregnant women . Nutrients 10 , 745 . 29890634 10.3390/nu10060745 PMC6024652
25. Vioque J , Garcia-de-la-Hera M , Gonzalez-Palacios S , et al. (2019 ) Reproducibility and validity of a short food . Nutrients 11 , 1 –15 . 10.3390/nu11040933 PMC6521299 31027207
26. Söderberg L , Lind T , Åkeson PK , et al. (2017 ) A validation study of an interviewer-administered short food frequency questionnaire in assessing dietary vitamin D and calcium intake in swedish children . Nutrients 9 , 682 . 28665354 10.3390/nu9070682 PMC5537797
27. Sluyter JD , Raita Y , Hasegawa K , et al. (2022 ) Prediction of vitamin D deficiency in older adults: the role of machine learning models . J Clin Endocrinol Metab 20 , 1 –12 . 10.1210/clinem/dgac432 35876536
28. Karamizadeh M , Seif M , Holick MF , et al. (2021 ) Developing a model for prediction of serum 25-hydroxyvitamin D level: the use of linear regression and machine learning methods. J Am Coll Nutr 41, 191 –200 . 10.1080/07315724.2020.1869624 33555236
29. Bechrouri S , Monir A , Mraoui H , et al. (2019 ) Performance of Statistical Models to Predict Vitamin D Levels. ACM International Conference Proceedings Series. https://dl.acm.org/doi/abs/10.1145/3314074.3314076 (accessed april 2023).
30. De La Fuente-Arrillaga C , Vazquez Ruiz Z , Bes-Rastrollo M , et al. (2010 ) Reproducibility of an FFQ validated in Spain . Public Health Nutr 13 , 1364 –1372 . 20105389 10.1017/S1368980009993065
31. Martínez-González MA , López-Fontana C , Varo JJ , et al. (2005 ) Validation of the Spanish version of the physical activity questionnaire used in the Nurses’ Health Study and the Health Professionals’ Follow-up Study . Public Health Nutr 8 , 920 –927 . 16277809 10.1079/phn2005745
32. Carlos S , De La Fuente-Arrillaga C , Bes-Rastrollo M , et al. (2018 ) Mediterranean Diet and Health Outcomes in the SUN Cohort . Nutrients 10 , 439 . 29614726 10.3390/nu10040439 PMC5946224
33. Leuther M (2012 ) Eleesys Vitamin D 510(K) Submission. Roche Diagnostics. https://www.accessdata.fda.gov/cdrh_docs/pdf11/K113546.pdf (accessed april 2023).
34. Strobl C , Boulesteix AL , Zeileis A , et al. (2007 ) Bias in random forest variable importance measures: illustrations, sources and a solution . BMC Bioinf 8 , 25 . 10.1186/1471-2105-8-25 PMC1796903 17254353
35. Thacher TD & Clarke BL (2011 ) Vitamin D insufficiency . Mayo Clin Proc 86 , 50 –60 . 21193656 10.4065/mcp.2010.0567 PMC3012634
36. Tardelli VS , do Lago MPP , da Silveira DX , et al. (2017 ) Vitamin D and alcohol: a review of the current literature. Psychiatr Res 248, 83 –86 . 10.1016/j.psychres.2016.10.051 28033511
37. ten Haaf DSM , Balvers MGJ , Timmers S , et al. (2019 ) Determinants of vitamin D status in physically active elderly in the Netherlands . Eur J Nutr 58 , 3121 –3128 . 30523431 10.1007/s00394-018-1856-1 PMC6842352
38. Annweiler C , Kabeshova A , Legeay M , et al. (2015 ) Derivation and validation of a clinical diagnostic tool for the identification of older community-dwellers with hypovitaminosis D. J Am Med Dir Assoc 16, 536.e8 –536.e19 . 10.1016/j.jamda.2015.03.008 25922119
39. Kuwabara A , Tsugawa N , Mizuno K , et al. (2019 ) A simple questionnaire for the prediction of vitamin D deficiency in Japanese adults (Vitamin D Deficiency questionnaire for Japanese: VDDQ-J) . J Bone Miner Metab 1234 , 854 –863 . 10.1007/s00774-018-0984-2 30721357
40. Lopes JB , Fernandes GH , Takayama L , et al. (2014 ) A predictive model of vitamin D insufficiency in older community people: from the São Paulo Aging & Health Study (SPAH) . Maturitas 78 , 335 –340 . 24985066 10.1016/j.maturitas.2014.05.023
Publication and source details

Original title: Forecasting levels of serum 25-hydroxyvitamin D based on dietary intake, lifestyle and personal determinants in a sample of Southern Europeans

Ana Valer-Martinez; Carmen Sayon-Orea; José Alfredo Martínez Hernandez; Carmen De la Fuente-Arrillaga; Javier Pérez de Rojas; Fe Barcones; Miguel Angel Martínez-González; Maira Bes-Rastrollo

The British Journal of Nutrition · 2023

* Corresponding author: Carmen Sayón-Orea, email msayon@unav.es © The Author(s) 20232023The Author(s)https://creativecommons.org/licenses/by/4.0/This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.

Repository JATS snapshot; version as supplied

Source retrieved: 2026-11-11T06:41:20.163093+00:00

DOI: 10.1017/s0007114523000946 · PMC10587381