journal article·2026-07-10Open access

Explainable Machine Learning for Vitamin D-Related Chronic Disease Risk Prediction Using MIMIC-III

Salma Chebbawi, Mohamed Tabaa, Hassan Badir

Applied Sciences· Volume 16· Issue 14

Abstract

The prevalence of vitamin D deficiency has been noted to be of great concern to the population due to its association with multiple chronic ailments, such as those that affect the cardiovascular system, diabetes, bone diseases, and the immune system, and even some cancerous forms. The underlying mechanics are not well understood, but epidemiological and clinical research demonstrates notable correlations, correlated to different degrees by population, based on genetic, environmental, and lifestyle differences. The use of advanced machine learning methods in this study aimed to examine the association between serum vitamin D levels and chronic disease risk using the de-identified electronic health records from Intensive Care Unit (ICU) patients in the MIMIC-III database. A final cohort of 38,712 unique patients was selected after applying predefined inclusion and exclusion criteria, the data being used for machine learning model development and evaluation. To predict the status of chronic diseases based on vitamin D levels, supervised machine learning models were used: Logistic Regression (LR), Support Vector Machines (SVM), Random Forest (RF), and K-Nearest Neighbors (KNN). Data preprocessing involved strategies such as missing data imputation, normalization, and feature engineering to improve model training. The accuracy, precision, recall, F1-score, and receiver operating characteristic curve (ROC-AUC) were used to assess model performance. LR performed the best with the ROC-AUC of 92.5% and accuracy of 85.2%, and SVM was close behind the ROC-AUC: 90.9 percent. The chronic disease was associated with 2.1 times higher risk of chronic disease among people with severe vitamin D deficiency (p < 0.001), which was in agreement with earlier observational data. RF did not work as well (ROC-AUC: 87.7%) because it required higher dimensionality data, e.g., genetic and lifestyle parameters. The study shows the possible use of AI-based diagnostics in preventive medicine. As an example, presented vitamin D testing of high-risk population (e.g., increasing tests in old age, obesity, or dark-skinned population) adapted to ML-based risk assessment as well as supplementation plans could enhance this prevention.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Vitamin D Research Studies · Biomarkers in Disease Mechanisms · GDF15 and Related Biomarkers

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Pluridisciplinary Laboratory of Research and Innovation (LPRI), Ecole Marocaine des Sciences de l’Ingénieur, Casablanca 20190, Morocco

IDS Team, ENSA, University Abdel Malek Essaadi, Tanger 90000, Morocco

Funding

EMSI

References (52)

