Leveraging Machine Learning for Personalized Dietary Recommendations, Nutritional Patterns, and Health Outcome Predictions
DOI:
https://doi.org/10.70882/josrar.2024.v1i2.40Keywords:
Machine learning, Nutrition, Food, health, Dietary patterns, Data integrationAbstract
Unhealthy dietary patterns are key contributors to chronic diseases such as obesity, diabetes, and cardiovascular conditions. This study employs machine learning (ML) techniques to analyze dietary intake, identify patterns, and assess their relationships with health outcomes. The aim is to provide personalized dietary recommendations and insights to promote healthier eating habits.
Data for this research were sourced from a Kaggle dataset on foods and nutrients and the National Health and Nutrition Examination Survey (NHANES) on health outcomes. Preprocessing steps included data cleaning, feature selection, and transformation using one-hot encoding and scaling techniques. Machine learning algorithms were applied to build a food recommendation system and a diet health check system. Visualizations such as correlation heatmaps, scatter plots, and dashboards further illustrated the relationships between demographic factors, nutrient intake, and health outcomes. The food recommendation system effectively identified foods with similar nutritional profiles to user preferences. For instance, it suggested nutrient-rich alternatives like rice noodles and kale, achieving similarity scores above 0.99 in multiple test cases. The diet health check system analyzed nutrient intake against predefined thresholds and provided tailored recommendations. Excessive carbohydrate, protein, fat, and cholesterol consumption were linked to conditions such as diabetes, coronary heart disease, and cancer, with specific dietary adjustments suggested for improvement. This study demonstrates the power of machine learning in personalizing dietary advice and enhancing health outcomes. By leveraging advanced algorithms and diverse datasets, the developed systems present a scalable solution for promoting balanced diets and mitigating chronic disease risks. Further refinement and broader implementation of these tools are recommended to maximize their impact on public health.
References
AnQ, R. S. (2023). A Comprehensive Review on Machine Learning in Healthcare Industry: Classification, Restrictions, Opportunities and Challenges. Sensors, 23(9). https://doi.org/10.3390/s23094178.4178.
Curion, F., & Theis, F. J. (2024). Machine learning integrative approaches to advance computational immunology. Genome Medicine, 16(1), 80. https://doi.org/10.1186/s13073-024-01350-3.
Fleischhacker, S. E., Woteki, C. E., Coates, P. M., Hubbard, V. S., Flaherty, G. E., Glickman, D. R., Harkin, T. R., Kessler, D., Li, W. W., Loscalzo, J., Parekh, A., Rowe, S., Stover, P. J., Tagtow, A., Yun, A. J., & Mozaffarian, D. (2020). Strengthening national nutrition research: Rationale and options for a new coordinated federal research effort and authority. American Journal of Clinical Nutrition, 112(3), 721-769. https://doi.org/10.1093/ajcn/nqaa179.
Gupta, V., Mishra, V. K., Singhal, P., & Kumar, A. (2022). An overview of supervised machine learning algorithm [Paper presentation]. 2022 11th International Conference on System Modeling & Advancement in Research Trends (SMART), Moradabad, India, 87-92. https://doi.org/10.1109/SMART55829.2022.10047618.
Hassan, U. M., Ani, C. L., Ndaware, M. M. & Adesue, G. A. (2021). Modelling the Trend and Determinants of Stunted Children Age 0-59 Months in Nigeria. Science World Journal, 16(1): 22-28. https://www.scienceworldjournal.org/article/view/21496.
Kirk, D., Kok, E., Tufano, M., Tekinerdogan, B., Feskens, E. J. M., & Camps, G. (2023). Machine learning in nutrition research. Advances in Nutrition, 14(1), nmac103. https://doi.org/10.1093/advances/nmac103.
Ma, P., Li, A., Yu, N., Li, Y., Bahadur, R., Wang, Q., & Ahuja, J. K. (2021). Application of machine learning for estimating label nutrients using USDA Global Branded Food Products Database (BFPD). Journal of Food Composition and Analysis, 102, 103857. https://doi.org/10.1016/j.jfca.2021.103857.
National Academies of Sciences, Engineering, and Medicine, Health and Medicine Division, Food and Nutrition Board, & Food Forum. (2024). Dietary patterns to prevent and manage diet-related disease across the lifespan: Proceedings of a workshop (M. Snair, Ed.). National Academies Press. https://doi.org/10.17226/38648303.
Sakiyo, D. C., Yusuf, F. A., Bristone, B., & Okuh-Ikeme, P. C. (2025). Comparative Effect of Single and Mixed Organic Manure on Cucumber Growth Parameters in Girei Local Government Area of Adamawa State. Journal of Science Research and Reviews, 2(1), 45-52. https://doi.org/10.70882/josrar.2025.v2i1.24.
Schulz, C. A., Oluwagbemigun, K., & Nöthlings, U. (2021). Advances in dietary pattern analysis in nutritional epidemiology. European Journal of Nutrition, 60(8), 4115–4130. https://doi.org/10.1007/s00394-021-02545-9.
Schwedhelm, C., Lipsky, L. M., Shearrer, G. E., & et al. (2021). Using food network analysis to understand meal patterns in pregnant women with high and low diet quality. International Journal of Behavioral Nutrition and Physical Activity, 18, 101. https://doi.org/10.1186/s12966-021-01172-1.
Shang, X., Liu, J., Zhu, Z., Zhang, X., Huang, Y., Liu, S., Wang, W., Zhang, X., Tang, S., Hu, Y., Yu, H., Ge, Z., & He, M. (2023). Healthy dietary patterns and the risk of individual chronic diseases in community-dwelling adults. Nature Communications, 14(1), 6704. https://doi.org/10.1038/s41467-023-42523-9.
Varshney, N., Jadhav, N., Gupta, K., Mate, N. R., Rose, A., & Kumar, P. (2023). Personalized dietary recommendations using machine learning: A comprehensive review [Paper presentation]. 2023 International Conference on Artificial Intelligence for Innovations in Healthcare Industries (ICAIIHI), Raipur, India. https://doi.org/10.1109/ICAIIHI57871.2023.10489126.
Wang, W., Liu, Y., Li, Y., Luo, B., Lin, Z., Chen, K., & Liu, Y. (2020). Dietary patterns and cardiometabolic health: Clinical evidence and mechanism. MedComm, 4(1), e212. https://doi.org/10.1002/mco2.212.
Zhao, J. L. & Zheng, S. (2021). A review of statistical methods for dietary pattern analysis. Nutr J, 20: 37. https://doi.org/10.1186/s12937-021-00692-7.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Timothy Olutunde, Chukwuemeka Lawrence Ani, Godwin Aondofa Adesue (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- NonCommercial — You may not use the material for commercial purposes.
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.