Extracting chemical food safety hazards from the scientific literature automatically using large language models

• Automatic extraction of food safety hazards from literature can be a promising tool. • Large language models can be applied for information extraction from literature. • Extra training of large language models is not necessary; prompting is sufficient. • A prompt breaking the task down into smaller steps performs best. • Chemical hazards were successfully captured for dairy, maize and salmon. The number of scientific articles published in the domain of food safety has consistently been increasing over the last few decades. It has therefore become unfeasible for food safety experts to read all relevant literature related to food safety and the occurrence of hazards in the food chain. However, it is important that food safety experts are aware of the newest findings and can access this information in an easy and concise way. In this study, an approach is presented to automate the extraction of chemical hazards from the scientific literature through large language models. The large language model was used out-of-the-box and applied on scientific abstracts; no extra training of the models or a large computing cluster was required. Three different styles of prompting the model were tested to assess which was the most optimal for the task at hand. The prompts were optimized with two validation foods (leafy greens and shellfish) and the final performance of the best prompt was evaluated using three test foods (dairy, maize and salmon). The specific wording of the prompt was found to have a considerable effect on the results. A prompt breaking the task down into smaller steps performed best overall. This prompt reached an average accuracy of 93 % and contained many chemical contaminants already included in food monitoring programs, validating the successful retrieval of relevant hazards for the food safety domain. The results showcase how valuable large language models can be for the task of automatic information extraction from the scientific literature.

Authors

Institutions

Publication Details

Journal
Applied Food Research
Published
2024-12-27
DOI
https://doi.org/10.1016/j.afres.2024.100679
Citations
4
Primary Topic
Risk and Safety Analysis
Type
article
Field-Weighted Citation Impact
1.85

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Extracting chemical food safety hazards from the scientific literature automatically using large language models

E.D. van Asselt, Leonieke M. van den Bulk, Wenjuan Mu, Neris Özen
4 citations
Applied Food Research
Risk and Safety Analysis
1.85
article

Extracting chemical food safety hazards from the scientific literature automatically using large language models

E.D. van Asselt, Leonieke M. van den Bulk, Wenjuan Mu, Neris Özen
article en
4 citations

Abstract

• Automatic extraction of food safety hazards from literature can be a promising tool. • Large language models can be applied for information extraction from literature. • Extra training of large language models is not necessary; prompting is sufficient. • A prompt breaking the task down into smaller steps performs best. • Chemical hazards were successfully captured for dairy, maize and salmon. The number of scientific articles published in the domain of food safety has consistently been increasing over the last few decades. It has therefore become unfeasible for food safety experts to read all relevant literature related to food safety and the occurrence of hazards in the food chain. However, it is important that food safety experts are aware of the newest findings and can access this information in an easy and concise way. In this study, an approach is presented to automate the extraction of chemical hazards from the scientific literature through large language models. The large language model was used out-of-the-box and applied on scientific abstracts; no extra training of the models or a large computing cluster was required. Three different styles of prompting the model were tested to assess which was the most optimal for the task at hand. The prompts were optimized with two validation foods (leafy greens and shellfish) and the final performance of the best prompt was evaluated using three test foods (dairy, maize and salmon). The specific wording of the prompt was found to have a considerable effect on the results. A prompt breaking the task down into smaller steps performed best overall. This prompt reached an average accuracy of 93 % and contained many chemical contaminants already included in food monitoring programs, validating the successful retrieval of relevant hazards for the food safety domain. The results showcase how valuable large language models can be for the task of automatic information extraction from the scientific literature.

Applied Food ResearchVol. 5(1)
Wageningen University & Research (NL)
Ministerie van Landbouw, Natuur en Voedselkwaliteit
Zero hunger
Openalex Percentile: Top 12%
Risk and Safety Analysis
1.85
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.