Show source-provided references
1. World Health Organization (WHO) (2023). Noncommunicable Diseases, WHO Fact Sheet. Available online: https://www.who.int/news-room/fact-sheets/detail/noncommunicable-diseases.
2. Investigating the impact of Vitamin D on chronic diseases using Machine Learning10.1016/j.procs.2025.03.049 ↗
3. Vitamin D Deficiency 2.0: An Update on the Current Status Worldwide10.1038/s41430-020-0558-y ↗
4. Cui, A., Zhang, T., Xiao, P., Fan, Z., Wang, H., and Zhuang, Y. (2023). Global and Regional Prevalence of Vitamin D Deficiency in Population-Based Studies from 2000 to 2022: A Pooled Analysis of 7.9 Million Participants. Front. Nutr., 10.10.3389/fnut.2023.1070808 ↗
5. Vitamin D Deficiency10.1056/NEJMra070553 ↗
6. Vitamin D: The “sunshine” vitamin
7. The Health Effects of Vitamin D Supplementation: Evidence from Human Studies
8. Charoenngam, N., and Holick, M.F. (2020). Immunologic Effects of Vitamin D on Human Health and Disease. Nutrients, 12.10.3390/nu12072097 ↗
9. Mailhot, G., and White, J.H. (2020). Vitamin D and Immunity in Infants and Children. Nutrients, 12.10.3390/nu12051233 ↗
10. Vitamin D and Multiple Health Outcomes: Umbrella Review of Systematic Reviews and Meta-Analyses of Observational Studies and Randomised Trials10.1136/bmj.g2035 ↗
11. Geographic Variation in Breast Cancer Mortality in the United States: A Hypothesis Involving Exposure to Solar Radiation
12. Vitamin D Deficiency and Risk of Cardiovascular Disease10.1161/CIRCULATIONAHA.107.706127 ↗
13. Vitamin D Deficiency and Essential Hypertension10.1016/j.jash.2015.08.009 ↗
14. Vitamin D and Cardiovascular Disease: Update and Outlook10.3109/00365513.2012.681972 ↗
15. Vitamin D Supplementation and Prevention of Type 2 Diabetes10.1056/NEJMoa1900906 ↗
16. The Effect of Vitamin D Supplementation on Insulin Sensitivity: A Systematic Review and Meta-analysis10.2337/dc19-2265 ↗
17. Vitamin D supplementation and total cancer incidence and mortality: A meta-analysis of randomized controlled trials10.1093/annonc/mdz059 ↗
18. The Role of Vitamin D in Reducing Cancer Risk and Progression10.1038/nrc3691 ↗
19. Vitamin D and Chronic Diseases10.14336/AD.2016.1021 ↗
20. Vitamin D and marine omega 3 fatty acid supplementation and incident autoimmune disease: VITAL randomized controlled trial10.1136/bmj-2021-066452 ↗
21. Grant, W.B., Wimalawansa, S.J., Pludowski, P., and Cheng, R.Z. (2025). Vitamin D: Evidence-Based Health Benefits and Recommendations for Population Guidelines. Nutrients, 17.10.3390/nu17020277 ↗
22. Vitamin D Supplementation in Pregnancy and Lactation and Infant Growth10.1056/NEJMoa1800927 ↗
23. Wimalawansa, S.J. (2019). Vitamin D Deficiency: Effects on Oxidative Stress, Epigenetics, Gene Regulation, and Aging. Biology, 8.10.3390/biology8020030 ↗
24. Extra-Skeletal Effects of Vitamin D10.1159/000486072 ↗
25. Vitamin D and the Gut Microbiome: A Systematic Review of In Vivo Studies10.1007/s00394-018-1842-7 ↗
26. Vitamin D Status and Ill Health: A Systematic Review10.1016/S2213-8587(13)70165-7 ↗
27. Vitamin D Supplements and Prevention of Cancer and Cardiovascular Disease10.1056/NEJMoa1809944 ↗
28. Vitamin D—Effects on Skeletal and Extraskeletal Health and the Need for Supplementation10.3390/nu5010111 ↗
29. Zmijewski, M.A. (2019). Vitamin D and Human Health. Int. J. Mol. Sci., 20.10.3390/ijms20010145 ↗
30. Vitamin D: Newer Concepts of Its Metabolism and Function at the Basic and Clinical Level
31. Vitamin D and Major Chronic Diseases10.1016/j.tem.2024.04.018 ↗
32. Carlberg, C., and Vukovic, A.V. (2022). Vitamin D in the Context of Evolution. Nutrients, 14.10.3390/nu14153018 ↗
33. Precision Medicine in the Era of Artificial Intelligence: Implications in Chronic Disease Management10.1186/s12967-020-02658-5 ↗
34. Sosa-Holwerda, A., Park, O.-H., Albracht-Schulte, K., Niraula, S., Thompson, L., and Oldewage-Theron, W. (2024). The Role of Artificial Intelligence in Nutrition Research: A Scoping Review. Nutrients, 16.10.3390/nu16132066 ↗
35. Panayotova, G.G. (2025). Artificial Intelligence in Nutrition and Dietetics: A Comprehensive Review of Current Research. Healthcare, 13.10.3390/healthcare13202579 ↗
36. Eşsiz, U.E., Yüregir, O.H., and Saraç, E. (2023). Applying Data Mining Techniques to Predict Vitamin D Deficiency in Diabetic Patients. Health Inform. J., 29.10.1177/14604582231214864 ↗
37. Correlation between Vitamin D Metabolic Pathway-Related Gene Polymorphisms and Cardiovascular Disease10.1039/D4FO03234A ↗
38. Sancar, N., and Tabrizi, S.S. (2023). Machine Learning Approach for the Detection of Vitamin D Level: A Comparative Study. BMC Med. Inform. Decis. Mak., 23.10.1186/s12911-023-02323-z ↗
39. Wang, C.-K., Chang, C.-Y., Chu, T.-W., and Liang, Y.-J. (2023). Using Machine Learning to Identify the Relationships between Vitamin D and Demographic, Biochemical, and Lifestyle Factors. Life, 13.10.3390/life13122257 ↗
40. Patino-Alonso, C., Gómez-Sánchez, M., Gómez-Sánchez, L., Sánchez Salgado, B., Rodríguez-Sánchez, E., García-Ortiz, L., and Gómez-Marcos, M.A. (2022). Predictive Ability of Machine-Learning Methods for Vitamin D Deficiency Prediction by Anthropometric Parameters. Mathematics, 10.10.3390/math10040616 ↗
41. Guo, J., He, Q., and Li, Y. (2024). Machine Learning-Based Prediction of Vitamin D Deficiency. Front. Endocrinol., 15.10.3389/fendo.2024.1327058 ↗
42. Dermatologist-Level Classification of Skin Cancer with Deep Neural Networks10.1038/nature21056 ↗
43. Enhancing the Prediction of Vitamin D Deficiency Levels Using an Integrated Approach of Deep Learning and Evolutionary Computing10.7717/peerj-cs.2698 ↗
44. Jiménez-Gaona, Y., Vivanco-Galván, O., Castillo-Malla, D., Vivanco-Gualán, I., and Díaz-Guzmán, P. (2025). VITA-D: A Radiomic Web Tool for Predicting Vitamin D Deficiency Levels. Appl. Sci., 15.10.3390/app15041798 ↗
45. Global Impact of Vitamin D Deficiency and Innovative Biosensing Technologies10.1016/j.cej.2025.159790 ↗
46. A Scoping Review of Artificial Intelligence for Precision Nutrition10.1016/j.advnut.2025.100398 ↗
47. Mavar, M., Sorić, T., Bagarić, E., Sarić, A., and Matek Sarić, M. (2024). The Power of Vitamin D: Is the Future in Precision Nutrition through Personalized Supplementation Plans?. Nutrients, 16.10.3390/nu16081176 ↗
48. Scalable and Accurate Deep Learning with Electronic Health Records10.1038/s41746-018-0029-1 ↗
49. Consensus Statement on Vitamin D Status Assessment and Supplementation: Whys, Whens, and Hows10.1210/endrev/bnae009 ↗
50. Applications of Artificial Intelligence in Clinical Studies: Ethical Dilemmas
51. Pan, M., Li, R., Wei, J., Peng, H., Hu, Z., Xiong, Y., Li, N., Guo, Y., Gu, W., and Liu, H. (2025). Application of Artificial Intelligence in the Health Management of Chronic Disease: Bibliometric Analysis. Front. Med., 11.10.3389/fmed.2024.1506641 ↗
52. Quan, W., Zhou, J., Wang, J., Huang, J., and Du, L. (2026). Machine Learning-Driven Precision Nutrition: A Paradigm Evolution in Dietary Assessment and Intervention. Nutrients, 18.10.3390/nu18010045 ↗