Food Recipe Recommendation System with Content-Based Filtering and Collaborative Filtering Methods
DOI:
10.33395/sinkron.v9i3.14778Keywords:
Content-Based Filtering, Collaborative Filtering, TF-IDF, Cosine Similarity, Neural Collaborative Filtering (NCF)Abstract
Cooking your own food at home is a good step toward reducing fast food consumption. Fast food increases the risk of dangerous diseases. The diversity of recipe information available on the internet makes it difficult to choose recipes that match user preferences. Mobile technology can help with this by recommending recipes that better suit users' eating habits. This makes the transition to a healthier diet easier. Therefore, in this study, a recommendation system was developed that can recommend recipes based on the preferences of Android users. Two main recommendation methods are used in this study: content-based filtering and collaborative filtering. Using cosine similarity, a content-based recommendation system identifies the proximity between a recipe for food and its related context. The history of user comments on recipes serves as implicit feedback for the collaborative recommendation algorithm. This eliminates the need for explicit evaluations, such as ratings. This recommendation system generates recommendations in the form of the top ten food recipes with an evaluation matrix, referred to as NDCG@k and Hit-Ratio@k. The tests revealed that a content-based filtering technique may produce helpful recommendations, with the highest similarity score of 0.41 for the entry "chocolate cake that you can easily make at home." Meanwhile, in the collaborative filtering method using the Neural Collaborative Filtering (NCF) approach, the system shows consistent performance improvements, with the MAP@10 value increasing from 0.705 to 0.767 and the NDCG@10 from 0.78 to 0.83 after 10 training epochs.
Keywords: Recommendation systems; content-based filtering; neural collaborative filtering; cosine similarity; implicit feedback
Downloads
References
Alpaugh, M., Pope, L., Trubek, A., Skelly, J., & Harvey, J. (2020). Cooking as a health behavior: Examining the role of cooking classes in a weight loss intervention. Nutrients, 12(12), 1–13. https://doi.org/10.3390/nu12123669
Cahyani, D. E., & Patasik, I. (2021). Performance comparison of tf-idf and word2vec models for emotion text classification. Bulletin of Electrical Engineering and Informatics, 10(5), 2780–2788. https://doi.org/10.11591/eei.v10i5.3157
Deng, H., Zhai, C., & Zheng, L. (2022). Neural Collaborative Filtering for Chinese Movies Based on Aspect-Aware Implicit Interactions. IEEE Access, 10, 114540–114551. https://doi.org/10.1109/ACCESS.2022.3217911
Faizin, A., & Surjandari, I. (2020). Product recommender system using neural collaborative filtering for marketplace in indonesia. IOP Conference Series: Materials Science and Engineering, 909(1). https://doi.org/10.1088/1757-899X/909/1/012072
Itsnaini, F. M., & Alexander, H. B. (2024, May 30). Banyak Remaja Terkena Obesitas karena Makan ‘Junk Food’ Berlebihan. Kompas.Com.
Juni Permana, A. H. J. P., & Agung Toto Wibowo. (2023). Movie Recommendation System Based on Synopsis Using Content-Based Filtering with TF-IDF and Cosine Similarity. International Journal on Information and Communication Technology (IJoICT), 9(2), 1–14. https://doi.org/10.21108/ijoict.v9i2.747
Mahardhika, M. N., Rahayu, F., & Zuchriadi, A. (2023). Product Recommendation System Using Implicit Feedback Based on Collaborative Filtering in E-Commerce. Seminar Nasional Teknologi Informasi, Komunikasi Dan Industri (SNTIKI) 15.
Muhamad, N. (2023, July 18). 10 Negara dengan Prevalensi Obesitas Tertinggi di Dunia. Databoks.
Nugroho, R. H., Samsudin, A., Dwi, D., Zahrain, M., Ainun, R., Putri, S., Rizma, A., & Ayu, D. (2023). Analisis Faktor Yang Mempengaruhi Pembelian Konsumen Pada Restoran Cepat Saji. 4, 1213.
Park, K., Hong, J. S., & Kim, W. (2020). A Methodology Combining Cosine Similarity with Classifier for Text Classification. Applied Artificial Intelligence, 34(5), 396–411. https://doi.org/10.1080/08839514.2020.1723868
Ramadhan, F., & Musdholifah, A. (2021). Online Learning Video Recommendation System Based on Course and Sylabus Using Content-Based Filtering. IJCCS (Indonesian Journal of Computing and Cybernetics Systems), 15(3), 265. https://doi.org/10.22146/ijccs.65623
Sari, N. N. K., Priskila, R., & Putra, P. B. A. A. (2024). IMPLEMENTASI CONTENT-BASED FILTERING MENGGUNAKAN TF-IDF AND COSINE SIMILARITY UNTUK SISTEM REKOMENDASI RESEP MASAKAN. Jurnal Keilmuan Dan Aplikasi Bidang Teknik Informatika.
Singh, R. H., Maurya, S., Tripathi, T., Narula, T., & Srivastav, G. (2020). Movie Recommendation System using Cosine Similarity and KNN. International Journal of Engineering and Advanced Technology, 9(5), 556–559. https://doi.org/10.35940/ijeat.E9666.069520
Starke, A., Willemsen, M., & Trattner, C. (2021). Nudging Healthy Choices in Food Search Through Visual Attractiveness. Frontiers in Artificial Intelligence, 4, 18.
Widianto, A., & Pebriyanto, E. (2024). Document Similarity using Term Frequency-Inverse Document Frequency Representation and Cosine Similarity. Journal of Dinda Data Science, Information Technology, and Data Analytics, 4(2), 149–153. http://journal.ittelkom-pwt.ac.id/index.php/dinda
Downloads
How to Cite
Issue
Section
License
Copyright (c) 2025 Ni Putu Triska Widiantari, I Made Agus Dwi Suarjaya, Ni Kadek Dwi Rusjayanthi

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.