- 1Outpatient Department Office, The Central Hospital of Wuhan, Tongji Medical College, Huazhong University of Science and Technology, Wuhan, Hubei, China
- 2Department of Oncology, Wuhan No.1 Hospital, Wuhan, Hubei, China
Objective: This study aims to examine association between vitamin D with melanoma and develop an explainable machine learning model.
Methods: For this study, relevant data were downloaded from the CDC’s National Health and Nutrition Examination Survey (NHANES) program, for the three survey cycles 2011-2012, 2013–2014 and 2015-2016. Self-reported melanoma data, serum vitamin D levels, and other covariates were downloaded and analyzed. Analysis of variance in this study was performed using t-tests and chi-square tests, modelling was performed using logistic regression based on NHANES weights, and other risk factors were analyzed using forest plots. Ten machine learning models were compared and XGboost was selected for the melanoma prediction.
Results: In this study, logistic regression analysis revealed a protective effect of higher vitamin D levels in melanoma, the ORs were much less than 1 for Q2 (OR=0.97, 95% CI (0.44, 0.98)), Q3 (OR=0.71, 95% CI (0.65, 0.92)), and Q4 (OR=0.32, 95% CI (0.55, 0.81)). Meanwhile, forest plot analysis showed that vitamin D, the number of sunburns in the past year, advanced age, Caucasian, education some college, single and unmarried, smoking, diabetes and hypertension, were all statistically significant. The OR was higher in men than in women, with Q4 values of 0.31 (95% CI: 0.18–0.51) for men and 0.29 (95% CI: 0.15–0.45) for women. OR was higher in the senior patients than in the non-senior group, with Q4 (OR=0.53, 95% CI (0.23, 0.73)). An explainable XGBoost model had AUC 0.906, and in the model vitamin D had main contribution to the model.
Conclusion: In conclusion, this study concluded that vitamin D decreases melanoma risk based on a larger sample and multi-covariate analysis. Female and young people received high protection from vitamin D in melanoma. XGBoost can accurately prediction the possibility of melanoma based on vitamin D.
Introduction
Over the past 50 years, cutaneous melanoma (CM) incidence has steadily increased around the world. The expected number of new cases of CM in the world in 2018 is 287,723, with an age-standardized incidence rate of 3.1/100,000/year and a mortality rate of 0.63/100,000/year, according to GLOBOCAN 2018 (1, 2). As the most deadly and aggressive type of skin cancer, CM arises from unrepaired DNA damage in skin cells (3, 4). CM is around 5% of skin cancers overall, but it also kills about 75% of people who have skin cancer (5, 6).
In recent years, the potential anti-cancer effects of vitamin D have garnered increasing attention in the field of oncology. Research has linked low vitamin D serum levels to poorer survival rates and increased thickness of CM, supporting the hypothesis that vitamin D derivatives might play a crucial role in cancer prevention and treatment strategies (7, 8). Yet, despite its anti-cancer benefits, vitamin D has also been demonstrated to have immunosuppressive effects, it is not considered to be the standard of therapy (9, 10). A Study have shown that vitamin D can alter the tumor microenvironment by increasing the ratio of T regulatory (Treg) cells to T helper 17 (Th-17) cells, leading to immunosuppression (11). This dual effect necessitates careful consideration when evaluating the role of vitamin D in cancer therapy (12).
Recently machine learning was widely used in disease risk factor exploration and prediction (13, 14). In parallel, the integration of machine learning techniques in melanoma research is transforming the landscape of diagnosis and treatment. Machine learning algorithms can analyze vast datasets, identifying patterns and predictors of CM progression that might not be visible through traditional methods (5). These advanced tools can enhance the accuracy of early detection, predict patient outcomes, and even personalize treatment plans based on individual genetic and environmental factors. By combining machine learning insights with clinical and biochemical data, researchers hope to refine therapeutic strategies and achieve better prognostic accuracy for melanoma patients.
Despite growing evidence on vitamin D’s anti-cancer effects, its role in melanoma remains controversial due to conflicting findings and limited large-scale studies (9, 10). To gain deeper insights into the impact of vitamin D on CM, this study incorporated a large sample size and multiple covariates for model analysis. By doing so, researchers aim to unravel the complex interactions between vitamin D and melanoma and establish effective machine learning prediction model, potentially paving the way for innovative treatment approaches and improved patient outcomes. By integrating epidemiological and computational approaches, this work provides novel insights into personalized prevention strategies.
Methods
Data source
The National Health and Nutrition Examination Survey (NHANES) survey data from the CDC, which includes annual dietary nutrition surveys of the US population from 2000 to 2020, served as the source of the data for this study (https://www.cdc.gov/nchs/nhanes/). The data collected included demographic data, data from physical exams, data from lab tests, and data from questionnaires. The required variables were found in three cycles, 2011–2012, 2013–2014, and 2015–2016, which were chosen for this study. A final sample of 1245 people who included all three cycles’ variables was chosen after screening 29250 of the three cycles were included. Finally, we delete the data with missing covariates. The inclusion and exclusion process are shown in the Figure 1. This cross-sectional study analyzed data from the CDC’s NHANES program from 2011 to 2016, covering a nationally representative sample of the U.S. population.
Melanoma and covariates
The NHANES questionnaire’s section on medical conditions asked about “age at first diagnosis of melanoma,” which must be answered in order to be considered a melanoma patient; if not, the respondent is not a melanoma patient. A skin-related questionnaire that revealed the sample’s number of sunburns in the previous year served as the primary source of data for this study’s primary risk factor. In order to measure 25-hydroxyvitamin D3, 3-epi-25-hydroxyvitamin D3, and 25-hydroxyvitamin D2 (25OHD2) in human serum, the US Centers for Disease Control and Prevention (CDC) used high performance liquid chromatography-tandem mass spectrometry (HPLC-MS/MS). The 25OHD3 + 25OHD2 form of vitamin D used in this research.
Other covariates, such as demographic data (including age, sex, race, education, marriage, BMI, and PIR, an indicator of household economic situation), disease history (including diabetes and hypertension), and lifestyle habits (including smoking and alcohol consumption), were obtained from questionnaire data.
Model development and comparison
The included data were divided into a training set (70%) and an internal validation set (30%) to mitigate overfitting. A prediction model was built using the aforementioned 12 features. Ten ML models, including Decision Tree (DT), K-Nearest Neighbors (KNN), Logistic Regression (LR), Random Forest (RF), Support Vector Machine (SVM), Naive Bayes (NB), GLM with Elastic Net Regularization (GLM), Generalized Additive Model (GAM), Multivariate Adaptive Regression Splines (MARS), and Extreme Gradient Boosting (XGB), were utilized to predict the probability of cutaneous melanoma.
To optimize the prediction models, a combination of grid search and manual tuning was employed to obtain the final hyperparameters. The reliability of the models was evaluated using commonly used metrics such as the area under the ROC curve (AUC), sensitivity, specificity, positive predictive value, negative predictive value, accuracy, and F1 score. Furthermore, 10-fold cross-validation was performed in the derivation cohort to validate the prediction models.
DT offer advantages such as interpretability, ease of visualization, and the ability to handle both numerical and categorical data, but they are prone to overfitting and can be unstable with small data changes. KNN is simple to implement, requires no training phase, and adapts well to local patterns, but it suffers from high computational cost with large datasets and sensitivity to irrelevant features. LR is efficient, interpretable, and works well for binary classification, but it struggles with non-linear relationships and multicollinearity. RF reduces overfitting, handles high-dimensional data, and provides feature importance, but it is less interpretable than single decision trees and can be computationally expensive. SVM excel in high-dimensional spaces, are effective for clear-margin classification, and can use kernels for non-linear data, but they are computationally intensive and require careful parameter tuning. NB is fast, performs well with small datasets, and is ideal for text classification, but it assumes feature independence, which is often unrealistic. GLM combines L1 and L2 regularization for feature selection and multicollinearity handling, offering interpretability, but it may underperform with highly non-linear data. GAM are flexible, handle non-linear relationships, and are interpretable, but they can be computationally expensive and complex to tune. MARS model non-linear and interaction effects effectively and are interpretable, but they can overfit with noisy data and require careful tuning. XGB delivers high performance, handles large datasets, and is robust to outliers, but it is complex to interpret, computationally intensive, and requires extensive hyperparameter tuning. Each model has its trade-offs, making it crucial to select the right one based on the specific problem, dataset size, and interpretability requirements.
Feature selection and model explanation
Obtaining a correct interpretation of ML models could be challenging. The SHapley Additive exPlanations (SHAP) method was a technique that ranked the importance of input features and explains the predictions of a model. Its implementation aimed to overcome the “black box” problem by assisting in feature selection using SHAP values, which ranked the importance of features. This process helped to reduce the initial 47 features to a final set of 9 features that had the best predictive power. This selected model was then used for further analysis.
The SHAP method provided both global and local explanations for model interpretation. Global explanations provided consistent and accurate attribution values for each feature in the model, illustrating the associations between input features and the progression of kidney function. On the other hand, local explanations demonstrated specific predictions for individual patients by inputting specific data into the model.
Statistical analysis
First, the baseline data were described according to the prevalence of CM, with all variables in both groups being described in accordance with CM status. Using chi-square tests for categorical variables and t-tests for quantitative data, a variance analysis between the two groups was also carried out.
In order to examine the risk factors impacting CM, stepwise logistic regression analysis was then used to build three models, the first of which had CM with the primary risk factor being serum vitamin D in the previous year. The second model combined CM with information on demographics, lifestyle choices, and the amount of sunburns in the previous year. Moreover, forest patches were made. The third model integrated CM with information on demographics, lifestyle choices, past medical history, and the number of sunburns in the previous year. Forest plots were also used to demonstrate the third model.
A subgroup analysis of CM was then completed, comparing the outcomes of the third model for men and women and for the higher and lower age cases, respectively. The subgroups were divided based on gender and age.
According to the official NHANES weight recommendations, we selected WTMEC2YR as the analytic weight, which was used for both the interviewed and MEC examined sample persons because the majority of the sample data included came from the questionnaire. R4.2.2 (R CORE TEAM, Vienna, Austria) was used to run all analyses for this study, and P 0.05 was regarded as statistically significant.
Results
The outcomes for each covariate for the groups with and without CM disease are displayed in Table 1. As can be seen, only age and the number of sunburns in the previous year showed a statistically significant difference between the two groups. Other factors, including gender, race, education, marital status, PIR, smoking, alcohol use, diabetes, hypertension, and BMI, showed no significant differences.
In model 1, which divides serum vitamin D in the previous year into four quarters, Q3 and Q4 are statistically significant, along with a dose-response relationship, as shown in Table 2. Results from Models 2, 3, and 1 are comparable. The vitamin D in the previous year and having CM, however, showed a clear dose-response relationship in Model 4, and Q2-Q4 were all statistically significant when compared to Q1 and all had ORs that were significantly higher than 1. Q2, Q3, and Q4 all had odds ratios of 0.25, 0.33, and 0.32, respectively, with a 95% confidence interval of 0.1 to 0.85.
We included all covariates in the model and generated forest plots after investigating the relationship between CM and sunburn based on model 3. Figure 2 demonstrates the statistical significance of the number of sunburns in the previous year, vitamin D, advanced age, Caucasian, some college education, single, unmarried, cohabiting, smoking, diabetes, and hypertension. While some of the aforementioned statistically significant risk factors have been previously reported, others could also be explained by the confounding variables used in this study. It is obvious that additional research into the risk factors for CM is necessary.

Figure 2. Forest plot for CM risk factors. LBXVIDMS: Serum vitamin D; DEQ038Q: sunburn times; RIDAGEYR: age; RIAGENDR: gender (1=male, 2=female); RIDRETH1: race (1=Mexican American, 2=Other Hispanic, 3=Non-Hispanic White, 4=Non-Hispanic Black, 5=Other Race - Including Multi-Racial), DMDEDUC2: education (1=Less Than 9th Grade, 2 = 9-11th Grade, 3=High School Grad/GED or Equivalent, 4=Some college or AA degree, 5=College Graduate or above); DMDMARTL: marriage (1=Married, 2=Widowed, 3=Divorced, 4=Separated, 5=Never married, 6=Living with partner); BMIQ: BMI (1=normal (25<), 2=overweight (25≤BMI<30), 3=obesity (≥30)); SMQ020: smoking (1= No, 2= Yes); ALQ151: alcohol (1= No, 2= Yes); DIQ010: diabetes (1= No, 2= Yes, 3=Borderline, 9=Missing); HYTQ(1= No, 2= Yes).
Subgroup analysis
The results of the subgroup analysis are shown in Table 3, with statistically significant Q3 (OR=0.64, 95% CI (0.48, 0.81)), Q4 (OR=0.31, 95% CI (0.18, 0.51)) for men, and Q4 (OR=0.29, 95% CI (0.15, 0.45) for women. Men had significantly higher ORs than women did. In the age subgroup, senior patients had higher ORs than non-senior patients, with Q3 having a higher OR in the senior group than the non-senior group (OR=0.74, 95% CI (0.41, 0.98), and Q4 having a higher OR in the senior group than the non-senior group (OR=0.53, 95% CI (0.23, 0.73)).
Explainable machine learning model
The derivation cohort data was used to generate 10 ML models for predicting cutaneous melanoma. Before we conduct the ML training, we made a correlation analysis and it showed that marriage, PIR and Age had negative correlation while education, PIR and smoking had positive correlation (Figure 3). Among the 10 models, the XGB model achieved the best predictive performance for “cutaneous melanoma” with an AUC of 0.906. The KNN model (AUC = 0.854) and Support Vector Machine model (AUC = 0.808) followed in terms of performance. The ROC curves for the 9 selected features in all ML models and the AUC summary plot for XGB could be found in Figure 4A. Therefore, it could be observed that among the mentioned five models, the XGB model performed the best in predicting “ cutaneous melanoma “. The performance of the XGB model with different numbers of features was shown in Figure 4C. Sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV), accuracy, and F1 score were calculated at the optimal cutoff value that maximized the Youden index. The final model was determined during the feature simplification process of the XGB model. We analyzed the importance of all 45 features, as shown in Figure 4B. The 9-feature model demonstrated good net benefit and high threshold probability, as depicted in Figure 4C.

Figure 4. (A) ROC Curve of 10 machine learning models, (B) Variable importance plot, (C) Feature selection processing plot. LBXVIDMS: Serum vitamin D; DEQ038Q: sunburn times; RIDAGEYR: age; RIAGENDR: gender (1=male, 2=female); RIDRETH1: race (1=Mexican American, 2=Other Hispanic, 3=Non-Hispanic White, 4=Non-Hispanic Black, 5=Other Race - Including Multi-Racial), DMDEDUC2: education (1=Less Than 9th Grade, 2 = 9-11th Grade, 3=High School Grad/GED or Equivalent, 4=Some college or AA degree, 5=College Graduate or above); DMDMARTL: marriage (1=Married, 2=Widowed, 3=Divorced, 4=Separated, 5=Never married, 6=Living with partner); BMIQ: BMI (1=normal(25<), 2=overweight (25≤BMI<30), 3=obesity(≥30)); SMQ020: smoking (1= No, 2= Yes); ALQ151: alcohol (1= No, 2= Yes); DIQ010: diabetes (1= No, 2= Yes, 3=Borderline, 9=Missing); HYTQ (1= No, 2= Yes).
Model explanation
Due to the difficulty of clinical acceptance of prediction models that could not be directly explained and interpreted, the SHAP method was used to explain the output of the final model by calculating the contribution of each variable to the prediction. This interpretable approach provided two types of explanations: feature-level model global explanations and individual-level local explanations. Global explanations described the overall functionality of the model. As shown in the SHAP summary plots (Figures 5B, D), the contribution of features to the model was evaluated using average SHAP values and displayed in descending order.

Figure 5. Global model explanation by the SHAP method. (A) Waterfall plot and evolution of risks contributed by each feature for individual patient at high risk of cutaneous melanoma and low risk (B) SHAP summary bar plot. (C) Force plot for the internal validation set at high risk of cutaneous melanoma and low risk. (D) SHAP summary dot plot. LBXVIDMS: Serum vitamin D; DEQ038Q: sunburn times; RIDAGEYR: age; RIAGENDR: gender (1=male, 2=female); RIDRETH1: race (1=Mexican American, 2=Other Hispanic, 3=Non-Hispanic White, 4=Non-Hispanic Black, 5=Other Race - Including Multi-Racial), DMDEDUC2: education (1=Less Than 9th Grade, 2 = 9-11th Grade, 3=High School Grad/GED or Equivalent, 4=Some college or AA degree, 5=College Graduate or above); DMDMARTL: marriage (1=Married, 2=Widowed, 3=Divorced, 4=Separated, 5=Never married, 6=Living with partner); BMIQ: BMI(1=normal (25<), 2=overweight (25≤BMI<30), 3=obesity (≥30)); SMQ020: smoking (1= No, 2= Yes); ALQ151: alcohol (1= No, 2= Yes); DIQ010: diabetes (1= No, 2= Yes, 3=Borderline, 9=Missing); HYTQ (1= No, 2= Yes).
Furthermore, local explanations analyzed how specific predictions are made for individual cases by combining personalized input data. According to the prediction model, Figure 4A represented the patient with a probability of 0.209% towards the “cutaneous melanoma” class, while the patient with a probability of 99.8% towards the “non-cutaneous melanoma “ class. The actual measured values of the features were also shown in the waterfall plot, as depicted in Figure 5A. As observed, the values of LBXVIDMS, INDFMPIR, RIDAGEYR, DMDMARTL, BMIQ, DIQ010, RIDRETH1 and 4 other features would contribute to the categorization as “non-cutaneous melanoma”. If the actual values of most features were within the normal range, such as LBXVIDMS, the risk of “cutaneous melanoma” would be low. On the other hand, if the actual value of LBXVIDMS went beyond the normal range, it might increase the risk of “cutaneous melanoma” for the patient, even if the overall prediction put the case into the “non-cutaneous melanoma” class.
In Figure 5C, a similar phenomenon was observed for patients who experienced “non-cutaneous melanoma”. The features that drove the decision towards or away from the “non-cutaneous melanoma” class and their actual measurement values were shown in Figure 5C. Additionally, Figure 5C illustrated the explanatory force plots for patients in the internal validation cohort. Figure 5C represented cases where the likelihood of “cutaneous melanoma” was lower, while the likelihood of “non-cutaneous melanoma” was higher. At last, we conducted a partial dependence plot to detect the key feature (vitaminD) impact on SHAP value (Figure 6).
Discussion
In this study, we found that vitamin D (Q2 (OR=0.97, 95% CI (0.44, 0.98)), Q3 (OR=0.71, 95% CI (0.65, 0.92)), and Q4 (OR=0.32, 95% CI (0.55, 0.81)), sunburn, advanced age, Caucasian, educational attainment some college, single and unmarried, smoking, diabetes and hypertension may all influence the development of CM. Further subgroup analyzes found that vitamin D had a protective effect against CM especially in female (OR=0.29 (95% CI: 0.15–0.45)) and young people (OR=0.74, 95% CI (0.41, 0.98)). Sun exposure is known to promote the synthesis of vitamin D, also known as the “sunshine vitamin”, which is a hormone proponent (15). Previous studies demonstrate that lack of vitamin D has been linked to an increased risk of several cancers, including CM (16, 17). This can be explained by how vitamin D inhibits the proliferation of CM cells both in vitro and in vivo. There are currently no established guidelines for measuring serum vitamin D levels or recommending vitamin D supplementation for patients with CM (18, 19). Although exposure to sunlight may increase the availability of vitamin D, clinicians should stress that adequate serum concentrations are typically achieved through dietary intake of the vitamin (20–23). Because there is a risk of heterochronic skin cancers in CM patients with vitamin D deficiency, oral vitamin D supplements should be chosen over unprotected sun exposure (24).
Additionally, we carried out an age and gender subgroup analysis and discovered that men were more likely to develop CM than women. Older people had a higher risk of developing CM than younger people did. Numerous studies over the past few years have focused on gender differences in cutaneous CM, and the findings indicate that compared to men (25, 26). Independent of the primary histological and clinical prognostic factors, women have a higher survival rate. The relative excess risk of death in men was found to be 2.70 (95% CI 2.38-3.06) in a retrospective study involving 10,538 CM patients, with survival rates remaining higher in women after accounting for numerous confounding factors (26).
Age-related effects on CM risk factors, prognosis, SLN positivity, and BRAF mutations have been supported by some studies (27–29). Offering treatment options takes age into account as well. The impact of CM drugs on frequent hospital visits for regular infusions and imaging, as well as toxicity, needs to be carefully assessed, especially in older patients with limited social support. Immunotherapy and targeted therapies give similar responses and toxicity to older patients, despite more non-CM skin cancers on targeted therapies (30, 31).
A previous meta-analysis highlighted the potential of machine learning in melanoma screening, categorizing 48 studies into seven groups based on algorithmic approaches (33). These groups included: artificial neural network (n=23), support vector machines (n=8), decision tree (n=5), cluster analysis (n=4), Bayesian network (n=3) and other (n=10). Analysis techniques used for the papers in the “other” group comprised border analysis, k-nearest neighbor, forest plot, principal component analysis, low level image processing, and unique algorithms. The mean sensitivity and specificity for each group were calculated. The mean sensitivity and specificity of the 48 articles are 87.6 and 83.54. Another recent meta-analysis including 30 references revealed prediction of immunotherapy response and prognosis of melanoma (34). The pooled AUC was 0.728 (95%CI: 0.629–0.828) for PFS in the training set, 0.760 (95%CI: 0.728–0.792) and 0.819 (95%CI: 0.757–0.880) for treatment response in the training and validation sets, respectively, and 0.746 (95%CI: 0.721–0.771) and 0.700 (95%CI: 0.677–0.724) for OS in the training and validation sets, respectively. In this study, we trained an XGBoost model for melanoma screening, achieving a high AUC of 0.906. Compared to existing approaches, representing a substantial advancement in melanoma screening technology. Unlike most published studies focusing on prognostic prediction (32–34), our work provides both clinically actionable risk factor analysis and an advanced screening tool, bridging the gap between epidemiological research and clinical application in melanoma detection and prevention. Most of the published articles focus on the prognosis prediction of melanoma using informatics, while our study is based on a large scale population level data, which is a clinically practical and advanced (35, 36).
Conclusion
This study identifies key risk factors for cutaneous melanoma (CM), including vitamin D levels (Q2-Q4), sunburn, advanced age, Caucasian ethnicity, educational attainment, marital status, smoking, diabetes, and hypertension, with vitamin D showing a protective effect, particularly in females and younger individuals. Subgroup analysis revealed higher CM risk in men and older individuals, consistent with prior research. The XGBoost model achieved superior predictive performance (AUC = 0.906) for CM screening, outperforming other algorithms like KNN and SVM, while the SHAP method provided interpretable insights into feature contributions, enhancing clinical applicability. Bridging epidemiological research and clinical practice, the study offers actionable risk factor analysis and an advanced screening tool, emphasizing the importance of vitamin D supplementation over unprotected sun exposure and the need for age- and gender-specific prevention strategies.
Strength and limitations
This study had key strengths as below: firstly, comprehensive multi-covariate adjustments (e.g., demographics, lifestyle, comorbidities) to isolate vitamin D’s protective effect against melanoma; secondly, rigorous model comparison across ten ML algorithms, with XGBoost achieving exceptional predictive accuracy (AUC=0.906); thirdly, interpretable AI via SHAP values, clearly identifying vitamin D as the top contributor to predictions. However, there are still some limitations of this study. Firstly, the data used in this study were from a cross-sectional study and the analysis performed could not explain the causal relationship of CM. Secondly, the inclusion of covariates in this study may still be inadequate and may overlook the effect of other factors on CM. Thirdly, the sample period of this study was 6 years across and there may be bias in the data measurement due to time variation. Finally, CM, the target of analysis in this study, is a relatively rare disease and the sample of CM patients included in this study was limited.
Future recommendation
To advance the findings of this study, future research should prioritize longitudinal cohorts to establish causality between vitamin D and melanoma risk, addressing the limitations of cross-sectional data. Expanding sample diversity and integrating multi-omics data could uncover mechanistic pathways and improve generalizability. Enhancing predictive models via hybrid approaches or dynamic feature engineering may refine accuracy.
Data availability statement
The original contributions presented in the study are included in the article/supplementary material, Further inquiries can be directed to the corresponding author/s.
Author contributions
LL: Investigation, Methodology, Visualization, Writing – original draft. ML: Conceptualization, Supervision, Validation, Writing – review & editing.
Funding
The author(s) declare that no financial support was received for the research and/or publication of this article.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declare that no Generative AI was used in the creation of this manuscript.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
1. Hopkins ZH, Secrest AM. An international comparison of Google searches for sunscreen, sunburn, skin cancer, and melanoma: Current trends and public health implications. Photodermatol Photoimmunol Photomed. (2019) 35:87–92. doi: 10.1111/phpp.2019.35.issue-2
2. Hopkins ZH, Secrest AM. Public health implications of google searches for sunscreen, sunburn, skin cancer, and melanoma in the United States. Am J Health Promot. (2019) 33:611–5. doi: 10.1177/0890117118811754
3. Tripp MK, Peterson SK, Prokhorov AV, Shete SS, Lee JE, Gershenwald JE, et al. Correlates of sun protection and sunburn in children of melanoma survivors. Am J Prev Med. (2016) 51:e77–85. doi: 10.1016/j.amepre.2016.02.032
4. Raimondi S, Suppa M, Gandini S. Melanoma epidemiology and sun exposure. Acta Derm Venereol. (2020) 100:adv00136. doi: 10.2340/00015555-3491
5. Bataille V. Sun exposure, sunbeds and sunscreens and melanoma. What are the controversies? Curr Oncol Rep. (2013) 15:526–32. doi: 10.1007/s11912-013-0342-4
6. Kaskel P, Lange U, Sander S, Huber MA, Utikal J, Leiter U, et al. Ultraviolet exposure and risk of melanoma and basal cell carcinoma in Ulm and Dresden, Germany. J Eur Acad Dermatol Venereol. (2015) 29:134–42. doi: 10.1111/jdv.2014.29.issue-1
7. Lopes F, Sleiman MG, Sebastian K, Bogucka R, Jacobs EA, Adamson AS. UV exposure and the risk of cutaneous melanoma in skin of color: A systematic review. JAMA Dermatol. (2021) 157:213–9. doi: 10.1001/jamadermatol.2020.4616
8. Liyanage UE, Law MH, Melanoma Meta-analysis C, Barrett JH, Iles MM, MacGregor S. Is there a causal relationship between vitamin D and melanoma risk? A Mendelian randomization study. Br J Dermatol. (2020) 182:97–103. doi: 10.1111/bjd.v182.1
9. Religi A, Backes C, Chatelan A, Bulliard JL, Vuilleumier L, Moccozet L, et al. Estimation of exposure durations for vitamin D production and sunburn risk in Switzerland. J Expo Sci Environ Epidemiol. (2019) 29:742–52. doi: 10.1038/s41370-019-0137-2
10. Stucci LS, D’Oronzo S, Tucci M, Macerollo A, Ribero S, Spagnolo F, et al. Vitamin D in melanoma: Controversies and potential role in combination with immune check-point inhibitors. Cancer Treat Rev. (2018) 69:21–8. doi: 10.1016/j.ctrv.2018.05.016
11. Field S, Newton-Bishop JA. Melanoma and vitamin D. Mol Oncol. (2011) 5:197–214. doi: 10.1016/j.molonc.2011.01.007
12. Thompson MJW, Jones G, Aitken DA. Constitutive melanin density is associated with higher 25-hydroxyvitamin D and potentially total body BMD in older Caucasian adults via increased sun tolerance and exposure. Osteoporos Int. (2018) 29:1887–95. doi: 10.1007/s00198-018-4568-8
13. Islam MS, Shahrear P, Saha G, Ataullha M, Rahman MS. Mathematical analysis and prediction of future outbreak of dengue on time-varying contact rate using machine learning approach. Comput Biol Med. (2024) 178:108707. doi: 10.1016/j.compbiomed.2024.108707
14. Saha M, Deb A, Sultan I, Paul S, Ahmed J, Saha G. Leveraging machine learning to evaluate factors influencing vitamin D insufficiency in SLE patients: A case study from southern Bangladesh. PloS Global Public Health. (2023) 3:e0002475. doi: 10.1371/journal.pgph.0002475
15. Dessinioti C, Stratigos AJ. An epidemiological update on indoor tanning and the risk of skin cancers. Curr Oncol. (2022) 29:8886–903. doi: 10.3390/curroncol29110699
16. Kanasuo E, Siiskonen H, Haimakainen S, Komulainen J, Harvima IT. Regular use of vitamin D supplement is associated with fewer melanoma cases compared to non-use: a cross-sectional study in 498 adult subjects at risk of skin cancers. Melanoma Res. (2023) 33:126–35. doi: 10.1097/CMR.0000000000000870
17. Sutedja EK, Arianto TR, Lesmana R, Suwarsa O, Setiabudiawan B. The chemoprotective role of vitamin D in skin cancer: A systematic review. Cancer Manag Res. (2022) 14:3551–65. doi: 10.2147/CMAR.S389591
18. Caini S, Boniol M, Tosti G, Magi S, Medri M, Stanganelli I, et al. Vitamin D and melanoma and non-melanoma skin cancer risk and prognosis: a comprehensive review and meta-analysis. Eur J Cancer. (2014) 50:2649–58. doi: 10.1016/j.ejca.2014.06.024
19. Mahamat-Saleh Y, Aune D, Schlesinger S. 25-Hydroxyvitamin D status, vitamin D intake, and skin cancer risk: a systematic review and dose-response meta-analysis of prospective studies. Sci Rep. (2020) 10:13151. doi: 10.1038/s41598-020-70078-y
20. Burkard M, Niessner H, Leischner C, Piotrowsky A, Renner O, Marongiu L, et al. High-dose ascorbate in combination with anti-PD1 checkpoint inhibition as treatment option for Malignant melanoma. Cells. (2023) 12:254. doi: 10.3390/cells12020254
21. Raszewska-Famielec M, Flieger J. Nanoparticles for topical application in the treatment of skin dysfunctions-an overview of dermo-cosmetic and dermatological products. Int J Mol Sci. (2022) 23:15980. doi: 10.3390/ijms232415980
22. Ribero S, Stucci LS, Marra E, Marconcini R, Spagnolo F, Orgiano L, et al. Effect of age on melanoma risk, prognosis and treatment response. Acta Derm Venereol. (2018) 98:624–9. doi: 10.2340/00015555-2944
23. Tian C, Liu S, Huo R. Identification of the ageing-related prognostic gene signature, and the associated regulation axis in skin cutaneous melanoma. Sci Rep. (2023) 13:24. doi: 10.1038/s41598-022-22259-0
24. Newton-Bishop JA, Beswick S, Randerson-Moor J, Chang Y-M, Affleck P, Elliott F, et al. Serum 25-hydroxyvitamin D3 levels are associated with breslow thickness at presentation and survival from melanoma. J Clin Oncol. (2009) 27:5439–44. doi: 10.1200/JCO.2009.22.1135
25. Kanpipit N, Nualkaew N, Thapphasaraphong S. The potential of purple waxy corn cob (Zea mays L.) extract loaded-sericin hydrogel for anti-hyperpigmentation, UV protection and anti-aging properties as topical product applications. Pharmaceuticals (Basel). (2022) 16:35. doi: 10.3390/ph16010035
26. Morgese F, Sampaolesi C, Torniai M, Conti A, Ranallo N, Giacchetti A, et al. Gender differences and outcomes in melanoma patients. Oncol Ther. (2020) 8:103–14. doi: 10.1007/s40487-020-00109-1
27. Kelly CM, Qin LX, Whiting KA, Richards AL, Avutu V, Chan JE, et al. A phase 2 study of epacadostat and pembrolizumab in patients with advanced sarcoma. Clin Cancer Res. (2023) (11):2043–51. doi: 10.1158/1078-0432.CCR-22-3911
28. Lergenmuller S, Rueegg CS, Perrier F, Robsahm TE, Green AC, Lund E, et al. Lifetime sunburn trajectories and associated risks of cutaneous melanoma and squamous cell carcinoma among a cohort of Norwegian women. JAMA Dermatol. (2022) 158:1367–77. doi: 10.1001/jamadermatol.2022.4053
29. Orzan OA, Giurcaneanu C, Dima B, Dima MB, Ion A, Balaceanu B, et al. Cutaneous melanoma and glioblastoma multiforme association-case presentation and literature review. Diagnostics (Basel). (2023) 13:1046. doi: 10.3390/diagnostics13061046
30. Perrier F, Ghiasvand R, Lergenmuller S, Robsahm TE, Green AC, Borch KB, et al. Physical activity and cutaneous melanoma risk: A Norwegian population-based cohort study. Prev Med. (2021) 153:106556. doi: 10.1016/j.ypmed.2021.106556
31. Wang X, Guo S, Zhou H, Sun Y, Gan J, Zhang Y, et al. Immune pathways with aging characteristics improve immunotherapy benefits and drug prediction in human cancer. Cancers (Basel). (2023) 15:342. doi: 10.3390/cancers15020342
32. Koyanagi K, O’Day SJ, Gonzalez R, Lewis K, Robinson WA, Amatruda TT, et al. Serial monitoring of circulating melanoma cells during neoadjuvant biochemotherapy for stage III melanoma: outcome prediction in a multicenter trial. J Clin Oncol. (2005) 23:8057–64. doi: 10.1200/JCO.2005.02.0958
33. Kuo CT, Hoon DS, Takeuchi H, Turner R, Wang HJ, Morton DL, et al. Prediction of disease outcome in melanoma patients by molecular analysis of paraffin-embedded sentinel lymph nodes. J Clin Oncol. (2003) 21:3566–72. doi: 10.1200/JCO.2003.01.063
34. Maurichi A, Miceli R, Camerini T, Mariani L, Patuzzo R, Ruggeri R, et al. Prediction of survival in patients with thin melanoma: results from a multi-institution study. J Clin Oncol. (2014) 32:2479–85. doi: 10.1200/JCO.2013.54.2340
35. Safran T, Viezel-Mathieu A, Corban J, Kanevsky A, Thibaudeau S, Kanevsky J. Machine learning and melanoma: The future of screening. J Am Acad Dermatol. (2018) 78:620–1. doi: 10.1016/j.jaad.2017.09.055
Keywords: vitamin D, cutaneous melanoma, male, aging, NHANES
Citation: Li L and Luo M (2025) Exploration in association between vitamin D and cutaneous melanoma and explainable machine learning prediction. Front. Oncol. 15:1503611. doi: 10.3389/fonc.2025.1503611
Received: 04 November 2024; Accepted: 14 April 2025;
Published: 08 May 2025.
Edited by:
Chiara Moltrasio, Fondazione IRRCS Ca’ Granda Ospedale Maggiore Policlinico, ItalyReviewed by:
Goutam Saha, University of Dhaka, BangladeshMaurizio Romagnuolo, IRCCS Ca ‘Granda Foundation Maggiore Policlinico Hospital, Italy
Copyright © 2025 Li and Luo. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Lingyi Li, d2luZ2xpbGluZ3lpQDE2My5jb20=; Man Luo, c3Vuc2hpbmVtYW4yMDIzQDE2My5jb20=