Implementation Of A Personalized Healthy Food Menu Recommendation System Using Content-Based Filtering Based On User Profiles
Abstract
This study implemented a personalized healthy food menu recommendation system using content-based filtering and cosine similarity. The system translated user characteristics, dietary goals, preferences, allergies, and health-related restrictions into menu attributes. The pilot dataset contained 10 healthy menus represented by 15 binary attributes. Recommendation performance was evaluated offline using 10 controlled user-profile scenarios with realistic age, sex, weight, height, and activity values. Basal metabolic rate and total daily energy expenditure were calculated with the Mifflin-St Jeor equation. After allergen filtering, 94 user-menu candidate pairs were assessed. Reference relevance labels were determined before ranking based on meal-category compatibility, absence of allergen conflicts, and fulfillment of at least two target attributes. At a cut-off of three recommendations, the system achieved macro Precision@3 of 0.7000, Recall@3 of 0.9167, F1@3 of 0.7481, nDCG@3 of 0.8948, and Hit Rate@3 of 1.0000. All 10 functional test cases passed, and no allergen-conflicting menu appeared in the final top-three results. The findings indicated that the system produced relevant and traceable recommendations, although the small pilot dataset limited generalizability.
Downloads
References
World Health Organization, “Noncommunicable diseases,” World Health Organization, 2024.
Kementerian Kesehatan Republik Indonesia, “Survei Kesehatan Indonesia (SKI) 2023,” Badan Kebijakan Pembangunan Kesehatan, Jakarta, 2024.
Kementerian Kesehatan Republik Indonesia, “Peraturan Menteri Kesehatan Republik Indonesia Nomor 41 Tahun 2014 tentang Pedoman Gizi Seimbang,” Jakarta, 2014.
D. Erlansyah and P. S. Dea, “Aplikasi panduan diet berdasarkan asupan makanan dan olahraga berbasis Android,” JOISIE (Journal of Information Systems and Informatics Engineering), vol. 7, no. 2, pp. 309–318, 2023, doi: 10.35145/joisie.v7i2.3557.
M. N. Labib, H. Farisi, and W. Purnomo, “Pengembangan sistem rekomendasi gizi berdasarkan profil dan aktivitas olahraga pengguna aplikasi Cause,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 8, no. 10, 2024.
N. R. Haryana dkk., “Pengembangan aplikasi self-dietary assessment Diary NutriMe sebagai media pendampingan gizi bagi remaja overweight dan obesitas,” Amerta Nutrition, vol. 8, no. 3SP, pp. 71–81, 2024.
F. M. Pangestu, A. Pramuntadi, D. Danianti, and D. P. Wijaya, “Implementasi algoritma content-based filtering untuk rekomendasi makanan sehat berdasarkan kalori pengguna,” Jurnal Informatika Teknologi dan Sains (JINTEKS), 2025.
L. Z. Almas, Y. Susanti, and S. S. Handajani, “Penerapan algoritma K-Nearest Neighbors dalam sistem rekomendasi makanan berdasarkan kebutuhan nutrisi dengan content-based filtering,” Statistika, vol. 24, no. 1, 2024, doi: 10.29313/statistika.v24i1.3558.
M. Sholeh, M. Muhtarom, and D. Hartanti, “Perancangan sistem rekomendasi pemilihan makanan Indonesia berdasarkan kandungan nutrisi menggunakan algoritma knowledge-based filtering,” Prosiding Seminar Nasional Teknologi Informasi dan Bisnis (SENATIB), pp. 231–240, 2025.
F. Ricci, L. Rokach, and B. Shapira, Recommender Systems Handbook, 3rd ed. New York: Springer, 2022.
C. C. Aggarwal, Recommender Systems: The Textbook. Cham: Springer, 2016.
M. J. Pazzani and D. Billsus, “Content-based recommendation systems,” in The Adaptive Web, Berlin: Springer, 2007, pp. 325–341.
P. Lops, M. de Gemmis, and G. Semeraro, “Content-based recommender systems: State of the art and trends,” in Recommender Systems Handbook, Boston: Springer, 2011, pp. 73–105.
A. Muliawan, T. Badriyah, and I. Syarif, “Membangun sistem rekomendasi hotel dengan content based filtering menggunakan K-Nearest Neighbor dan Haversine Formula,” Technomedia Journal, vol. 7, no. 2, pp. 231–247, 2022, doi: 10.33050/tmj.v7i2.1893.
D. Pratiwi, Asrianda, and L. Rosnita, “Penerapan metode content-based filtering dalam sistem rekomendasi objek wisata di Aceh Tamiang,” Jurnal Ilmu Komputer dan Informatika, vol. 4, no. 2, pp. 85–96, 2024, doi: 10.54082/JIKI.169.
M. D. Mifflin dkk., “A new predictive equation for resting energy expenditure in healthy individuals,” The American Journal of Clinical Nutrition, vol. 51, no. 2, pp. 241–247, 1990, doi: 10.1093/ajcn/51.2.241.
FAO, WHO, and UNU, Human Energy Requirements: Report of a Joint FAO/WHO/UNU Expert Consultation. Rome: FAO, 2004.
A. D. Safitri, V. Atina, and A. Farida, “Sistem rekomendasi buku menggunakan metode content-based filtering,” INFOTECH: Jurnal Informatika & Teknologi, vol. 5, no. 2, pp. 218–227, 2024, doi: 10.37373/infotech.v5i2.1302.
A. Khairi, Y. Afrillia, and W. Fuadi, “Implementasi sistem rekomendasi content-based filtering untuk repositori skripsi teknik informatika menggunakan cosine similarity dan Jaccard index,” Seminar Nasional Teknologi Informasi, Sains dan Ilmu Sosial (SENASTIKA), 2024.
S. Oyadila, D. Abdullah, and A. Razi, “Implementasi content-based filtering dengan TF-IDF dan cosine similarity untuk sistem rekomendasi destinasi wisata di Aceh Tengah,” Rabit: Jurnal Teknologi dan Sistem Informasi Univrab, vol. 10, no. 2, pp. 1329–1339, 2025, doi: 10.36341/rabit.v10i2.6532.
S. Rahmadhani, L. Hakim, and G. H. Wibowo, “Sistem rekomendasi penelusuran buku berbasis content-based filtering dengan pembobotan TF-RF,” Jurnal Informatika Polinema, vol. 10, no. 4, pp. 491–500, 2024, doi: 10.33795/jip.v10i4.5565.
Kementerian Kesehatan Republik Indonesia, “Peraturan Menteri Kesehatan Republik Indonesia Nomor 28 Tahun 2019 tentang Angka Kecukupan Gizi yang Dianjurkan untuk Masyarakat Indonesia,” Jakarta, 2019.
R. S. Pressman and B. R. Maxim, Software Engineering: A Practitioner’s Approach, 9th ed. New York: McGraw-Hill, 2020.
R. S. Aditya, V. H. Pranatawijaya, and P. B. A. A. Putra, “Rancang bangun aplikasi monitoring kegiatan menggunakan metode prototype,” Journal of Information Technology and Computer Science, vol. 1, no. 1, pp. 47–57, 2021.
M. A. Jannach, D. Zanker, A. Felfernig, and G. Friedrich, Recommender Systems: An Introduction. Cambridge: Cambridge University Press, 2010.
Copyright (c) 2026 Dian Dian Dwi Setyawati, Pipin Widyaningsih, Ridwan Dwi Irawan

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
This is an open-access article distributed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License which permits unrestricted use, distribution, and reproduction in any medium. Users are allowed to read, download, copy, distribute, search, or link to full-text articles in this journal without asking by giving appropriate credit, provide a link to the license, and indicate if changes were made. All of the remix, transform, or build upon the material must distribute the contributions under the same license as the original.












