Explainable Transformer-Based Modelling for Pathogen-Oriented Food Safety Inspection Grade Prediction Using New York State Open Data
Omer Faruk Sari, Mohamed Bader-El-Den, Volkan Ince

TL;DR
This study uses transformer-based models and explainable AI to predict food safety inspection grades, helping identify pathogen risks in real time.
Contribution
The novel contribution is an explainable transformer-based framework for pathogen-oriented food safety inspection grade prediction.
Findings
RoBERTa achieved the highest performance (F1 = 0.96) in predicting inspection grades.
SHAP analysis identified key linguistic indicators like temperature abuse and pests as pathogen risk factors.
Abstract
Foodborne pathogens remain a major public health concern, and the early identification of unsafe conditions is essential for preventive control. Routine inspections generate rich textual and structured data that can support real-time assessment of pathogen-related risk. The objective of this study is to develop an explainable transformer-based framework for predicting food safety inspection grades using multimodal inspection data. We combine structured metadata with unstructured deficiency narratives and evaluate classical machine learning models, deep learning architectures, and transformer models. RoBERTa achieved the highest performance (F1 = 0.96), followed by BiLSTM (F1 = 0.95) and LightGBM (F1 = 0.92). SHapley Additive exPlanations (SHAP) analysis revealed linguistically meaningful indicators of pathogen-related hazards such as temperature abuse, pests, and unsanitary practices.…
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsData-Driven Disease Surveillance · Food Safety and Hygiene · Zoonotic diseases and public health
