Healthy Meal Recommendation Application Based on Calorie Intake Using the Knapsack Algorithm

Main Article Content

Regina Zulaikha Tizar
Gita Novi Yanti
Muhammad Regi Nidzra Kurniawan

Abstract

This study aims to develop a healthy meal recommendation application capable of generating optimal menu combinations based on the user’s daily calorie limit. The problem addressed is the difficulty in determining balanced and nutritious meals that align with individual caloric needs. To overcome this issue, the Knapsack algorithm is utilized to optimize menu selection by considering nutritional value as the optimization parameter and calories as the capacity constraint. The system is developed using the Ionic Framework as the user interface and SQLite as the local database for food data storage. The Knapsack algorithm is implemented to calculate and select food combinations with the highest nutritional value without exceeding the specified calorie limit. The testing results indicate that the application can provide accurate and consistent menu recommendations across various calorie input variations. These findings demonstrate that the proposed approach is effective in assisting users in managing their daily nutritional intake while maintaining caloric balance. Compared to conventional methods, this system offers a more adaptive and efficient solution and can be integrated into mobile devices as a tool for healthy meal planning. This study contributes to the development of intelligent systems that support a healthy lifestyle through personalized, calorie-based menu recommendations.

Article Details

Section
Articles

References

[1] L. B. Loi, D. Siagian, I. Y. Situmeang, N. Habibah, U. Satya, and T. Bhinneka, “Perancangan Sistem Rekomendasi Menu Makanan Fisiologi Pengguna Menggunakan Metode Clustering K-Means,” vol. 9, no. 6, pp. 441–445, 2025.

[2] T. Nugroho, U. Enri, and I. Maulana, “Clustering Menu Makanan Berdasarkan Kebutuhan Kalori Harian Menggunakan Algoritme K-Means,” JATI (Jurnal Mhs. Tek. Inform., vol. 8, no. 4, pp. 4411–4417, 2024, doi: 10.36040/jati.v8i4.9958.

[3] M. W. Putri, A. Muchayan, and M. Kamisutara, “Sistem Rekomendasi Produk Pena Eksklusif Menggunakan Metode Content-Based Filtering dan TF-IDF,” JOINTECS (Journal Inf. Technol. Comput. Sci., vol. 5, no. 3, p. 229, 2020, doi: 10.31328/jointecs.v5i3.1563.

[4] W. Laila, W. Widiarto, A. Wijayanto, and E. Suryani, “Rekomendasi Makanan Pasien Hiperlipidiemia Berdasarkan Hasil Klasifikasi Menggunakan Metode Naïve Bayes dan Decision Tree,” J. Edukasi dan Penelit. Inform., vol. 8, no. 2, p. 328, 2022, doi: 10.26418/jp.v8i2.56386.

[5] W. Sa’adah and U. Chotijah, “Optimasi Penentuan Menu Makanan Pendamping Air Susu Ibu Menggunakan Algoritma Genetika,” J. Tek. Inform. dan Sist. Inf., vol. 8, no. 1, pp. 235–245, 2022, doi: 10.28932/jutisi.v8i1.4486.