A Decision Tree-Based Diet Recommendation System Based on Calorie and Macronutrient Constraints

Authors

  • Muhammad Farhansyah Universitas Pembangunan Jaya
  • Safitri Jaya Program Studi Informatika, Universitas Pembangunan Jaya

DOI:

10.33395/sinkron.v10i3.16305

Keywords:

Calorie Needs, Decision Tree, Diet Food Recommendation, Nutritional Requirements, Web-Based System

Abstract

Obesity and unhealthy eating patterns have become significant health concerns due to poor dietary habits and a lack of personalized nutritional guidance. Existing food recommendation systems often provide general recommendations without considering individual calorie and nutritional requirements. Therefore, this study aims to develop a web-based diet food recommendation system that integrates nutritional requirement calculations and Decision Tree-based food suitability classification. The system utilizes user information, including age, gender, weight, height, physical activity level, and diet goals, to calculate nutritional requirements through Body Mass Index (BMI), Basal Metabolic Rate (BMR) using the Mifflin-St Jeor method, and Total Daily Energy Expenditure (TDEE). A food dataset containing Indonesian foods and beverages was preprocessed and labeled using a rule-based approach based on macronutrient similarity scores. The Decision Tree algorithm was implemented to classify foods into suitable and unsuitable categories according to users’ nutritional requirements. Suitable foods were subsequently processed through a scoring mechanism and meal construction procedure to generate personalized meal plans. Experimental results showed that the Decision Tree model achieved an accuracy of 92.50%, precision of 78.26%, recall of 94.74%, and F1-score of 85.71%. System testing demonstrated that the developed features functioned properly and generated structured diet recommendations automatically. In conclusion, the proposed system can assist users in selecting foods according to their nutritional requirements and support healthier dietary planning.

GS Cited Analysis

Downloads

Download data is not yet available.

Author Biography

Safitri Jaya, Program Studi Informatika, Universitas Pembangunan Jaya

Lecturer at Informatics Study Program, Faculty of Technology and Design, Universitas Pembangunan Jaya, Indonesia.

References

Ajami, A., & Teimourpour, B. (2023). A Food Recommender System in Academic Environments Based on Machine Learning Models. https://doi.org/https://doi.org/10.48550/arXiv.2306.16528

Chen, Y., Guo, Y., Fan, Q., Zhang, Q., & Dong, Y. (2023). Health-Aware Food Recommendation Based on Knowledge Graph and Multi-Task Learning. Foods, 12(10), 2079. https://doi.org/10.3390/foods12102079

Farhan maulana pangestu, Andri Pramuntadi, Dita Danianti, & Dhina Puspasari Wijaya. (2025). IMPLEMENTASI ALGORITMA CONTENT-BASED FILTERING UNTUK REKOMENDASI MAKANAN SEHAT BERDASARKAN KALORI PENGGUNA. Jurnal Informatika Teknologi Dan Sains (Jinteks), 7(4), 1669–1674. https://doi.org/10.51401/jinteks.v7i4.6566

Hanif Anas Fikri. (2023). Indonesian Food and Drink Nutrition Dataset. Retrieved June 1, 2026, from PANGANku / Kementerian Kesehatan RI website: https://www.kaggle.com/datasets/anasfikrihanif/indonesian-food-and-drink-nutrition-dataset

Hayati, N. N., & Mardhiyyah, R. (2024). Penerapan Algoritma Mifflin-St Jeor dalam Pengembangan Fitur Perhitungan Kebutuhan Kalori Harian berbasis Mobile Android. Journal of Information System Research (JOSH), 6(1), 468–479. https://doi.org/10.47065/josh.v6i1.6061

Nadha Ovella Syaqhasdy, Zamahsary Martha, Nonong Amalita, & Dina Fitria. (2023). Classification of Nutrition Problems for Indonesian Toddler With Decision Tree Algorithm C4.5. UNP Journal of Statistics and Data Science, 1(5), 413–419. https://doi.org/10.24036/ujsds/vol1-iss5/98

Papadopoulos, P., Soflano, M., Chaudy, Y., Adejo, W., & Connolly, T. M. (2022). A systematic review of technologies and standards used in the development of rule-based clinical decision support systems. Health and Technology, 12(4), 713–727. https://doi.org/10.1007/s12553-022-00672-9

Rafli, H., Zen, R., & Nuryasin, I. (2024). JOISIE licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0) PENERAPAN WHITEBOX TESTING PADA PENGUJIAN SISTEM MENGGUNAKAN TEKNIK BASIS PATH. Journal Of Information Systems And Informatics Engineering, 8(1), 101–111. https://doi.org/https://doi.org/10.35145/joisie.v8i1.4229

Rahayu, S., Safitri, R. D., & Hermansyah, E. N. (2026). Implementasi Decision Tree dalam Mengelompokkan Makanan Berdasarkan Kandungan Gizi. IKN: Jurnal Informatika Dan Kesehatan, 3(1), 22–30. https://doi.org/https://doi.org/10.35473/ikn.v3i1.4937

Rahman, A. (2023). Klasifikasi Performa Akademik Siswa Menggunakan Metode Decision Tree dan Naive Bayes. Jurnal SAINTEKOM, 13(1), 22–31. https://doi.org/10.33020/saintekom.v13i1.349

Rosmiati, R., Haryana, N. R., Firmansyah, H., & Purba, R. (2023). Pola Makan, Aktivitas Fisik dan Obesitas pada Pekerja Urban di Indonesia. Amerta Nutrition, 7(2SP), 164–170. https://doi.org/10.20473/amnt.v7i2SP.2023.164-170

Rostami, M., Farrahi, V., Ahmadian, S., Mohammad Jafar Jalali, S., & Oussalah, M. (2023). A novel healthy and time-aware food recommender system using attributed community detection. Expert Systems with Applications, 221, 119719. https://doi.org/10.1016/j.eswa.2023.119719

Setiawan, W., Sunaryo, D., & AR, K. (2022). ANALISIS FITUR LAYANAN DAN KEAMANAN TERHADAP PENGGUNAAN DOMPET DIGITAL (SHOPEE PAY). Digital Business Journal, 1(1), 52. https://doi.org/10.31000/digibis.v1i1.6602

Singh, R., & Dwivedi, P. (2023). Food Recommendation Systems Based On Content-based and Collaborative Filtering Techniques. 2023 14th International Conference on Computing Communication and Networking Technologies (ICCCNT), 1–5. IEEE. https://doi.org/10.1109/ICCCNT56998.2023.10307080

Wayahdi, M. R., & Ruziq, F. (2023). Pemodelan Sistem Penerimaan Anggota Baru dengan Unified Modeling Language (UML) (Studi Kasus: Programmer Association of Battuta). Jurnal Minfo Polgan, 12(1), 1514–1521. https://doi.org/10.33395/jmp.v12i1.12870

Downloads


Crossmark Updates

How to Cite

Farhansyah, M., & Jaya, S. (2026). A Decision Tree-Based Diet Recommendation System Based on Calorie and Macronutrient Constraints. Sinkron : Jurnal Dan Penelitian Teknik Informatika, 10(3), 1340-1353. https://doi.org/10.33395/sinkron.v10i3.16305