Skip to main content

ORIGINAL RESEARCH article

Front. Nutr.
Sec. Nutrition and Food Science Technology
Volume 11 - 2024 | doi: 10.3389/fnut.2024.1429259
This article is part of the Research Topic Defining the Role of Artificial Intelligence (AI) in the Food Sector and its Applications View all 3 articles

Zero-shot evaluation of ChatGPT for food named-entity recognition and linking

Provisionally accepted
  • 1 Jožef Stefan International Postgraduate School, Ljubljana, Slovenia
  • 2 Institut Jožef Stefan (IJS), Ljubljana, Slovenia

The final, formatted version of the article will be published soon.

    Recognizing and extracting key information from textual data plays an important role in intelligent systems by maintaining up-to-date knowledge, reinforcing informed decision-making, questionanswering, and more. It is especially apparent in the food domain, where critical information guides the decisions of nutritionists and clinicians. The information extraction process involves two natural language processing tasks named entity recognition -NER and named entity linking -NEL.With the emergence of large language models (LLMs), especially ChatGPT, many areas began incorporating its knowledge to reduce workloads or simplify tasks. In the field of food, however, we noticed an opportunity to involve ChatGPT in NER and NEL. To assess ChatGPT's capabilities, we have evaluated its two versions, ChatGPT-3.5 and ChatGPT-4, focusing on their performance across both NER and NEL tasks, emphasizing food-related data. To benchmark our results in the food domain, we also investigated its capabilities in a more broadly investigated biomedical domain. By evaluating its zero-shot capabilities, we were able to ascertain the strengths and weaknesses of the two versions of ChatGPT. Despite being able to show promising results in NER compared to other models. When tasked with linking entities to their identifiers from semantic models ChatGPT's effectiveness falls drastically. While the integration of ChatGPT holds potential across various fields, it is crucial to approach its use with caution, particularly in relying on its responses for critical decisions in food and bio-medicine.

    Keywords: ChatGPT, Food Data, Named-entity recognition, Named-entity Linking, Natural Language Processing

    Received: 07 May 2024; Accepted: 26 Jul 2024.

    Copyright: © 2024 Ogrinc, Koroušić Seljak and Eftimov. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

    * Correspondence: Matevž Ogrinc, Jožef Stefan International Postgraduate School, Ljubljana, Slovenia

    Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.