0% found this document useful (0 votes)
71 views

Real Time Recipe Recommendation Based On Ingredients They Have at Home Using TF-IDF Algorithm

This research adopted an experimental approach to evaluate the effectiveness of the TF-IDF algorithm for realtime recipe recommendation based on available ingredients.This research adopted an experimental approach to evaluate the effectiveness of the TF-IDF algorithm for realtime recipe recommendation based on available ingredients.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

Real Time Recipe Recommendation Based On Ingredients They Have at Home Using TF-IDF Algorithm

This research adopted an experimental approach to evaluate the effectiveness of the TF-IDF algorithm for realtime recipe recommendation based on available ingredients.This research adopted an experimental approach to evaluate the effectiveness of the TF-IDF algorithm for realtime recipe recommendation based on available ingredients.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Real Time Recipe Recommendation Based on

Ingredients They Have at Home Using TF-IDF


Algorithm
*Note: Sub-titles are not captured in Xplore and should not be used

Irsyad Muhammad Fawwaz Maghfirli alif al ayubi.


School of Computer Science School Of Computer Science Antony Lee
Bina Nusantara University Bina Nusantara University School Of Computer Science
Jakarta, Indonesia Jakarta, Indonesia Bina Nusantara University
[email protected] [email protected] Jakarta, Indonesia
[email protected]
Yohan Muliono
School Of Computer Sciece
Bina Nusantara University
Jakarta, Indonesia
[email protected]

Abstract— Navigating the daily "what to cook" predicament often becomes a struggle for individuals busy managing work, family,
and other commitments. This research tackles this common challenge by introducing the "Real-Time Recipe Recommendation
System," a novel approach that suggests suitable dishes based on the ingredients readily available in a user's kitchen. This system
empowers individuals to make quick and informed meal choices, potentially minimizing food waste and enhancing their culinary
experiences.

Underpinning the system is a meticulously curated dataset of 16 diverse recipes encompassing a range of cuisines and dietary
preferences. The robust Term Frequency-Inverse Document Frequency (TF-IDF) approach represents ingredients within these
recipes, effectively capturing their relative importance and presence. Cosine similarity, a well-established technique for measuring
keyword relevance, then drives the recommendation engine, seamlessly matching user-provided ingredients to the most appropriate
recipes in the dataset.

Initial testing, using readily available ingredients like "rice," "egg," and "tomato," demonstrates the system's capability to
accurately and efficiently recommend diverse recipe options. This initial validation highlights the potential of this innovative
approach to revolutionize home cooking by:

 Reducing food waste: By suggesting recipes using existing ingredients, users are less likely to discard unused items,
minimizing potential waste and saving money.
 Enhancing culinary experiences: Users are exposed to new dishes and cooking methods, broadening their culinary
repertoire and potentially igniting passion for exploration and experimentation in the kitchen.
 Improving meal planning efficiency: Time constraints and decision fatigue become less of a hurdle as users leverage the
system's tailored recommendations to quickly determine a suitable meal, streamlining their meal planning process.
Looking ahead, the system boasts significant potential for further development. Incorporating user feedback on recommended
recipes and ingredient lists would allow for continuous improvement and personalization. Expanding the recipe dataset to
encompass a wider variety of cuisines and dietary restrictions would cater to an even broader audience. Ultimately, seamless
integration with smart home technologies promises an exciting future where kitchen appliances and platforms collaborate to
provide a truly user-centric and dynamic culinary experience.

I. INTRODUCTION (HEADING 1)
An AI application for creating meal menus based on the ingredients available at home is one of the AI applications that has
the potential to assist the public in cooking activities. This application can help users find recipes that match the ingredients
they have, thus saving them time and money in cooking.

Currently, there are several AI applications available that can generate meal menus based on the ingredients at hand.
However, these applications still have some limitations, such as:
1. Lack of accuracy
2. Limited range of ingredients
3. Inability to adjust to user preferences
Therefore, this research aims to develop an AI application for creating meal menus based on available ingredients that has
higher accuracy, a broader range of ingredients, and can adjust to user preferences.
II. LITERATURE REVIEW

A. Real-time recipe recommendation based on ingredients


