KNN Based Personalized Dietary Advisor

Authors

  • Divya Tejaswini Pulivarthi
  • Vilasagarapu Harshitha
  • Ragam Naga Sindhuri
  • Meduri Leela Naga Sai
  • Srinivasa Sai Shanmukha Mannava

Keywords:

Class imbalance, Explainable AI, Feature selection, Hyperparameter tuning, K-Nearest Neighbors (KNN), Machine learning, Nutritional optimization, One-hot encoding, Personalized diet recommendation, South indian meal preferences

Abstract

In order to achieve a variety of fitness and health objectives, such as weight loss, muscular growth, diabetes control, and maintenance, personalized diet is essential. Conventional dietary guidelines are frequently not tailored to each individual, which produces less than ideal outcomes. This study creates a personalized dietary advisor that creates meal plans according to dietary preferences, health problems, activity level, age, and gender using K- Nearest Neighbors (KNN) with one-hot encoding. South Indian food preferences are included in the dataset, guaranteeing cultural relevance and diversity in meal recommendations. By use of feature encoding and scaling, the model efficiently handles both numerical and categorical inputs, attaining 76% prediction accuracy in nutritional recommendations. With its data-driven approach to enhancing fitness and health outcomes, this system improves nutrition personalization by providing real-time, user-specific meal planning.

References

A Rodriguez-Leon, C. Villalonga, M. Munoz-Torres, J. R. Ruiz, and O. Banos, “Mobile and Wearable Sensing for the Monitoring of Diabetes-related Parameters: Systematic Review (Preprint),” JMIR mHealth and uHealth, vol. 9, no. 6, 2020, doi: https://doi.org/10.2196/25138.

J. Xu, B. S. Glicksberg, C. Su, P. Walker, J. Bian, and F. Wang, “Federated Learning for Healthcare Informatics,” Journal of Healthcare Informatics Research, vol. 5, Nov. 2020, doi: https://doi.org/10.1007/s41666-020-00082-4.

R. Abbas, Z. Abbas, A. Zahir, and S. W. Lee, “Federated Learning in Smart Healthcare: A Comprehensive Review on Privacy, Security, and Predictive Analytics with IoT Integration,” Healthcare, vol. 12, no. 24, pp. 2587–2587, Dec. 2024, doi: https://doi.org/10.3390/healthcare12242587.

S. Asgari.,H. Moazamigoodarzi,P. J. Tsai, S. Pal, “Hybrid surrogate model for online temperature and pressure predictions in data centers,” Future generation computer systems, vol. 114, pp. 531–547, Jan. 2021, doi: https://doi.org/10.1016/j.future.2020.08.029.

P. Dhade and P. Shirke, “Federated Learning for Healthcare: A Comprehensive Review,” Engineering Proceedings, vol. 59, no. 1, p. 230, 2024, doi: https://doi.org/10.3390/engproc2023059230.

T. Armand, Kintoh Allen Nfor, J.-I. Kim, and H.-C. Kim, “Applications of Artificial Intelligence, Machine Learning, and Deep Learning in Nutrition: A Systematic Review,” Nutrients, vol. 16, no. 7, pp. 1073–1073, Apr. 2024, doi: https://doi.org/10.3390/nu16071073.

H. Fan, J. Wang, X. Xu, Z. Jin, and J. Wang, “A comparative study of photoresponsive molecularly imprinted polymers with different shell thicknesses: Effects on 6‐O‐α‐maltosyl‐β‐cyclodextrin separation,” Journal of Food Science, vol. 86, no. 9, pp. 4060–4069, Aug. 2021, doi: https://doi.org/10.1111/1750-3841.15880

A. L. Beam and I. S. Kohane, “Big Data and Machine Learning in Health Care,” JAMA, vol. 319, no. 13, p. 1317, Apr. 2018,. doi: https://doi.org/10.1001/jama.2017.18391.

E. J. Topol, “High-performance medicine: the Convergence of Human and Artificial Intelligence,” Nature Medicine, vol. 25, no. 1, pp. 44–56, Jan. 2019, doi: https://doi.org/10.1038/s41591-018-0300-7

H. Ocagli ,C. Lanera, G. Lorenzoni,I. Prosepe, “Profiling Patients by Intensity of Nursing Care: An Operative Approach Using Machine Learning,” Journal of Personalized Medicine, vol. 10, no. 4, pp. 279–279, Dec. 2020, doi: https://doi.org/10.3390/jpm10040279.

P. Giudici, P. Pagnottoni, and G. Polinesi, “Network Models to Enhance Automated Cryptocurrency Portfolio Management,” Frontiers in Artificial Intelligence, vol. 3, Apr. 2020, doi: https://doi.org/10.3389/frai.2020.00022.

J. M. Ordovas, L. R. Ferguson, E. S. Tai, and J. C. Mathers, “Personalised nutrition and health,” BMJ, vol. 361, no. 361, p. bmj.k2173, Jun. 2018, doi: https://doi.org/10.1136/bmj.k2173.

I.Dayan, H. R. Roth,A. Zhong, A. Harouni,A. Gentili, “Federated learning for predicting clinical outcomes in patients with COVID-19,” Nature Medicine, pp. 1–9, Sep. 2021, doi: https://doi.org/10.1038/s41591-021-01506-3.

R. R. Mir, N. Ul Haq, K. Ishaq, N. Safie, and A. B. Dogar, “Impact of machine learning on dietary and exercise behaviors in type 2 diabetes self-management: a systematic literature review,” PeerJ Computer Science, vol. 11, p. e2568, Feb. 2025, doi: https://doi.org/10.7717/peerj-cs.2568

Published

2025-04-24

How to Cite

Divya Tejaswini Pulivarthi, Vilasagarapu Harshitha, Ragam Naga Sindhuri, Meduri Leela Naga Sai, & Srinivasa Sai Shanmukha Mannava. (2025). KNN Based Personalized Dietary Advisor. Journal of Android and IOS Applications and Testing, 10(1), 25–33. Retrieved from https://www.matjournals.net/engineering/index.php/JoAAT/article/view/1793

Issue

Section

Articles