Skip to main content

Research Repository

Advanced Search

Food safety news events classification via a hierarchical transformer model

Xiong, Shufeng; Tian, Wenjie; Batra, Vishwash; Fan, Xiaobo; Xi, Lei; Liu, Hebing; Liu, Liangliang

Authors

Shufeng Xiong

Wenjie Tian

Xiaobo Fan

Lei Xi

Hebing Liu

Liangliang Liu



Contributors

Abstract

In light of the significance of regulatory authorities and the rising demand for information disclosure, a vast amount of information on food safety news reports is readily accessible on the Internet. The extraction of such information for precise classification and provision of appropriate safety alerts based on their respective categories has emerged as a challenging problem for academic research. Given that most food safety-related events in news reports comprise lengthy text, the pre-trained language models currently employed for text analysis are generally limited in their capability to handle long documents. This paper proposes a long-text classification model utilising hierarchical Transformers. We categorise information in long documents into two distinct types: (1) multiple text chunks meeting the length constraint and (2) essential sentences within long documents, such as headings, paragraph start and end sentences, etc. Initially, our proposed model utilises the text chunks as input to the BERT model. Then, it concatenates the output of the BERT model with the important sentences from the document and use them as input to the Transformer model for feature transformation. Finally, we utilise a classifier for food safety news classification. We conducted several comparative experiments with various commonly used text classification models on a dataset constructed from publicly available information on food regulatory websites. Our proposed method outperforms existing methods, establishing itself as the leading approach in terms of performance. [Abstract copyright: © 2023 The Author(s).]

Citation

Xiong, S., Tian, W., Batra, V., Fan, X., Xi, L., Liu, H., & Liu, L. (2023). Food safety news events classification via a hierarchical transformer model. Heliyon, 9(7), Article e17806. https://doi.org/10.1016/j.heliyon.2023.e17806

Journal Article Type Article
Acceptance Date Jun 28, 2023
Online Publication Date Jun 30, 2023
Publication Date 2023-07
Deposit Date Jul 6, 2023
Publicly Available Date Jul 6, 2023
Journal Heliyon
Print ISSN 2405-8440
Publisher Elsevier
Peer Reviewed Peer Reviewed
Volume 9
Issue 7
Article Number e17806
DOI https://doi.org/10.1016/j.heliyon.2023.e17806
Keywords Transformer, Deep learning, Multi-classification, Food safety, BERT, Natural language processing
Additional Information This article is maintained by: Elsevier; Article Title: Food safety news events classification via a hierarchical transformer model; Journal Title: Heliyon; CrossRef DOI link to publisher maintained version: https://doi.org/10.1016/j.heliyon.2023.e17806; Content Type: article; Copyright: © 2023 The Author(s). Published by Elsevier Ltd.

Files






You might also like



Downloadable Citations