Halal or Not: Knowledge Graph Completion for Predicting Cultural Appropriateness of Daily Products

Van Thuy Hoang, Tien-Bach-Thanh Do, Jinho Seo, Seung Charlie Kim, Luong Vuong Nguyen +3 more
1/10/2025
cs.LGcs.AI

No official code found. Best implementation: NSLab-CUK/Halal-or-Not (6 stars, MIT, last commit 2025-07-17).

Abstract

The growing demand for halal cosmetic products has exposed significant challenges, especially in Muslim-majority countries. Recently, various machine learning-based strategies, e.g., image-based methods, have shown remarkable success in predicting the halal status of cosmetics. However, these methods mainly focus on analyzing the discrete and specific ingredients within separate cosmetics, which ignore the high-order and complex relations between cosmetics and ingredients. To address this problem, we propose a halal cosmetic recommendation framework, namely HaCKG, that leverages a knowledge graph of cosmetics and their ingredients to explicitly model and capture the relationships between cosmetics and their components. By representing cosmetics and ingredients as entities within the knowledge graph, HaCKG effectively learns the high-order and complex relations between entities, offering a robust method for predicting halal status. Specifically, we first construct a cosmetic knowledge graph representing the relations between various cosmetics, ingredients, and their properties. We then propose a pre-trained relational graph attention network model with residual connections to learn the structural relation between entities in the knowledge graph. The pre-trained model is then fine-tuned on downstream cosmetic data to predict halal status. Extensive experiments on the cosmetic dataset over halal prediction tasks demonstrate the superiority of our model over state-of-the-art baselines.

View on arXivView PDF

Code Implementations(1)

MIT

Halal or Not is a novel Attributed Knowledge Graph Completion Model developed by NS Lab @ CUK based on pure PyTorch backend. This model aims at analyzing ingredients of everyday products to predict their cultural availability, e.g. predicting whether food or cosmetics meet halal or vegan criteria.

61PythonApr 15, 20241 years agoMIT
cultural-inclusivenesshalalhalal-foodknowledge-graphknowledge-graph-completion+4 more

Similar Papers

Cite this paper

@article{hoang2025halal,
  title  = {Halal or Not: Knowledge Graph Completion for Predicting Cultural Appropriateness of Daily Products},
  author = {Van Thuy Hoang and Tien-Bach-Thanh Do and Jinho Seo and Seung Charlie Kim and Luong Vuong Nguyen and Duong Nguyen Minh Huy and Hyeon-Ju Jeon and O-Joun Lee},
  year   = {2025},
  eprint = {2501.05768},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.05768v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.05768.svg)](https://codeofpaper.com/paper/2501.05768)

Discussion