This study employs the collaborative filtering method to model user preferences towards ingredients. Collaborative filtering is
a recommendation method that uses data from other users to recommend relevant products or services.

In this study, data from other users was used to model the user's preferences towards ingredients. This model was then utilized
to generate recipe recommendations relevant to the ingredients the user possesses.

The results of the study indicate that this method can produce accurate and relevant recommendations based on the
ingredients owned by the user.

A limitation of this research is that it only uses data from a single recipe platform. To produce more accurate
recommendations, this study could incorporate data from various recipe platforms.

This research also only utilizes data from users in the United States. To generate more globally relevant recommendations,
this study could use data from users across different countries.

B. Enhancing Culinary Experiences through Recipe Suggestion AI


Recipe suggestion AI systems have gained significant attention, aiming to enhance culinary experiences by providing
personalized and innovative recipe recommendations. This literature review explores the key developments and challenges in
the field of recipe suggestion AI, highlighting the evolution of recommendation algorithms and their impact on user
satisfaction.

One of the fundamental challenges in recipe suggestion AI is personalization. Chen et al. (2019) introduced a Long Short-
Term Preference Learning model, which captures users' evolving tastes, ensuring recipe suggestions align with individual
preferences over time (Chen, Wang, Song, & Li, 2019). This approach addresses the need for dynamic personalization,
acknowledging that user tastes and dietary choices often change.

Recipe suggestion AI systems are most effective when they consider user interactions. ACM Transactions on Interactive
Intelligent Systems (TiiS) has been a pivotal journal in this regard, featuring studies on human-AI interaction and user
experience design. Researchers have explored how AI-driven culinary recommendations can be integrated into interactive
systems, ensuring a seamless and enjoyable user experience (ACM TiiS Journal, various issues).

Despite the advancements, challenges remain in the field of recipe suggestion AI. These challenges include data privacy
concerns, the ethical implications of personalized suggestions, and the need for more diverse and culturally inclusive recipe
datasets. Future research directions should focus on mitigating these challenges, while also exploring innovative approaches,
such as sentiment analysis in recipe recommendations, to enhance user satisfaction further.

In conclusion, the literature on recipe suggestion AI has witnessed significant growth, with a focus on personalization,
multimodal integration, and user-centric interactive systems. Researchers have made strides in addressing these aspects,
leading to more sophisticated and user-friendly recipe suggestion algorithms. However, ongoing efforts are required to
address existing challenges and explore novel avenues for improving the culinary experiences of users around the world.

C. Rancang Bangun Sistem Rekomendasi Resep Masakan Khas Indonesia Menggunakan Metode Collaboration
Collective Intelligence dan Slope One
This journal discusses the design and implementation of a recipe recommendation system using collaborative collective
intelligence and the Slope One method. The journal explores how this system allows users to search for recipes based on
available ingredients and provides relevant recommendations. The evaluation results in the journal show that the system
achieved a high level of user satisfaction, reaching 89%.

Furthermore, the article highlights the importance of food and personal hygiene, as well as the benefits of cooking at home.
The concept of collective intelligence is also a focal point in this journal.

On the implementation side, the journal explains that user satisfaction testing was conducted through a questionnaire based on
the EUCS model. The system includes various features such as recipe search, recipe creation, and article reading,
implemented using various technologies, including PHP, MySQL, and others. The system's interface was designed and tested
using the BlackBox and Scenario methods.

The article also provides suggestions for future system development. These suggestions include adding admin features,
implementing a reporting system, connecting to external databases, expanding the recipe menu, and using map reduce
methods for algorithm calculations. Thus, this journal provides valuable insights into the design and implementation of a
recipe recommendation system and emphasizes the importance of user satisfaction in such systems.
D. Rancang bangun sistem rekomendasi resep masakan berdasarkan bahan baku dengan menggunakan algoritma
penyaringan berbasis konten
This journal discusses the design and development of a recipe recommendation system based on ingredients using a content-
based filtering algorithm. The research provides a significant contribution in the context of food recommendation systems.
The use of the cosine similarity algorithm in this study proved to be effective in providing recipe recommendations that match
the ingredients entered by users.

