Ingredient-Only Recipe Recommendation via Self-Supervised Contrastive Learning for Sustainable Cooking

Authors

  • Mariyam Mohammed Ashraf National Institute of Business Management
  • M.W.P. Maduranga University of Sri Jayewardenepura

DOI:

https://doi.org/10.62411/faith.3048-3719-98

Keywords:

Cold-Start Problem, Ingredient-Based Modeling, Recipe Recommendation, Self-Supervised Learning, Word2Vec Embeddings

Abstract

This paper presents a novel ingredient-based recipe recommendation system that suggests dishes using only available ingredients, eliminating reliance on user preference data. As online culinary platforms host millions of recipes, users struggle to find dishes that match their pantry constraints, dietary needs, and culinary preferences. Unlike traditional methods like TF-IDF, which lack semantic depth, or existing methods such as graph neural networks (GNNs), which incur high computational costs and struggle with cold-start scenarios, our self-supervised contrastive learning approach maps ingredients and recipes into a 64-dimensional semantic space, capturing complex culinary relationships for precise, scalable recommendations. The system enhances representation quality without user history by leveraging dual-modal Word2Vec embeddings that incorporate ingredients and cooking instructions and optimizing them using triplet loss. Using a dataset of 122,265 standardized recipes, our model achieves a 79.11% ingredient match ratio, 70% recommendation diversity (vs. 50% for baselines), and sub-100ms query times. It outperforms TF-IDF and KNN by 14% in relevance. The implementation addresses ingredient normalization, rare ingredient handling, and diverse cuisine representation, promoting sustainable cooking by maximizing ingredient use and reducing food waste. This work advances the methodology of recommendation systems by addressing the cold-start problem and ensuring privacy through user-data-free modeling. It supports practical culinary applications, contributing to sustainable cooking practices and culinary informatics.

Downloads

Download data is not yet available.

Author Biographies

Mariyam Mohammed Ashraf, National Institute of Business Management

Data Science, National Institute of Business Management, Kirulapone 00500, Sri Lanka

M.W.P. Maduranga, University of Sri Jayewardenepura

Department of Electrical and Electronic Engineering, University of Sri Jayewardenepura, Nugegoda 10240, Sri Lanka

References

S. Praveen, M. V. P. Raj, R. Poovarasan, V. Thiruvenkadam, and M. Kavinkumar, “Discovering Recipes Based on Ingredients Using Machine Learning,” Int. Res. J. Eng. Technol., vol. 6, no. 2, pp. 155–158, 2019.

H. Wang and Y. Zhao, “ML2E: Meta-Learning Embedding Ensemble for Cold-Start Recommendation,” IEEE Access, vol. 8, pp. 165757–165768, 2020, doi: 10.1109/ACCESS.2020.3022796.

A. Pandey, R. Varma, A. Gupta, and B. Tekwani, “Recipe Recommendation System Based on Ingredients,” Int. J. Multidiscip. Res., vol. 6, no. 2, pp. 1–8, 2024.

J. C. S. Herrera, “Sustainable Recipes. A Food Recipe Sourcing and Recommendation System to Minimize Food Miles,” arXiv. Apr. 16, 2020. [Online]. Available: https://arxiv.org/abs/2004.07454

V. Kumar and A. Sharma, “Intelligent Recipe Recommendation System Based on Ingredient Analysis,” Int. J. Comput. Appl., vol. 178, no. 25, pp. 11–16, 2019.

L. D. S. Pacifico, L. F. S. Britto, and T. B. Ludermir, “Improved Alternative Average Support Value for Automatic Ingredient Substitute Recommendation in Cooking Recipes,” in Intelligent Systems, 2022, pp. 373–387. doi: 10.1007/978-3-031-21689-3_27.

R. D. Potdar and S. T. Patil, “Recipe Recommendation System Using KNN,” J. Emerg. Technol. Innov. Res., vol. 6, no. 6, pp. 98–102, 2019.

D. Moolya, S. Pansare, A. Kshirsagar, and P. S. Bodekar-Kale, “Recipe Generator using Deep Learning,” Int. J. Res. Appl. Sci. Eng. Technol., vol. 10, no. 5, pp. 846–851, May 2022, doi: 10.22214/ijraset.2022.42321.

Y. Xie and Y. Zhang, “Personalized recipe recommendation based on heterogeneous graph neural networks,” in Third International Symposium on Computer Applications and Information Systems (ISCAIS 2024), Jul. 2024, vol. 13210, p. 98. doi: 10.1117/12.3034936.

M. Gim et al., “RecipeMind: Guiding Ingredient Choices from Food Pairing to Recipe Completion using Cascaded Set Transformer,” in Proceedings of the 31st ACM International Conference on Information & Knowledge Management, Oct. 2022, pp. 3092–3102. doi: 10.1145/3511808.3557092.

L. A. Gyimah, H. M. Amoatey, R. Boatin, V. Appiah, and B. T. Odai, “The impact of gamma irradiation and storage on the physicochemical properties of tomato fruits in Ghana,” Food Qual. Saf., vol. 4, no. 3, pp. 151–157, Oct. 2020, doi: 10.1093/fqsafe/fyaa017.

Z. Bai, Y. Huang, S. Zhang, P. Li, Y. Chang, and X. Lin, “Multi-Level Knowledge-Aware Contrastive Learning Network for Personalized Recipe Recommendation,” Appl. Sci., vol. 12, no. 24, p. 12863, Dec. 2022, doi: 10.3390/app122412863.

M. S. Rodrigues, F. Fidalgo, and Â. Oliveira, “RecipeIS—Recipe Recommendation System Based on Recognition of Food Ingredients,” Appl. Sci., vol. 13, no. 13, p. 7880, Jul. 2023, doi: 10.3390/app13137880.

L. Herranz, W. Min, and S. Jiang, “Food recognition and recipe analysis: integrating visual content, context and external knowledge,” arXiv, Jan. 2018, [Online]. Available: https://arxiv.org/abs/1801.07239

M. Akbari, “Food recipe recommendation system based on nutritional and taste preferences using machine learning,” Helsinki Metropolia University of Applied Sciences, 2023. [Online]. Available: https://www.theseus.fi/bitstream/handle/10024/866779/Akbari_Mobarakeh.pdf?sequence=2&isAllowed=y

R. A. Oguntuase, A. J. Gabriel, and B. A. Ojokoh, “A Personalized Context-Aware Places of Interest Recommender System,” J. Comput. Theor. Appl., vol. 2, no. 4, pp. 481–497, Apr. 2025, doi: 10.62411/jcta.12362.

C.-Y. Teng, Y.-R. Lin, and L. A. Adamic, “Recipe recommendation using ingredient networks,” in Proceedings of the 4th Annual ACM Web Science Conference, Jun. 2012, pp. 298–307. doi: 10.1145/2380718.2380757.

J. M. Leitch, “Recipe Recommendation.” [Online]. Available: https://jackmleitch.com/blog/Recipe-Recommendation

X. Gao, F. Feng, H. Huang, X.-L. Mao, T. Lan, and Z. Chi, “Food recommendation with graph convolutional network,” Inf. Sci. (Ny)., vol. 584, pp. 170–183, Jan. 2022, doi: 10.1016/j.ins.2021.10.040.

P. Achananuparp, I. Weber, and J. Zhu, “Food recommendation systems using deep learning,” in Data Science for Food and Health, P. Achananuparp, I. Weber, and J. Zhu, Eds. Springer, 2020, pp. 43–62. doi: 10.1007/978-3-030-12345-1_3.

D. Nallapati, S. R. Thatiparthi, A. Aitha, L. Chinthala, and S. Lekhi, “Ingredients-Based Indian Cuisine Recommendation System,” SSRN Electron. J., 2024, doi: 10.2139/ssrn.4485294.

K. K. San, H. H. Win, and K. E. E. Chaw, “Enhancing Hybrid Course Recommendation with Weighted Voting Ensemble Learning,” J. Futur. Artif. Intell. Technol., vol. 1, no. 4, pp. 337–347, Jan. 2025, doi: 10.62411/faith.3048-3719-55.

A. Prashanthan, R. Roshan, and M. Maduranga, “RetenNet: A Deployable Machine Learning Pipeline with Explainable AI and Prescriptive Optimization for Customer Churn Management,” J. Futur. Artif. Intell. Technol., vol. 2, no. 2, pp. 182–201, Jun. 2025, doi: 10.62411/faith.3048-3719-110.

Downloads

Published

2025-06-23

How to Cite

[1]
M. M. Ashraf and M. Maduranga, “Ingredient-Only Recipe Recommendation via Self-Supervised Contrastive Learning for Sustainable Cooking”, J. Fut. Artif. Intell. Tech., vol. 2, no. 2, pp. 215–226, Jun. 2025.

Similar Articles

1 2 3 4 5 6 7 8 9 > >> 

You may also start an advanced similarity search for this article.