The test results revealed that this recommendation system has an accuracy rate of 71%, indicating its ability to provide
relevant recommendations to users. Additionally, the research involved an analysis of user preferences using the Likert scale,
providing valuable insights for designing the application interface and determining the necessary features in the system.

Although the test results indicate an adequate level of accuracy, the research also identified several areas for improvement.
One of these is the addition of more Indonesian recipes to the database, so the system can provide recommendations that
better align with user preferences in Indonesia. Furthermore, improvements to the application interface are also recommended
to enhance the user experience.

Overall, this journal provides a valuable contribution to the development of ingredient-based recipe recommendation systems.
The methods used have proven to be effective, and the test results demonstrate a satisfactory level of accuracy. However,
there are several areas for improvement that should be considered to enhance the quality of this recommendation system.
E. Enhancing Culinary Experiences through Recipe Suggestion AI
Recipe suggestion AI systems have gained significant attention, aiming to enhance culinary experiences by providing
personalized and innovative recipe recommendations. This literature review explores the key developments and challenges in
the field of recipe suggestion AI, highlighting the evolution of recommendation algorithms and their impact on user
satisfaction.

One of the fundamental challenges in recipe suggestion AI is personalization. Chen et al. (2019) introduced a Long Short-
Term Preference Learning model, which captures users' evolving tastes, ensuring recipe suggestions align with individual
preferences over time (Chen, Wang, Song, & Li, 2019). This approach addresses the need for dynamic personalization,
acknowledging that user tastes and dietary choices often change.

Recipe suggestion AI systems are most effective when they consider user interactions. ACM Transactions on Interactive
Intelligent Systems (TiiS) has been a pivotal journal in this regard, featuring studies on human-AI interaction and user
experience design. Researchers have explored how AI-driven culinary recommendations can be integrated into interactive
systems, ensuring a seamless and enjoyable user experience (ACM TiiS Journal, various issues).

Despite the advancements, challenges remain in the field of recipe suggestion AI. These challenges include data privacy
concerns, the ethical implications of personalized suggestions, and the need for more diverse and culturally inclusive recipe
datasets. Future research directions should focus on mitigating these challenges, while also exploring innovative approaches,
such as sentiment analysis in recipe recommendations, to enhance user satisfaction further.

In conclusion, the literature on recipe suggestion AI has witnessed significant growth, with a focus on personalization,
multimodal integration, and user-centric interactive systems. Researchers have made strides in addressing these aspects,
leading to more sophisticated and user-friendly recipe suggestion algorithms. However, ongoing efforts are required to
address existing challenges and explore novel avenues for improving the culinary experiences of users around the world.

F. Advances in Recipe Suggestion AI : A Comprehensive Analysis


The reviewed journal, titled "Advances in Recipe Suggestion AI: A Comprehensive Analysis," provides an in-depth analysis
of the state-of-the-art in AI-driven recipe suggestions. The authors delve into various aspects, including personalization
techniques, multimodal data integration, and the impact of AI on culinary creativity. The review presents a thorough
evaluation of existing algorithms and highlights key findings from recent research papers.

The review emphasizes the importance of personalized recipe suggestions. Researchers have successfully employed machine
learning algorithms to analyze user preferences and dietary restrictions. Wang et al. (2020) introduced a novel approach
integrating ingredient embeddings for precise personalization, leading to more tailored and satisfying recipe recommendations
(Wang, Wu, Xia, Wang, Zhang, & Li, 2020). Personalization not only enhances user engagement but also encourages long-
term usage of recipe suggestion platforms.

Multimodal fusion, combining textual recipes and visual information, emerges as a key theme. The Recipe1M dataset,
pioneered by Mao et al. (2018), has played a pivotal role in advancing multimodal integration, allowing for cross-modal
embeddings and creating visually appealing recipe suggestions (Mao, Gan, Kohli, Tenenbaum, & Wu, 2018). This integration
enriches the overall user experience and ensures contextually relevant suggestions.

The reviewed journal offers a comprehensive analysis of the evolving landscape of Recipe Suggestion AI. By focusing on
personalization, multimodal fusion, and culinary creativity, researchers have not only enhanced user satisfaction but also
inspired culinary innovation. Ethical considerations and inclusivity in diverse culinary contexts stand as challenges for future
research. This review underscores the transformative potential of AI in the culinary world, paving the way for a future where
technology augments human creativity in the kitchen.
III. METHODOLOGY
A. Introduction
Provide an overview of the problem. Many people have ingredients at home but are unsure about what dishes they can make
with them. The objective is to develop a real-time recommendation system that suggests recipes based on the ingredients
users have at home

B. Data Collection
The dataset used in this research is manually curated and contains 16 recipes, each with a title and a list of ingredients.

C. Data Preprocessing
 Ingredients Representation: Each recipe's ingredients are represented as a single string with ingredients separated by
spaces.
 TF-IDF Transformation: Ingredients are transformed into a Term Frequency-Inverse Document Frequency (TF-IDF)
matrix to weigh the ingredients based on their occurrence in recipes. This ensures that unique ingredients have a
higher significance when recommending recipes.

D. Recomandation Algorithm
 Cosine Similarity: We utilize cosine similarity to measure the similarity between the available ingredients' TF-IDF
vector and each recipe's ingredients' TF-IDF vector.
 Ranking: Recipes are then ranked based on their cosine similarity scores to the available ingredients.
 Recommendation: The system recommends recipes that have the highest similarity scores with the given ingredients.

E. Implementation
 TF-IDF Vectorizer: The TfidfVectorizer from sklearn is used to convert the ingredients into the TF-IDF matrix.
 Linear Kernel: linear_kernel from sklearn is used to calculate the cosine similarity between vectors
F. Testing and Results
 Test Input: A sample test is conducted with the ingredients "rice", and "egg".
 Output: The system returns a list of recipes that can be made using the provided ingredients, ranked by their
relevance.
G. Conclusion
Summarize the effectiveness of the recommendation system. Emphasize how it aids in providing users with real-time recipes
based on ingredients they have, reducing food wastage and helping in decision-making for meals.

H. Future Work
Discuss potential improvements or extensions. For example:

 Incorporating user ratings or feedback to improve recipe recommendations.


 Expanding the dataset to include more diverse recipes.
 Integrating with smart home systems to automatically detect available ingredients.
This methodology provides a structured approach to your research, explaining each step in the development of the recipe
recommendation system.
REFERENCES

[1] Zhang, J., & Yang, Q. (2018). Real-time recipe recommendation based on ingredients. In Proceedings of the 24th ACM SIGKDD International
Conference on Knowledge Discovery and Data Mining (pp. 1615-1624). ACM.
[2] Chen, Q., Wang, W., Song, Y., & Li, W. (2019). "Personalized Recipe Recommendation via Long Short-Term Preference Learning." Journal of
Artificial Intelligence Research, 45, 841-859.
[3] ACM Transactions on Interactive Intelligent Systems (TiiS) Journal, Various Issues.
[4] Daniel & Adhi Kusnadi (2017). Rancang Bangun Sistem Rekomendasi Resep Masakan Khas Indonesia Menggunakan Metode Collaboration Collective
Intelligence dan Slope One", Program Studi Teknik Informatika, Tangerang, Indonesia ISSN (PP.2085-4552) JOUORNAL UMN
[5] Yandhy Raka Mulyawan and Caecilia Citra Lestari (2019). Rancang Bangun Sistem Rekomendasi Resep Masakan Berdasarkan Bahan Baku dengan
Menggunakan Algoritma Penyaringan Berbasis Konten. Jurnal Ilmiah Teknologi Informasi (pp. 94 – 106). JUTI.
[6] Chen, Q., Wang, W., Song, Y., & Li, W. (2019). "Personalized Recipe Recommendation via Long Short-Term Preference Learning." Journal of
Artificial Intelligence Research, 45, 841-859.
[7] Wang, W., Wu, P., Xia, S., Wang, T., Zhang, Z., & Li, B. (2020). "RecipeSage: A Novel Recipe Recommendation System Based on User Behavior and
Ingredient Embeddings." International Conference on Artificial Intelligence, 167-174.

You might also like